Documentation
An OpenAI-compatible API. If your code already speaks to the OpenAI SDK, the only change is a base URL.
Base URL
https://router.xark.io/api/v1Authenticate with Authorization: Bearer sk-…. Create a key from the dashboard.
Migrating from another provider
Change a base URL and a key. Includes the model-id mapping and the three behaviours that differ from OpenAI.
Video, image and speech
Asynchronous video generation, OpenAI-compatible images and editing, and speech synthesis. Paths, parameters and the error table.
Model catalogue
Every model, its id, its licence and its published rate. Also available as JSON from GET /api/v1/models.
Pricing
Per-model rates with the official rate printed alongside, and the cached-input rate in its own column.
Licensing and compliance
Model licences, data handling, security practices and vulnerability disclosure.
Endpoints
| Path | Method | Auth |
|---|---|---|
| /v1/chat/completions | POST | API key |
| /v1/responses | POST | API key |
| /v1/completions | POST | API key |
| /v1/embeddings | POST | API key |
| /v1/video/generations | POST | API key |
| /v1/video/generations/{id} | GET | API key |
| /v1/images/generations | POST | API key |
| /v1/images/edits | POST | API key |
| /v1/audio/speech | POST | API key |
| /v1/models | GET | none |
| /v1/pricing | GET | none |
Streaming is supported on every text endpoint with "stream": true, in the same server-sent-event format the OpenAI SDK already parses.