View as /docs.md
Migrate

Migrate from Requesty

Same free-tier wedge, plus sub-account API and cost-attribution tags that Requesty doesn't have. Pay-as-you-go after the free credits.

CLI automation for Requesty isn't shipped yet — you'll do this manually below. PRs welcome at packages/aig-cli/src/commands/migrate.ts.

TL;DR — three lines

# 1. set your AIgateway key
export AIGATEWAY_API_KEY="sk-aig-..."

# 2. change the base URL
base_url="https://api.aigateway.sh/v1"  # was https://api.requesty.ai/v1

# 3. search-and-replace the env var name

What changes, line-by-line

The table below is what aig migrate requesty rewrites. If you're doing it by hand, do these in order.

ThingRequestyAIgateway
Base URLhttps://api.requesty.ai/v1https://api.aigateway.sh/v1
API key env varREQUESTY_API_KEYAIGATEWAY_API_KEY
Per-user keysSub-account API
Cost tagsx-aig-tag header
Free tierFree tier (varies)$5 free credits on signup, no card required

Before / after — Python (OpenAI SDK)

BEFORE · Requesty
from openai import OpenAI

client = OpenAI(
    base_url="https://api.requesty.ai/v1",
    api_key=os.environ["REQUESTY_API_KEY"],
)
r = client.chat.completions.create(
    model="anthropic/claude-opus-4.7",
    messages=[{"role": "user", "content": "Hi"}],
)
AFTER · AIgateway
from openai import OpenAI

client = OpenAI(
    base_url="https://api.aigateway.sh/v1",
    api_key=os.environ["AIGATEWAY_API_KEY"],
)
r = client.chat.completions.create(
    model="anthropic/claude-opus-4.7",
    messages=[{"role": "user", "content": "Hi"}],
)

Behavioral notes

Credit match

Email your last invoice from Requesty to switch@aigateway.sh and we match the credit up to $1,000 (24-hour turnaround). Or read the full pitch at /switch/requesty.

What to read next