Migration guide
Switch to Routic in 3 steps. No code changes needed — just update your base URL and API key.
Why switch to Routic?
| Benefit | Description |
|---|---|
| One API for all models | Access DeepSeek, Qwen, and more through a single endpoint |
| Lower cost | Competitive pricing with transparent billing |
| OpenAI compatible | Drop-in replacement — same request/response format |
| No vendor lock-in | Switch models anytime without code changes |
| Unified billing | One invoice for all usage |
3-step switch
Step 1: Get your Routic API Key
- Sign up at console.routic.ai
- Go to Keys → Create Key
- Copy the key (starts with
sk-)
Step 2: Update your base URL
Replace your current API base URL with Routic:
# Before
client = OpenAI(
base_url="https://your-current-provider.com/v1",
api_key="your-current-key",
)
# After
client = OpenAI(
base_url="https://api.routic.ai/v1",
api_key="sk-xxxxxxxx",
)
Step 3: Update model names (optional)
If your current models aren't available on Routic, switch to Routic-supported models:
# Before
response = client.chat.completions.create(
model="your-current-model",
messages=[{"role": "user", "content": "Hello"}],
)
# After
response = client.chat.completions.create(
model="deepseek-v3", # or any model from our catalog
messages=[{"role": "user", "content": "Hello"}],
)
See the Model catalog for available models.
Configure your AI tools
We provide step-by-step guides for popular AI coding tools:
| Tool | Guide |
|---|---|
| Cursor | Using Routic in Cursor |
| Claude Code | Using Routic with Claude Code |
| Cline | Using Routic in Cline |
| Continue | Using Routic in Continue |
| Windsurf | Using Routic in Windsurf |
| Zed | Using Routic in Zed |
| Aider | Using Routic with Aider |
Compatibility
Routic is fully compatible with the OpenAI API format:
- Same request format:
messages,model,temperature, etc. - Same response format:
choices,usage,finish_reason - Same streaming format: SSE chunks
No code changes required — just update the base URL and API key.
Test your setup
After switching, send a test request:
curl -sS "https://api.routic.ai/v1/chat/completions" \
-H "Authorization: Bearer $ROUTIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-v3","messages":[{"role":"user","content":"ping"}]}'
A normal response means you're all set.