Switching from LiteLLM

LiteLLM alternative.
Managed LiteLLM without the YAML and the self-hosted proxy.

LiteLLM is an open-source SDK and proxy — powerful, but you run the infra, manage retries, and wire up your own observability. AIgateway gives you the same provider abstraction managed at the edge with 47ms p50 overhead.

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 — LiteLLM (self-hosted proxy)
# config.yaml
# model_list:
#   - model_name: gpt-5.4
#     litellm_params:
#       model: openai/gpt-5.4
#       api_key: os.environ/OPENAI_API_KEY

import openai

client = openai.OpenAI(
    base_url="http://your-litellm-proxy:4000",
    api_key="sk-litellm-...",
)

r = client.chat.completions.create(
    model="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 LiteLLM doesn't.

WINS
  • Managed at the edge — no proxy to host, no VPC to attach, no YAML to maintain.
  • 47ms p50 edge overhead globally — LiteLLM self-hosted often adds 150ms+.
  • Unified billing, caching, evals, replay baked in — no bolted-on stack.
  • Sub-account API, cost-attribution tags, bring-your-own-keys — all first-class.
  • OpenAI-compatible; point the OpenAI SDK at our base URL and ship.
HONEST
What LiteLLM does better, per their public docs.
  • LiteLLM has a richer config-as-code router for bespoke routing rules; we expose routing via aliases + evals, which covers most cases.
Credit match

Send your last LiteLLM invoice.
We match it.

Forward last month's LiteLLM 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 OpenRouterSwitch from PortkeySwitch from HeliconeSwitch from Together AISwitch from Fireworks AISwitch from RequestySwitch from Braintrust