API reference

Wire-compatible with the OpenAI Chat Completions schema. Existing SDKs need only a base URL change.

Authentication

curl https://api.clauderouter.org/v1/models -H "Authorization: Bearer mr-..."

Streaming

Set stream: true for server-sent events, terminated by data: [DONE].

Status codes

CodeMeaning
401Missing or invalid key
404Unknown routing tier
429Tier capacity exhausted; retry after the given interval
502All upstreams for the tier failed