Skip to main content
Switching from OpenAI to Routor takes two minutes and three line changes. Your existing SDK, your existing patterns, your existing code. Nothing else moves.

Before and After

Node.js / TypeScript

Before:
After:
Three changes. Everything else stays the same.

Python

Before:
After:

Environment Variable

Add your Routor key to .env:
Keep your OPENAI_API_KEY if you use OpenAI directly anywhere else. They are completely separate.

What Changes in Practice


Gradual Rollout

You do not have to switch everything at once. Routor runs alongside direct OpenAI calls. They are independent. Keep critical features on a direct GPT-5.5 call while you test Routor on lower-stakes requests:

Verifying the Switch Worked

Check the model field in the response body. It will show the actual model used instead of "auto":
Or check the Logs page in your dashboard to see routing decisions in real time.
TypeScript users: extra fields like routor_tier_floor are accepted by the API and passed through by the SDK at runtime, but the SDK’s types don’t know them - add // @ts-expect-error above the line or cast the params object.