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.
| Thing | Requesty | AIgateway |
|---|---|---|
| Base URL | https://api.requesty.ai/v1 | https://api.aigateway.sh/v1 |
| API key env var | REQUESTY_API_KEY | AIGATEWAY_API_KEY |
| Per-user keys | — | Sub-account API |
| Cost tags | — | x-aig-tag header |
| Free tier | Free 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
- Drop-in OpenAI-compatible. Just swap base URL + key; everything else stays.
- If you were using Requesty's free routing to dodge fees, AIgateway's 5% per-call is the closest equivalent.
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
- BYOK — bring your existing Requesty provider keys; pay 0% on those routes.
- Sub-accounts — per-customer keys with spend caps; the closest analogue to workspace-isolated keys.
- All migration guides — same docs for OpenRouter, Portkey, Helicone, LiteLLM, Together, Replicate, Fireworks, Requesty.