API Overview

OpenAI-compatible requests with TheRouter.ai routing extensions.

POST/v1/chat/completions

Path Conventions

NameTypeRequiredDescription
/v1/*
core inferenceCore endpoints such as chat completions, models, and generation lookup.
/v1/customer/*
tenant dashboard APITenant management endpoints such as API keys, analytics, credits, and guardrails.
/api/v1/*
OpenRouter-compatibleCompatibility 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.