What You Are About to Do
Step 1 - Sign Up
Go to routor.io and create an account. Then top up credits from the Billing page - pricing is pure pay-as-you-go, with no subscription or minimum spend. See Billing and Credits for the full breakdown of pricing, top-up limits, and transaction history.Step 2 - Get Your API Key
Create a key from API Keys in the left sidebar - see API Keys for the full walkthrough with screenshots.Save your key now. It is only shown once.
Step 3 - Change Three Lines
Pick your language and swap these three values: the API key, the base URL, and the model name.Node.js / TypeScript
Python
curl
Step 4 - See What Happened
Open your dashboard to see the request logged in real time - model, tier, confidence, and savings for every call. Every non-streaming response also includes aroutor object in the JSON body with the routing decision:
DEBUG_ROUTING=1 set, the same information is also on the response headers (X-Routor-Model, X-Routor-Tier, etc.). Without that flag, only X-Request-Id is guaranteed on headers - use the routor response object or the Debug Endpoint instead.
Optional - Switch Tiers Per Request
Want more control? Pin, floor, or cap the routing tier per request with three optional body fields - no code restructuring:routor_tier_floor / routor_tier_ceiling. See Controlling the Tier for the full guide.