Migrate from OpenRouter in 60 seconds Same OpenAI SDK, 52–71% lower spend.
Moving from OpenRouter to rawroute requires changing two environment variables—base_url (https://api.rawroute.dev/v1) and your API key—plus dropping vendor prefixes like "anthropic/" or "openai/" from model strings. You immediately eliminate OpenRouter's 5.5% credit fee and pay 30–50% of official chat list prices.
Verified 28.11.2026
Model ID mapping (OpenRouter → rawroute)
| OpenRouter ID | rawroute ID | OpenRouter +5.5% | rawroute (0%) |
|---|---|---|---|
| anthropic/claude-opus-4-5 / opus-5-5 | claude-opus-5-5 | $4.22 / $21.10 | $2.00 / $10.00 |
| anthropic/claude-sonnet-5-5 | claude-sonnet-5-5 | $2.11 / $10.55 | $1.00 / $5.00 |
| openai/gpt-6.2-astra | gpt-6.2-astra | $8.44 / $42.20 | $2.40 / $12.00 |
| google/gemini-4-argon | gemini-4-argon | $2.11 / $10.55 | $1.00 / $5.00 |
Bonus: switch Claude to native /v1/messages
While OpenRouter wraps most calls through OpenAI schemas, rawroute lets Anthropic SDK clients talk directly to https://api.rawroute.dev/v1/messages so prompt caching breakpoints and extended thinking blocks work verbatim.
# - OPENAI_BASE_URL=https://openrouter.ai/api/v1
# - OPENAI_API_KEY=sk-or-...
RAWROUTE_BASE_URL=https://api.rawroute.dev/v1
RAWROUTE_API_KEY=rr_live_your_key_hereWhen NOT to use rawroute
- — If your codebase relies on open-weight models outside our 36 frontier models, keep OpenRouter as a secondary fallback route in LiteLLM or your router config.
FAQ
Can I also run `rawroute init` to detect my OpenRouter setup automatically?
Yes. `rawroute init --verify` scans your repo SDKs, writes RAWROUTE_BASE_URL and RAWROUTE_API_KEY to .env, and checks live connectivity.