Base URL
Production base URL:/v1 base URL.
OpenAPI
Use the OpenAPI file if you want to import the API into Postman, Hoppscotch, or an SDK generator.AI Stats Gateway OpenAPI
View the specification file
Authentication
Most endpoints require a standard gateway API key. Management endpoints require a management API key created in the dashboard.401.
Endpoint families
| Endpoint | Purpose |
|---|---|
POST /chat/completions, POST /responses, POST /messages | Text generation |
POST /embeddings, POST /moderations | Embeddings and moderation |
POST /audio/speech, POST /audio/transcriptions, POST /audio/translations | Speech and audio |
POST /images/generations, POST /images/edits | Image generation and editing |
POST /videos, GET /videos, GET /videos/models, GET /videos/{video_id} | Video jobs and status |
POST /music/generate, GET /music/generate/{music_id} | Music generation jobs |
POST /ocr, POST /batches, GET /batches/{batch_id}, POST /files, GET /files/{file_id} | OCR, batches, and files |
GET /gateway/models, GET /providers, GET /pricing/models, POST /pricing/calculate, GET /activity | Discovery, pricing, and activity |
Billing and rate limits
- AI Stats does not apply its own rate limits. Limits are enforced by upstream providers.
- Paid requests require enough wallet balance to pass the preflight credit check.
- Free models with
:freedo not require deposited credits.