Skip to content

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/v1

Authenticate with Authorization: Bearer sk-…. Create a key from the dashboard.

Endpoints

PathMethodAuth
/v1/chat/completionsPOSTAPI key
/v1/responsesPOSTAPI key
/v1/completionsPOSTAPI key
/v1/embeddingsPOSTAPI key
/v1/video/generationsPOSTAPI key
/v1/video/generations/{id}GETAPI key
/v1/images/generationsPOSTAPI key
/v1/images/editsPOSTAPI key
/v1/audio/speechPOSTAPI key
/v1/modelsGETnone
/v1/pricingGETnone

Streaming is supported on every text endpoint with "stream": true, in the same server-sent-event format the OpenAI SDK already parses.