OpenRouter and AIHubMix are both one-key gateways to more than 500 models, and on Claude, GPT, Gemini and Grok they charge the same per-token price: the vendor's list price. So the comparison isn't about the sticker price. It's about what you pay on top of it, how open-weight models get routed, which wire protocols one key speaks, and where your fallback rules live.
This page lays those differences out, including the places where OpenRouter is the better pick.
The short answer
- Pick AIHubMix if most of your spend goes through prepaid credits and you'd rather not pay a fee on every top-up. It's also the better fit if you need Google's native Gemini API next to the OpenAI and Anthropic formats on one key, or if you want fallbacks attached to the API key so clients you can't edit keep working.
- Pick OpenRouter if you bring your own provider keys, run batch jobs that can wait 24 hours, need prompts processed inside Europe, or your procurement requires SAML SSO and a contractual SLA.
What you get on either one
A fair comparison starts with what both do:
- One API key and one balance for 500+ models from OpenAI, Anthropic, Google and the open-weight labs.
- OpenAI Chat Completions, OpenAI Responses and Anthropic Messages endpoints.
- Prepaid credits, billed per token at the vendor's list price on models such as Claude, GPT, Gemini and Grok.
- Automatic fallback to another model when a call errors, and an auto router that picks a model for you.
- Free models for testing, plus image, video, text-to-speech and speech-to-text models on the same key.
- Per-key spending caps, and card, Alipay and crypto top-ups.
AIHubMix vs OpenRouter, side by side
Figures come from each company's pricing pages, docs and public model APIs, checked on October 26, 2026.
| OpenRouter | AIHubMix | |
|---|---|---|
| Fee on credit purchases | 5.5% (8% on Business) | None |
| Claude, GPT, Gemini, Grok | Vendor list price | Vendor list price |
| Wire protocols | Chat, Responses, Messages | Same three + Gemini native |
| Open-weight models | Many hosts, price-weighted | One price per model ID |
| Fallback is set in | The request or a preset | The API key |
| Your own provider keys | No fee to $25K/mo, then 5% | Not available |
| Batch and flex pricing | About half price | Not available |
| Free models | 25+, 1,000/day after $10 | 67, 100/day after $1 |
| Zero data retention | Available on every plan | On by default |
| In-region routing | EU or US, on Business | None (Google Cloud, US) |
| Top-up methods | Card, Alipay, USDC | Card, Alipay, crypto |
OpenRouter's free-model cap is 50 requests a day until an account has bought $10 of credits. AIHubMix allows 10 free requests before the first top-up; its limits are published as live JSON and its ops team changes them. Neither gateway logs prompts by default. OpenRouter's ZDR option goes further and routes only to provider endpoints that don't retain prompts; AIHubMix's ZDR covers its own gateway, and its terms note that upstream providers may keep their own retention policies.
What the same tokens cost
OpenRouter's pricing page is explicit that it doesn't mark up inference: every plan pays the provider's list price. Its fee is charged when you buy credits: on the Standard plan, 5.5% for card payments (minimum $0.80) and 5% for crypto; on Business, 8%. The fee is non-refundable.
AIHubMix adds no fee when you buy credits. Card and crypto top-ups go through Stripe, and AIHubMix covers Stripe's processing fee on any top-up of $15 or more, which is also the minimum top-up. Alipay top-ups carry no fee either.
Here is what seven widely used models cost per million tokens (input / output) once each platform's top-up terms are counted:
| Model | Vendor list price | AIHubMix | OpenRouter with fee |
|---|---|---|---|
| Claude Opus 5.5 | $4 / $20 | $4 / $20 | $4.22 / $21.10 |
| Claude Sonnet 5.5 | $2 / $10 | $2 / $10 | $2.11 / $10.55 |
| GPT-6.1 Sol | $2 / $10 | $2 / $10 | $2.11 / $10.55 |
| Gemini 3.8 Flash | $0.75 / $3.75 | $0.75 / $3.75 | $0.79 / $3.96 |
| Grok 4.7 | $2 / $6 | $2 / $6 | $2.11 / $6.33 |
| GLM-5.3 | $1.40 / $4.40 | $1.13 / $3.94 | $1.48 / $4.64 |
| Qwen3.8 Max | $2 / $6 | $1.69 / $5.07 | $2.11 / $6.33 |
Vendor list price is the vendor's own endpoint as listed on OpenRouter (Z.AI for GLM-5.3, Alibaba for Qwen3.8 Max). Google's $0.75 / $3.75 for Gemini 3.8 Flash applies through December 31, 2026; its pricing page lists $1.50 / $7.50 from January 1, 2027. The OpenRouter column is that price × 1.055, the Standard-plan card fee. AIHubMix prices are from its model catalog. All were checked on October 26, 2026; prices differ by model and change, so check the model page before you commit a workload.
A worked bill. Say a team spends $1,000 a month at list price on Claude Sonnet 5.5 and Gemini 3.8 Flash. On OpenRouter Standard, buying $1,000 of credits costs $1,055, so the year comes to $12,660 against $12,000 on AIHubMix: $660 more for the same tokens. Teams on OpenRouter Business, the self-serve plan with in-region routing, pay 8%: $1,080 a month.
Where OpenRouter comes out cheaper. The fee stops mattering in three cases:
- Bring your own keys. On OpenRouter, requests served with your own provider keys carry no OpenRouter fee up to $25,000 of list-price inference a month, and a fee of 5% of list price after that. If you already pay Anthropic or OpenAI directly, the 5.5% doesn't apply to that traffic.
- Batch jobs. OpenRouter's Batch API runs at about half the sync price, with results within 24 hours. AIHubMix has no batch endpoint.
- Flex tiers. Some vendors expose cheaper, lower-priority endpoints through OpenRouter. GPT-6.1 Sol's flex endpoint lists at $1 / $5, half its standard price.
How OpenRouter routes open-weight models
Closed models such as Claude are served only through their vendor or the vendor's licensed partners. Open-weight models can be hosted by anyone, and on OpenRouter that changes both the price you pay and what you get.
Take GLM-5.3. On October 26, 2026, OpenRouter listed 47 endpoints for it. Input prices ran from $0.07 to $2.80 per million tokens, and 30 of the endpoints were tagged as fp4, nvfp4 or fp8 quantizations. Z.AI's own endpoint, itself tagged fp8, charged $1.40 / $4.40. The headline price on OpenRouter's models API, $0.07 input, is the cheapest of those endpoints, not Z.AI's.
By default, OpenRouter load-balances by price: among providers with no significant outage in the last 30 seconds, it picks one weighted by the inverse square of its price. A request for z-ai/glm-5.3 is therefore most likely to go to a cheap host. OpenRouter's own docs warn that quantized models "may exhibit degraded performance for certain prompts". You can take control with the provider object:
{
"model": "z-ai/glm-5.3",
"provider": { "order": ["z-ai"], "allow_fallbacks": false },
"messages": [{ "role": "user", "content": "Review this diff for race conditions." }]
}
With fallbacks off, the request fails when that provider is down. The quantizations field is the softer option: it filters by precision and still lets OpenRouter balance across the hosts that remain.
On AIHubMix a model ID has one listed price, and there's no provider parameter to set. GLM-5.3's input and output prices there, $1.13 / $3.94, are below Z.AI's own endpoint. If you want the widest choice of hosts and the lowest possible price for an open-weight model, OpenRouter's marketplace gives you more of both. If you'd rather not manage provider preferences in every request, one price per ID is simpler.
Protocols and coding tools
Both gateways serve OpenAI Chat Completions, the OpenAI Responses API and Anthropic Messages. So Claude Code, which speaks Anthropic Messages, and Codex, which speaks the Responses API, can run on either one.
AIHubMix adds a fourth protocol: Google's native Gemini API at /gemini/v1beta/models/{model}:generateContent. Code written with Google's SDK, and tools that only speak the Gemini format, can point at https://aihubmix.com/gemini and keep their request shape. OpenRouter's documentation lists no Gemini-native endpoint, so Gemini-shaped clients have to be ported to one of the other formats first.
For Claude Code, the AIHubMix setup is three environment variables: ANTHROPIC_BASE_URL=https://aihubmix.com, ANTHROPIC_AUTH_TOKEN set to your AIHubMix key, and ANTHROPIC_MODEL set to a model such as claude-sonnet-5-5. Protocol support still varies by model, so check the model's page before you rely on an endpoint.
Fallback without touching the client
Both platforms will retry on another model when the first one fails. The difference is where you write the rule.
On OpenRouter you pass a models list in the request, or save a preset and send @preset/<name> as the model. Either way, the client has to send something OpenRouter-specific.
On AIHubMix, model mapping and fallback are set on the API key in the console. The client keeps sending whatever model name it already uses, and the key rewrites it to a real model, with an ordered list of backups when the call errors. Billing follows the model that finally answered. That matters for tools that only accept certain model names, such as clients that insist on Claude-style IDs, and for apps you can't redeploy just to change a fallback order.
Both also have an auto router. OpenRouter's is openrouter/auto. On AIHubMix you send model: "auto", which picks by cost by default, or auto:quality_first, auto:balanced or auto:latency_critical. Neither adds a fee for routing.
Free models
AIHubMix lists 67 free models and covers their inference cost. A new account gets 10 requests before its first top-up. After at least $1 has been paid in, the limits are 10 requests a minute, 100 a day and 1 million tokens a day, with heavier models counting as several requests.
OpenRouter lists 25+ free models, capped at 20 requests a minute and 50 a day. Once an account has bought at least $10 of credits, the daily cap rises to 1,000.
So AIHubMix has more free models to try, while OpenRouter allows more free requests per day once you've bought $10 of credits. Neither free tier is meant for production traffic.
When OpenRouter is the better choice
- You hold your own provider contracts. BYOK carries no OpenRouter fee up to $25,000 a month of list-price inference, and AIHubMix has no BYOK.
- Your workload can wait. Batch and flex pricing cut the token bill roughly in half, far more than a 5.5% fee.
- Your prompts must stay in Europe. OpenRouter Business sends requests made to
eu.openrouter.aionly to provider endpoints in the EU/EEA, the UK and Switzerland. The hosted AIHubMix gateway runs on Google Cloud in the US. - Procurement needs SSO and an SLA. OpenRouter's Enterprise plan lists SAML SSO, SCIM and contractual SLAs. AIHubMix's enterprise page offers private deployment and custom volume pricing.
- You want the cheapest host for an open-weight model and accept quantized endpoints.
Moving from OpenRouter to AIHubMix
- Create a key in the AIHubMix console, following the quick start, and add credits. The minimum top-up is $15, or start on the free models.
- Change the base URL and key. OpenAI SDKs point at
https://aihubmix.com/v1, Anthropic SDKs athttps://aihubmix.com, and Google's SDK athttps://aihubmix.com/gemini. - Rename the models. AIHubMix drops the
vendor/prefix, and Claude versions use hyphens.
| OpenRouter ID | AIHubMix ID |
|---|---|
| anthropic/claude-sonnet-5.5 | claude-sonnet-5-5 |
| anthropic/claude-opus-5.5 | claude-opus-5-5 |
| openai/gpt-6.1-sol | gpt-6.1-sol |
| google/gemini-3.8-flash | gemini-3.8-flash |
| z-ai/glm-5.3 | glm-5.3 |
In code, the switch looks like this:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://aihubmix.com/v1", # was https://openrouter.ai/api/v1
api_key=os.environ["AIHUBMIX_API_KEY"], # was your OpenRouter key
)
resp = client.chat.completions.create(
model="claude-sonnet-5-5", # was anthropic/claude-sonnet-5.5
max_tokens=8000,
messages=[{"role": "user", "content": "Summarize this changelog in three bullets."}],
)
print(resp.choices[0].message.content)
Three things to watch after the switch:
- Set
max_tokensfor Claude on Chat Completions. AIHubMix defaults it to 4,096 on that endpoint, so long answers stop early if you leave it out. - Keep enough balance for expensive models. Before a call to a high-cost model such as Claude Opus, AIHubMix checks that your balance covers the output price × max tokens, and may reject the request if it doesn't. A realistic
max_tokenskeeps that check from blocking you. - Move OpenRouter-only routing to the key. Fields such as
provider,modelsand@preset/...model names have no AIHubMix equivalent in the request body. Set fallbacks on the key instead.
FAQ
Is AIHubMix an OpenRouter alternative?
Yes. Both give you one OpenAI-compatible API key for 500+ models, prepaid credits and automatic fallback. AIHubMix differs in charging no fee on top-ups, serving Google's native Gemini API alongside the OpenAI and Anthropic formats, and keeping fallback rules on the API key.
Is AIHubMix cheaper than OpenRouter?
On closed flagship models such as Claude Sonnet 5.5 and GPT-6.1 Sol, the per-token price is the vendor's list price on both. OpenRouter adds 5.5% when you buy credits by card (5% for crypto, 8% on Business), so the same tokens cost about 5.5% more there. Some models, such as GLM-5.3 and Qwen3.8 Max, list below the vendor's own price on AIHubMix. OpenRouter is cheaper for batch jobs, flex endpoints and BYOK traffic.
Does AIHubMix charge a fee when I add credits?
No. AIHubMix covers the Stripe processing fee on card and crypto top-ups of $15 or more, and $15 is the minimum top-up. Alipay top-ups have no fee.
Can I use my OpenRouter code on AIHubMix?
Usually with three changes: the base URL, the API key and the model IDs. OpenRouter-specific fields such as provider preferences, model lists and presets don't carry over; set fallbacks on the AIHubMix key instead.
Does AIHubMix support bring-your-own-key?
No. AIHubMix bills all usage from your credit balance. If most of your traffic runs on your own provider contracts, OpenRouter's BYOK allowance is the better fit.
Does AIHubMix have free models like OpenRouter?
Yes, 67 at the time of writing, with 10 requests before your first top-up and 100 requests a day once you've paid in at least $1. OpenRouter has 25+ free models with 50 requests a day, or 1,000 after you've bought $10 of credits.
Can I keep my traffic in the EU?
Not on the hosted AIHubMix gateway, which runs on Google Cloud in the US. AIHubMix's enterprise plan offers private deployment, which is worth asking about if you have residency requirements. OpenRouter offers EU and US in-region routing on its Business and Enterprise plans.
Sources
- OpenRouter Pricing (OpenRouter)
- Provider Routing (OpenRouter docs)
- API Credit & Rate Limits (OpenRouter docs)
- AI Models & Pricing (AIHubMix)
- Model Mapping and Fallback (AIHubMix docs)



