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.
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 migrationWhen 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 reliabilityNo 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 pricingCreate 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 managementIf 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"
Configure AI-powered CLI tools in seconds, not minutes.
OpenAI's coding agent, powered by any model through aiok.
OPENAI_BASE_URL=https://api.aiok.click/v1
Anthropic's agentic coding tool, routed through aiok gateway.
ANTHROPIC_BASE_URL=https://api.aiok.click
Google's Gemini command-line, with cross-model fallback.
GEMINI_API_BASE=https://api.aiok.click/v1
Open-source AI coding, unified through aiok's endpoint.
OPENCODE_API_URL=https://api.aiok.click/v1
Free credits included. No credit card required. Change one line of code, and every AI model is yours.