Documentation Index
Fetch the complete documentation index at: https://docs.nano-gpt.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The NanoGPT API allows you to generate text, images and video using any AI model available. Our implementation for text generation generally matches the OpenAI standards.All examples in this documentation also work on our alternative domains. Just replace the base URL
https://nano-gpt.com with your preferred domain: ai.bitcoin.com, bcashgpt.com, or cake.nano-gpt.com. Only the base URL changes; endpoints and request formats remain the same.Main API Endpoints
| Endpoint | Purpose |
|---|---|
POST /api/v1/chat/completions | OpenAI-compatible chat generation |
POST /api/v1/responses | OpenAI-compatible Responses API |
POST /v1/images/generations | OpenAI-compatible image generation |
POST /api/generate-video | Video generation, editing, extension, and upscaling |
POST /api/v1/messages | Anthropic-compatible Messages API |
Chat Completion example
Here’s a simple python example using our OpenAI-compatible chat completions endpoint:Quick Start
The quickest way to get started with our API is to explore our Endpoint Examples. Each endpoint page provides comprehensive documentation with request/response formats and example code. The Chat Completion endpoint is a great starting point for text generation.Documentation Sections
For detailed documentation on each feature, please refer to the following sections:- Text Generation - Complete guide to text generation APIs including OpenAI-compatible endpoints and legacy options
- Image Generation - Learn how to generate images using various models like Recraft, Flux, and Stable Diffusion.
- Video Generation - Create high-quality videos with our video generation API