Point existing clients at NanoGPT, keep your current request shape, and switch models without rewriting integrations.
Drop-in base URL
Use the official OpenAI SDK with a different base URL.
https://nano-gpt.com/api/v11,030 models in one catalog
595 text, 193 image, 135 video, plus audio, speech, and embeddings.
Spend and privacy controls
Put limits on keys, use PII redaction where needed, and keep pay-as-you-go billing in the same wallet.
Manage your API authentication
You can create up to 20 API keys. Need more? Contact support
No API keys yet
Create your first API key to get started
Base URL
https://nano-gpt.com/api/v1
Get up and running in minutes
1
Generate your API key above
2
Copy code examples in Python, JavaScript, or cURL
3
Start using 1,030 AI models instantly
Copy and run these examples in your terminal. Copying an example includes the API key.
curl -X POST https://nano-gpt.com/api/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.2",
"messages": [
{ "role": "user", "content": "Hello, how are you?" }
]
}'Note: when you use reasoning (thinking) models, some client software, such as LiteLLM, might fail to process reasoning content. In this case, try the https://nano-gpt.com/api/v1legacy endpoint instead of https://nano-gpt.com/api/v1. For more information, refer to the documentation.
Accountless x402 requests return a live 402 quote instead of asking for an API key, card, dashboard, or pre-funded balance.
One unauthenticated request
Supported endpoints return 402 Payment Required with payment.accepted[].
Nano and Base USDC
Use quote-and-complete rails or exact X-PAYMENT replay when a wallet signs the payment payload.
Stable matrix
GET /api/v1/x402/endpoints lists only the accountless contract enabled in the current deployment.
curl -i https://nano-gpt.com/api/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"gpt-4.1-nano","messages":[{"role":"user","content":"Say ok"}],"stream":false}'Complete API reference and guides
For comprehensive API documentation, integration guides, and best practices, visit our documentation site.
Visit docs.nano-gpt.comAvailable endpoints and their capabilities
Chat Completions
POST /api/v1/chat/completionsOpenAI-compatible endpoint for text generation with streaming support
Image Generation
POST /api/generate-imageGenerate images with DALL-E, Flux, and more
Video Generation
POST /api/generate-videoCreate videos with Kling, Veo, Hunyuan, and other providers. This endpoint is asynchronous: it returns a runId and requires polling /api/generate-video/status (include modelSlug) until completed to obtain the final video URL.
Audio & Speech
POST /api/text-to-speechText-to-speech and speech-to-text capabilities
Models List
GET /api/v1/modelsGet available models with pricing information
For the full endpoint list, see our Documentation
Browse and search our model catalog. Prefer a dedicated browser? Use /models.
Model catalog
The full searchable catalog loads when you get to it, keeping the API setup view fast.
Get started with code samples in multiple languages
Code examples
Language-specific examples load when you reach this section.
Simple, transparent pricing for all models
All prices are pay-as-you-go with no monthly fees. Prices shown are API prices per 1 million tokens for text models.
For bulk discounts, please contact our sales team or visit our Discord community.
Use NanoGPT via MCP-compatible clients
Connect NanoGPT to tools like Claude Code and Cursor using the Model Context Protocol (MCP).