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
| Code | Meaning |
|---|---|
| 401 | Missing or invalid key |
| 404 | Unknown routing tier |
| 429 | Tier capacity exhausted; retry after the given interval |
| 502 | All upstreams for the tier failed |