# NanoGPT API Documentation ## Docs - [Embeddings](https://docs.nano-gpt.com/api-reference/embeddings.md): Complete guide to text embeddings API - [v1/audio/transcriptions (STT)](https://docs.nano-gpt.com/api-reference/endpoint/audio-transcriptions.md): OpenAI-compatible speech-to-text transcription endpoint - [Chat Completion](https://docs.nano-gpt.com/api-reference/endpoint/chat-completion.md): Creates a chat completion for the provided messages - [Check Balance](https://docs.nano-gpt.com/api-reference/endpoint/check-balance.md): Check the account balance - [Retrieve Midjourney Generation Status](https://docs.nano-gpt.com/api-reference/endpoint/check-midjourney-status.md): Check the status of an asynchronous Midjourney image generation task - [Completions](https://docs.nano-gpt.com/api-reference/endpoint/completion.md): Creates a completion for the provided prompt. This endpoint is available on a best-effort basis for legacy compatibility, and performance may be less consistent than /v1/chat/completions because not all upstream providers support the legacy completions API. - [Deposits (Crypto + Fiat)](https://docs.nano-gpt.com/api-reference/endpoint/crypto-deposits.md): Create deposit payment intents and track status programmatically - [Embedding Models](https://docs.nano-gpt.com/api-reference/endpoint/embedding-models.md): List all available embedding models with detailed information - [Embeddings](https://docs.nano-gpt.com/api-reference/endpoint/embeddings.md): Create embeddings for text using OpenAI-compatible and alternative embedding models - [Image Generation (OpenAI-Compatible)](https://docs.nano-gpt.com/api-reference/endpoint/image-generation-openai.md): Creates an image generation for the provided prompt (OpenAI-compatible) - [Create Invitation](https://docs.nano-gpt.com/api-reference/endpoint/invitations-create.md): Create an invitation or referral link with an optional credit amount. - [Context Memory (Standalone)](https://docs.nano-gpt.com/api-reference/endpoint/memory.md): Compress a conversation with Context Memory and return compressed messages and usage (no model inference) - [Messages](https://docs.nano-gpt.com/api-reference/endpoint/messages.md) - [Models](https://docs.nano-gpt.com/api-reference/endpoint/models.md): List available models with optional detailed information including pricing - [NSFW Image Classification](https://docs.nano-gpt.com/api-reference/endpoint/nsfw-image.md): Binary NSFW classification for up to 10 image URLs or data URLs per request - [Personalized Models](https://docs.nano-gpt.com/api-reference/endpoint/personalized-models.md) - [Receive Nano](https://docs.nano-gpt.com/api-reference/endpoint/receive-nano.md): Process pending Nano transactions for the account - [Responses](https://docs.nano-gpt.com/api-reference/endpoint/responses.md): Create a response with the OpenAI-compatible Responses API - [Web Scraping](https://docs.nano-gpt.com/api-reference/endpoint/scrape-urls.md): Extract clean, formatted content from web pages. Returns both raw HTML content and formatted markdown. - [v1/audio/speech (TTS + Music)](https://docs.nano-gpt.com/api-reference/endpoint/speech.md) - [Subscription Usage](https://docs.nano-gpt.com/api-reference/endpoint/subscription-usage.md) - [TEE Attestation](https://docs.nano-gpt.com/api-reference/endpoint/tee-attestation.md): Fetch TEE attestation report for a model - [TEE Signature](https://docs.nano-gpt.com/api-reference/endpoint/tee-signature.md): Fetch ECDSA signature for a chat request - [Speech-to-Text Transcription](https://docs.nano-gpt.com/api-reference/endpoint/transcribe.md): Transcribe audio (and supported video formats) into text using speech recognition models. Supports multiple languages, diarization (model-dependent), and various formats. Most models return synchronous results; some models (for example Elevenlabs-STT and voice cloning workflows) return asynchronous… - [Speech-to-Text Status](https://docs.nano-gpt.com/api-reference/endpoint/transcribe-status.md): Check the status of an asynchronous transcription job (Elevenlabs-STT). Poll this endpoint to get the transcription results when the job is completed. - [Text-to-Speech](https://docs.nano-gpt.com/api-reference/endpoint/tts.md): Convert text into natural-sounding speech using various TTS models from different providers. Supports multiple languages, voices, and customization options including speed control, voice instructions, and audio format selection. - [TTS Status](https://docs.nano-gpt.com/api-reference/endpoint/tts-status.md) - [Video Content](https://docs.nano-gpt.com/api-reference/endpoint/video-content.md): Proxy content retrieval for Sora 2 videos. - [Video Extend](https://docs.nano-gpt.com/api-reference/endpoint/video-extend.md): Extend a Midjourney video using a task-based flow (taskId + index). - [Video Generation](https://docs.nano-gpt.com/api-reference/endpoint/video-generation.md): Generate videos using supported text-to-video, image-to-video, and video-to-video models. The response includes a runId and pending status; poll the status endpoint for completion. See the docs for the current model list and required inputs. - [Video Recover](https://docs.nano-gpt.com/api-reference/endpoint/video-recover.md): Recover recent video generation runs for a user. - [Video Status (Unified)](https://docs.nano-gpt.com/api-reference/endpoint/video-status-unified.md): Unified video status endpoint that works across all video backends. Check the status of a video generation request using only the request ID and receive normalized status information. - [Voice Cloning](https://docs.nano-gpt.com/api-reference/endpoint/voice-cloning.md): Clone voices from reference audio and reuse them with compatible TTS models - [Direct Web Search API](https://docs.nano-gpt.com/api-reference/endpoint/web-search.md): Run direct web search requests with explicit query control, Linkup output formats, and normalized metadata - [YouTube Transcription](https://docs.nano-gpt.com/api-reference/endpoint/youtube-transcribe.md): Extract transcripts from YouTube videos programmatically. Supports multiple URLs per request and provides detailed response information including success/failure status for each video. - [Image Generation](https://docs.nano-gpt.com/api-reference/image-generation.md): Guide to the OpenAI-compatible image generation endpoint - [Auto Recharge](https://docs.nano-gpt.com/api-reference/miscellaneous/auto-recharge.md): Information about automatically recharging your account - [Pay-As-You-Go Billing Override](https://docs.nano-gpt.com/api-reference/miscellaneous/billing-override.md): Force pay-as-you-go billing for subscription-included models - [Bring Your Own Key (BYOK)](https://docs.nano-gpt.com/api-reference/miscellaneous/byok.md): Route chat completions through your own provider API keys. - [Chrome Extension](https://docs.nano-gpt.com/api-reference/miscellaneous/chrome-extension.md): Information about the NanoGPT Chrome Extension - [Context Memory](https://docs.nano-gpt.com/api-reference/miscellaneous/context-memory.md): Lossless, hierarchical episodic memory for unlimited AI conversations - [Error Handling](https://docs.nano-gpt.com/api-reference/miscellaneous/error-handling.md): Error formats, status codes, and retry guidance for the NanoGPT API. - [Extended Thinking (Reasoning)](https://docs.nano-gpt.com/api-reference/miscellaneous/extended-thinking.md): How NanoGPT surfaces and controls reasoning output across OpenAI-compatible endpoints - [For Providers](https://docs.nano-gpt.com/api-reference/miscellaneous/for-providers.md): Information for model providers - [JavaScript Library](https://docs.nano-gpt.com/api-reference/miscellaneous/javascript.md): Node.js library for interacting with NanoGPT API - [Model Context Protocol (MCP)](https://docs.nano-gpt.com/api-reference/miscellaneous/mcp-server.md): Integrate NanoGPT into your AI workflows via MCP - [Pricing and Fees](https://docs.nano-gpt.com/api-reference/miscellaneous/pricing.md): Information about API pricing - [Prompt Caching](https://docs.nano-gpt.com/api-reference/miscellaneous/prompt-caching.md): Understand NanoGPT caching behavior: implicit caching by default on supported providers (including many open-source routes), plus explicit prompt-caching controls for Claude. - [Provider Selection](https://docs.nano-gpt.com/api-reference/miscellaneous/provider-selection.md): Choose the upstream provider for supported open-source models - [Rate Limits](https://docs.nano-gpt.com/api-reference/miscellaneous/rate-limits.md): Information about API rate limits - [Streaming Protocol (SSE)](https://docs.nano-gpt.com/api-reference/miscellaneous/streaming-protocol.md): How NanoGPT streams responses over Server-Sent Events across chat completions, messages, and responses. - [TypeScript Library](https://docs.nano-gpt.com/api-reference/miscellaneous/typescript.md): TypeScript client for NanoGPT API - [X-402 Micropayments (HTTP 402)](https://docs.nano-gpt.com/api-reference/miscellaneous/x402.md): Anonymous, pay-per-request API access using X-402 payment challenges - [Music Generation](https://docs.nano-gpt.com/api-reference/music-generation.md): Generate music from text prompts using NanoGPT's OpenAI-compatible audio/speech endpoint. - [Speech-to-Text (STT)](https://docs.nano-gpt.com/api-reference/speech-to-text.md): Complete guide to speech-to-text transcription APIs - [Teams](https://docs.nano-gpt.com/api-reference/teams.md): Complete API reference for the NanoGPT Teams feature - [TEE Verification](https://docs.nano-gpt.com/api-reference/tee-verification.md): Guide to verifying TEE attestation reports and signatures for TEE-backed models. - [Text Generation](https://docs.nano-gpt.com/api-reference/text-generation.md): Complete guide to text generation APIs - [Text-to-Speech (TTS)](https://docs.nano-gpt.com/api-reference/text-to-speech.md): Complete guide to text-to-speech synthesis APIs - [Video Generation](https://docs.nano-gpt.com/api-reference/video-generation.md): Complete guide to video generation APIs - [Authentication](https://docs.nano-gpt.com/authentication.md): How to authenticate with the NanoGPT API and web app. - [Claude Code](https://docs.nano-gpt.com/integrations/claude-code.md): Use Claude Code with NanoGPT and Claude + 400 models - [CLI Device Login](https://docs.nano-gpt.com/integrations/cli-login.md): Integrate NanoGPT device login into your CLI app - [Cline](https://docs.nano-gpt.com/integrations/cline.md): Using NanoGPT with Cline CLI interface - [Codex CLI](https://docs.nano-gpt.com/integrations/codex-cli.md): Using OpenAI Codex CLI with NanoGPT - [Cursor](https://docs.nano-gpt.com/integrations/cursor.md): Using NanoGPT with Cursor AI-powered code editor - [Droid](https://docs.nano-gpt.com/integrations/droid.md): Use NanoGPT with the Droid CLI agent - [Gemini CLI](https://docs.nano-gpt.com/integrations/gemini-cli.md): Use Gemini CLI with NanoGPT via the OpenRouter compatible fork - [Grok CLI](https://docs.nano-gpt.com/integrations/grok-cli.md): Use Grok CLI with NanoGPT and Grok + 50 other models - [JanitorAI](https://docs.nano-gpt.com/integrations/janitorai.md): Using NanoGPT with JanitorAI's custom API integration - [Kilo Code](https://docs.nano-gpt.com/integrations/kilocode.md): Using NanoGPT with Kilo Code interface - [LibreChat](https://docs.nano-gpt.com/integrations/librechat.md): Using NanoGPT with LibreChat for a ChatGPT-like interface - [MCP](https://docs.nano-gpt.com/integrations/mcp.md): Use NanoGPT via MCP-compatible clients - [n8n](https://docs.nano-gpt.com/integrations/n8n.md): Use n8n OpenAI nodes with NanoGPT to access 50+ models in your workflows - [OpenClaw (ClawdBot)](https://docs.nano-gpt.com/integrations/openclaw.md): Use OpenClaw with NanoGPT to access Claude, GPT, Gemini, and more - [OpenCode](https://docs.nano-gpt.com/integrations/opencode.md): OpenCode integration for NanoGPT - [OpenHands](https://docs.nano-gpt.com/integrations/openhands.md): Using NanoGPT with OpenHands autonomous agent - [OpenWebUI](https://docs.nano-gpt.com/integrations/openwebui.md): Using NanoGPT with OpenWebUI for an open-source ChatGPT-like interface - [RisuAI](https://docs.nano-gpt.com/integrations/risuai.md): Using NanoGPT with RisuAI for chat and character-based conversations - [Roo Code](https://docs.nano-gpt.com/integrations/roocode.md): Using NanoGPT with Roo Code interface - [SillyTavern](https://docs.nano-gpt.com/integrations/sillytavern.md): Using NanoGPT with SillyTavern for character-based chat - [TypingMind](https://docs.nano-gpt.com/integrations/typingmind.md): Using NanoGPT with TypingMind for an enhanced ChatGPT experience - [Introduction](https://docs.nano-gpt.com/introduction.md): Welcome to the Nano-GPT.com API - [Quickstart](https://docs.nano-gpt.com/quickstart.md): Start querying any model within 2 minutes. - [URL Parameters (Web App)](https://docs.nano-gpt.com/web-app/url-parameters.md): Currently supported URL parameters for the NanoGPT web app UI. ## OpenAPI Specs - [openapi](https://docs.nano-gpt.com/api-reference/openapi.json) ## Optional - [Back to NanoGPT](https://nano-gpt.com) - [Discord](https://discord.gg/KaQt8gPG6V) - [Blog](https://nano-gpt.com/blog)