API
API Keys
Manage your API authentication
You can create up to 10 API keys. Need more? Contact support
No API keys yet
Create your first API key to get started
Quick Start
Get up and running in minutes
1
Create API Key
Generate your API key above
2
Use Our Examples
Copy code examples in Python, JavaScript, or cURL
3
Make Requests
Start using 300+ AI models instantly
Try it with cURL
Copy and run this example in your terminal. Copying the example includes the API key.
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.
Documentation
Complete API reference and guides
Full API Documentation
For comprehensive API documentation, integration guides, and best practices, visit our documentation site.
Visit docs.nano-gpt.comAPI Endpoints
Available 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, Midjourney, 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
TEE Attestation
GET /api/v1/tee/attestationSecure GPU-TEE attestation for verified inference
For the full endpoint list, see our Documentation
Available Models
Browse and search our model catalog
ASI1 Mini
asi1-miniAion 1.0
aion-labs/aion-1.0Aion 1.0 mini (DeepSeek)
aion-labs/aion-1.0-miniAmazon Nova Lite 1.0
amazon/nova-lite-v1Amazon Nova Micro 1.0
amazon/nova-micro-v1Amazon Nova Pro 1.0
amazon/nova-pro-v1Amoral Gemma3 27B v2
soob3123/amoral-gemma3-27B-v2Anubis 70B v1
TheDrummer/Anubis-70B-v1Anubis 70B v1.1
TheDrummer/Anubis-70B-v1.1Azure gpt-4-turbo
azure-gpt-4-turboAzure gpt-4o
azure-gpt-4oAzure gpt-4o-mini
azure-gpt-4o-miniCode Examples
Get started with code samples in multiple languages
A simple example to get you started with the NanoGPT API
Pricing
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 detailed pricing information and bulk discounts, please contact our sales team or visit our Discord community.
