Documentation
One API for many models
xKiro speaks both the OpenAI Chat Completions and Anthropic Messages formats. Point the SDK you already use at xKiro, change the model ID, and keep the code you have written.
Base URL
https://api.xkiro.com/v1
Auth header
Authorization / x-api-key
Formats
OpenAI · Anthropic
Modalities
Text · Speech · Image
Model ID
vendor/model
Streaming
Server-sent events
Your first request#
curl https://api.xkiro.com/v1/chat/completions \
-H "Authorization: Bearer $XKIRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.6-sol",
"messages": [{ "role": "user", "content": "Hello" }]
}'Start here#
Quick start
Create a key and send your first request in under a minute.
Authentication
API keys, the two accepted headers, and what is public.
API reference
Every endpoint, parameter and response shape.
Capabilities#
Streaming
Server-sent events for both dialects, with cancellation that stops the bill.
Tool calling
Describe your functions and let the model decide when to call them.
Reasoning
Control how deeply a model thinks before it answers.
Vision
Send screenshots, charts and documents alongside your text.
Text to speech
Natural speech, streamed so playback starts early.
Image generation
Create and edit images through an asynchronous job API.
Two dialects, one gateway#
Every model is reachable through both formats. Pick whichever your SDK already speaks — the model does not change, only the shape of the request and response.
OpenAI Chat Completions
POST /v1/chat/completionsWorks with the official openai packages and everything built on them.
Anthropic Messages
POST /v1/messagesWorks with @anthropic-ai/sdk, anthropic for Python, and Claude Code.
How routing works#
A request names a model, not a provider. xKiro resolves it to a route and, if that route is unavailable, tries the next before returning an error — so a single upstream having a bad minute does not become your outage. You are always billed at the price of the model you requested, and the response always reports that same model.
New here? Start with Quick start. Migrating? See Migrate to xKiro.
