API
Public API reference
Primary public endpoints for models, text and media.
Last updated on
Use the API base URL with /v1 and a Bearer key for the selected workspace. Parameters and support depend on the model. Inference keys and management keys are not interchangeable.
| Method and path | Purpose | Guide |
|---|---|---|
GET /v1/models | Catalog | Models |
GET /v1/models/count | Model count | Catalog |
POST /v1/chat/completions | Chat and streaming | Chat Completions |
POST /v1/responses | Responses | Responses |
POST /v1/messages | Messages | Messages |
GET /v1/images/models | Image models | Images |
POST /v1/images/generations | Image generation | Images |
GET /v1/videos/models | Video models | Video |
POST /v1/videos | Create video job | Video |
GET /v1/videos/{id} | Video job state | Video |
GET /v1/videos/{id}/content | Download video | Video |
See the Messages guide for its header requirements. This short reference does not describe the private cabinet or administrative API. Manage keys, balance and usage in the corresponding cabinet sections.
Authentication · Errors · Limits