Migration guide

Switch to Routic in 3 steps. No code changes needed — just update your base URL and API key.

Why switch to Routic?

BenefitDescription
One API for all modelsAccess DeepSeek, Qwen, and more through a single endpoint
Lower costCompetitive pricing with transparent billing
OpenAI compatibleDrop-in replacement — same request/response format
No vendor lock-inSwitch models anytime without code changes
Unified billingOne invoice for all usage

3-step switch

Step 1: Get your Routic API Key

  1. Sign up at console.routic.ai
  2. Go to KeysCreate Key
  3. 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:

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.


See also