Documentation
Access multiple AI models through a unified, OpenAI-compatible API. Health-aware routing, automatic fallbacks, and usage governance — all from a single endpoint.
Quickstart
Get started with TheRouter.ai's unified API in minutes. Send your first request using the OpenAI SDK.
Overview
Learn about TheRouter.ai's principles, model routing, multimodal capabilities, and authentication.
Routing
Configure model fallbacks, provider selection, and model variants for optimal performance and cost.
Features
Tool calling, structured outputs, guardrails, broadcast integrations, and more.
Privacy & Best Practices
Data collection policies, logging, latency optimization, prompt caching, and uptime best practices.
API Reference
Complete API endpoint reference for chat completions, responses, models, credits, and more.
SDKs
TypeScript and Python SDKs with full API coverage, call model utilities, and agentic usage patterns.
Community
Framework integrations: Vercel AI SDK, LangChain, OpenAI SDK, PydanticAI, and 15+ more.