Switching from OpenRouter

OpenRouter alternative.
More modalities, one schema, same frontier catalog.

OpenRouter is a popular text-model router with ~300 text LLMs. AIgateway covers the same frontier text models plus image, video, audio, voice, music, and embeddings — under one schema and one key, with 50%-off cached input and no fee on BYOK traffic.

Get your key →See pricingClaim credit match
Migration

One-line diff.

Change the base URL and the key. Every other line of your integration stays the same.

Before — OpenRouter
# pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="sk-or-...",
)

r = client.chat.completions.create(
    model="openai/gpt-5.4",
    messages=[{"role": "user", "content": "Hello"}],
)
After — AIgateway
# pip install aigateway-py openai
# aigateway-py: sub-accounts, evals, replays, jobs, webhook verify.
# openai SDK: chat/embeddings/images/audio — drop-in compat per our SDK's own guidance.
from openai import OpenAI

client = OpenAI(
    base_url="https://api.aigateway.sh/v1",
    api_key="sk-aig-...",
)

r = client.chat.completions.create(
    model="openai/gpt-5.4",
    messages=[{"role": "user", "content": "Hello"}],
)
Why switch

What AIgateway ships that OpenRouter doesn't.

WINS
  • Every modality, not just text — image, video, voice, audio, music, embeddings under the same schema.
  • No per-model variable markup, no surprise per-route fees — and cached input is 50% off.
  • Sub-account API for scoped end-user keys with spend caps (OpenRouter has none).
  • Eval-driven routing: grade candidate models on your data, bind the winner to an alias.
  • Replay + shadow A/B on any logged request to safely test new models.
HONEST
What OpenRouter does better, per their public docs.
  • OpenRouter has a longer tail of community text models; we curate to what ships reliably.
Credit match

Send your last OpenRouter invoice.
We match it.

Forward last month's OpenRouter invoice to switch@aigateway.sh and we apply matching AIgateway credit (up to $1,000) within 24 hours. Same base URL change. No migration tax.

Other migrations

Switching from something else?

Switch from Portkey →Switch from Helicone →Switch from LiteLLM →Switch from Together AI →Switch from Fireworks AI →Switch from Requesty →Switch from Braintrust →