API Documentation

API Reference

Complete guide to integrating with Nextcraftai. Access the world's leading AI models through a single unified API.

Quick Start

Get up and running in minutes with a simple API call.

curl -X POST https://api.nextcraftai.com/v1/chat \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-2.5-flash",
    "messages": [
      {
        "role": "user",
        "prompt": "Hello, world!"
      }
    ]
  }'

Replace YOUR_API_KEY with your actual API key from the dashboard.