Switching from OpenRouter

OpenRouter alternative.
More modalities, lower fee, same 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, one key, and a lower platform fee.

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
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
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.
  • 5% flat platform fee at credit top-up — no per-call fees, no variable markup.
  • 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 PortkeySwitch from HeliconeSwitch from LiteLLMSwitch from Together AISwitch from Fireworks AISwitch from RequestySwitch from Braintrust