Before and After
Node.js / TypeScript
Before:Python
Before:Environment Variable
Add your Routor key to.env:
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 themodel field in the response body. It will show the actual model used instead of "auto":
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.