One API key for every AI model

Access GPT-4, Claude, Gemini, DeepSeek, and 100+ models through a single OpenAI-compatible endpoint. No vendor lock-in. No separate subscriptions. Switch models in one line of code.

aiok API Gateway Your App GPT-4o Claude 4 Gemini 2.5 DeepSeek 100+ more
Supported Providers
OpenAI Anthropic Google DeepSeek Mistral Meta Llama Cohere Qwen
Compatibility

Drop-in OpenAI replacement

Already using the OpenAI SDK? Change one line — your base URL — and every model becomes available. No code rewrite. No new dependencies. Your existing tooling, evals, and observability stacks keep working.

See the migration
config.py - base_url = "https://api.openai.com/v1" + base_url = "https://api.aiok.click/v1" api_key = os.environ["AIOK_KEY"] model = "gpt-4o" # Switch models anytime — zero code change model = "claude-sonnet-4-20250514" # Same endpoint. Same SDK. New model.
Reliability

Automatic failover. Zero downtime.

When a provider goes down, aiok automatically routes your request to the next available model. Configure fallback chains — GPT-4o → Claude → Gemini — and your users never see an error.

Read about reliability
Request GPT-4o ● Primary failover Claude ● Fallback 1 Gemini ● Fallback 2 200 OK
Cost

Pay for what you use. Nothing more.

No monthly subscriptions. No minimum commitments. No surprise overages. Pre-load your balance, and tokens are deducted per request at provider-cost rates. See real-time usage in your dashboard.

View pricing
TRADITIONAL OpenAI $20/mo Claude $20/mo Gemini $20/mo $60/mo whether you use it or not vs AIOK All models, one balance Pay per token, provider rates No subscription needed Pay-as-you-go only for what you actually use
Team

One account. Multiple keys. Full control.

Create separate API keys for each project, team member, or environment. Set per-key rate limits and budgets. Track usage down to the token — no more guessing which project burned through your credits.

Learn about key management
Your Account Balance: $50.00 sk-prod-*** RPM: 60 Budget: $25 sk-staging-*** RPM: 30 Budget: $10 sk-dev-*** RPM: 10 Budget: $5 Real-time usage per key 60% — $30.00 used

Change one line. That's the migration.

If you're using the OpenAI SDK, you already know how to use aiok.

# pip install openai

from openai import OpenAI

client = OpenAI(
    api_key="sk-your-aiok-key",
    base_url="https://api.aiok.click/v1"  # ← Only this line changed
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)

# Switch models anytime — just change the model name:
# "claude-sonnet-4-20250514", "gemini-2.5-pro", "deepseek-chat"

One-click setup for your favorite tools

Configure AI-powered CLI tools in seconds, not minutes.

Codex CLI

OpenAI's coding agent, powered by any model through aiok.

OPENAI_BASE_URL=https://api.aiok.click/v1

Claude Code

Anthropic's agentic coding tool, routed through aiok gateway.

ANTHROPIC_BASE_URL=https://api.aiok.click

Gemini CLI

Google's Gemini command-line, with cross-model fallback.

GEMINI_API_BASE=https://api.aiok.click/v1

OpenCode

Open-source AI coding, unified through aiok's endpoint.

OPENCODE_API_URL=https://api.aiok.click/v1
100+
AI Models
99.9%
Uptime SLA
$0
To Start
<3min
Setup Time

Start building in under 3 minutes

Free credits included. No credit card required. Change one line of code, and every AI model is yours.