Access multiple AI models
through one API
Using the OpenAI SDK?
Just change the base URL.
Copy the prompt and paste it into a coding agent such as Claude Code or Cursor.
Integrate the AlpRouter API into this project. 1. Read the quickstart at https://alprouter.com/en/docs (summary for AI tools: https://alprouter.com/llms.txt). 2. Read the key from ALPROUTER_API_KEY. If it is missing, ask me to create one at https://alprouter.com/en/keys/new. Never commit the key. 3. Use the official OpenAI SDK for this stack or an OpenAI-compatible client. Set the base URL to https://alprouter.com/api/v1. 4. Select a provider/model ID such as anthropic/claude-opus-5.5. See https://alprouter.com/en/models and https://alprouter.com/api/v1/models for the full list. 5. Make one working end-to-end request, include error handling and explain how to run it.
client = OpenAI(
base_url="https://alprouter.com/api/v1",
)
client.chat.completions.create(
model="anthropic/claude-opus-5.5",
messages=[...],
)- Per million input tokens
- 6,480 credits
- Per million output tokens
- 32,400 credits
- Anthropic
- OpenAI
- xAI
- Moonshot AI
- Amazon
- DeepSeek
- Mistral AI
- Qwen
- Z.ai
- Meta
- Alibaba
- MiniMax
- NVIDIA
- Writer
- Cohere
- Microsoft
- Black Forest Labs
Enterprise AI Gateway, Security & Memory
Connect GPT and Claude through one API and compare model performance and input and output token prices. Meet Amem, our AI Memory add-on. When a new question needs only the user’s preferred answer format, send that preference with the question to shorten the context and use fewer input tokens.
- Amem · AI MemoryGenerally available
- When a returning customer prefers a checklist in Korean, Amem passes that preference to the model handling their next chat.
- Intelligent Routing
- Select a model for each request. For models served by multiple providers, requests can switch to another provider during an outage.
- AI FinOps
- Track spending across models in Korean won and set a spending limit for each API key.
- AI SecurityEnterprise add-ons
- Choose prompt injection detection, personal data masking, and AlpRouter API key detection per organization.
- Agent GovernanceRoadmap
- Planned controls will let teams specify which MCP tools their AI agents can access and with what permissions.
170 models, one API
Access Conversation·Image·Video models from 18 providers with one key.
- Claude Fable 5.2anthropic/claude-fable-5.212,960 creditsPer 1M input tokens
- GPT-6.2 Astraopenai/gpt-6.2-astra12,960 creditsPer 1M input tokens
- Grok 4.7x-ai/grok-4.73,240 creditsPer 1M input tokens
- Kimi K3.1moonshotai/kimi-k3.14,860 creditsPer 1M input tokens
- Nova 2 Liteamazon/nova-2-lite-v1486 creditsPer 1M input tokens
- DeepSeek V3.2deepseek/deepseek-v3.21,004 creditsPer 1M input tokens
Route simpler requests
to lower-cost models
Set the model to alprouter/auto. It picks a model for each request based on difficulty, so a simple greeting can use a cheaper model. There’s no additional routing fee.
Explore auto routingmodel="alprouter/auto"This example routes 6 sample requests to GPT-6 Luna, Claude Haiku 5.5, Claude Sonnet 5.5, Claude Opus 5.5 based on difficulty and compares the cost with sending all requests to Claude Opus 5.5.
Keep getting responses
when a provider goes down
For models with multiple providers, requests automatically move to the next available provider. You can also configure fallback models. Failed requests are free.
How fallback worksThis example shows how the next provider can take over when Anthropic, Amazon Bedrock, Microsoft Foundry, Google Vertex become unavailable in succession.
See your spending
in one place
Track the cost and token count of every request across providers. You can also set a spending limit for each key.
Start tracking usageCredits used
0
Requests
0 requests
- Claude Opus 5.513,600
- GPT-6.1 Sol6,300
- DeepSeek V3.22,750
Only this key stops when it reaches its limit
Your conversations
stay private
We keep the usage records needed to bill chat requests. Apps with Amem can save preferences through a separate API with the user’s consent. Each model provider applies its own policies.
- API keys are stored as one-way hashes
- Per-key spending limits
- Pause key
- Deleted keys stop working immediately
- Per-request cost records
- Spending is limited to your prepaid balance
- Prompts and responses
- Not stored
- What we record
- Model, tokens, cost and time
- Spending limit
- Pause
- Active
Frequently asked questions
What is AlpRouter?
AlpRouter is an LLM router that selects a language model for each request. You can also specify a model directly. Use one API key to access 170 models from 18 providers, including Anthropic, OpenAI, xAI, Moonshot AI, Amazon, DeepSeek. AlpRouter is operated by Alpsoft Co., Ltd., a Korean company.
Can I keep using the OpenAI SDK?
Yes. Set base_url to https://alprouter.com/api/v1 and api_key to your AlpRouter key. The Anthropic Messages and OpenAI Responses formats are also supported, so you can connect Claude Code and Codex.
How does pricing work?
One credit equals ₩1. You pay for usage from your prepaid balance, with no monthly subscription. See the model page for rates per million tokens. Requests that fail because the provider cannot generate a response are free.
How do I pay?
Add credits using bank transfer or stablecoins (USDT, USDC). A 10% VAT charge applies. Enter a business registration number to receive a tax invoice. Card payments are not currently supported.
Which models can I use?
Choose from 170 chat, image, video, embedding and transcription models, including GPT, Claude and Gemini. Set the model to alprouter/auto to route each question by difficulty.
Do you store conversations?
We process chat content to generate the response and record the time, model, token counts and cost for billing. Amem lets apps save preferences with the user’s consent for up to 30 days through a separate API. We do not train models on conversations.
What happens if a provider is unavailable?
Models with multiple providers automatically try the next provider. You can also specify fallback models in the models field.
How do I get started?
Sign up with email or Google, add credits and create an API key. You can also try the console chat without a key.