Keep your SDKs, enter the gateway
Point existing OpenAI-compatible clients at Routin and keep request shape, streaming, and tool flows familiar.
Read Chat CompletionsRoutin AI Gateway
A production AI API gateway that brings OpenAI-compatible requests, provider routing, metering, organization access, and developer tools into one stable path.
Point existing OpenAI-compatible clients at Routin and keep request shape, streaming, and tool flows familiar.
Read Chat CompletionsOrganize traffic across OpenAI, Anthropic, Gemini, and other providers without binding the app to one upstream.
Read ResponsesPlans, orders, quotas, snapshots, and billing boundaries move through one policy surface.
Read billingSplit credentials and permissions by team, app, and member so production access is clear and revocable.
Read organizationCodex, Claude Code, Gemini, Cherry Studio, Kilo Code, and OpenCode can all use the same gateway settings.
Read tool setupbaseURL: /v1
model: auto
stream: trueAI gateway architecture
Routin separates each model call into clear layers: clients enter through the compatible protocol surface, policy decides quota and access, routing selects providers, and observability writes usage, latency, and cost back into the business system.
Web apps, servers, Codex, Claude Code, and other clients enter through one gateway.
Unifies Chat, Responses, embeddings, images, audio, video, and related request shapes.
Applies quota, access, and audit rules by organization, plan, key, and member identity.
Chooses upstream providers by model, provider health, plan capability, and failover policy.
Normalizes provider responses, errors, and capability differences into one exit surface.
Records tokens, media jobs, plan windows, and order state into explainable cost data.
Tracks success rate, latency, errors, provider state, and request traces continuously.
Keeps user keys, provider keys, and app credentials isolated inside controlled boundaries.
Workflows
The docs follow production rollout order: connect requests, then shape routing, metering, access, and tools.
Chat Completions, Responses, images, audio, video, and embeddings.
Step 02Model routingOne model entry point with provider configuration and migration notes.
Step 03Plan meteringSubscriptions, quotas, usage snapshots, and cost boundaries.
Step 04Developer toolsConnect clients and command-line tools to the same gateway path.
Quick start
Start with compatible access, then enable provider routing, metering policy, organization access, and tool configuration.
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: process.env.ROUTIN_API_KEY,
baseURL: 'https://api.routin.ai/v1',
});
const response = await client.chat.completions.create({
model: 'auto',
stream: true,
messages: [{ role: 'user', content: 'Route this request.' }],
});Get started
Begin with the API closest to your existing app, ship the first request, then expand into team and production control.