API Overview
OpenAI-compatible requests with TheRouter.ai routing extensions.
POST/v1/chat/completions
Path Conventions
| Name | Type | Required | Description |
|---|---|---|---|
/v1/* | core inference | Core endpoints such as chat completions, models, and generation lookup. | |
/v1/customer/* | tenant dashboard API | Tenant management endpoints such as API keys, analytics, credits, and guardrails. | |
/api/v1/* | OpenRouter-compatible | Compatibility endpoints, such as GET /api/v1/credits. |
Header Basics
Send bearer auth with
Authorization: Bearer sk-.... The API returns x-request-id on every response.