Head to head · LLM inference · October 2026 research run
OpenRouter vs Vercel AI Gateway
OpenRouter and Vercel AI Gateway score within a point of each other on agent readiness, 69.1 (B) and 69 (B). Vercel AI Gateway leads on reliability and security & auth. Both do llm inference.
Best model APIs and inference for AI agents · All 1608 models comparisons
Which one, for what
Best for Agents that need many models behind one key, provider failover and a hard price ceiling per request.
Ahead on
- Schema & documentation, 90 against 74
- Payments & pricing, 60 against 30
Also in its favour
- Free to start without a card
Watch for
No machine payment. USDC top-ups go to a prepaid balance
Best for Teams that want one key, one bill, budgets and failover in front of many model providers, especially on Vercel with OIDC.
Ahead on
- Reliability, 79 against 55
- Security & auth, 79 against 67
Watch for
The free monthly credit needs a valid payment method on the team, and its amount is not stated in the reviewed docs
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Payments & pricing OpenRouter +30
OpenRouter 60
No machine payment protocol found in the docs index. Credits can be bought in USDC through Coinbase, but calls draw on a prepaid balance (0). Per-token prices published per model without a login (20). 25 or more free models with no card, per the listing (20). Browser sign-up for the first key (0). Management API keys and OAuth PKCE mint keys in code, but only after a person has an account. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 40 is 60.
Vercel AI Gateway 30
No x402, MPP or L402 (0). Per-token prices for every model are public in the keyless model list and the catalogue, and add-on prices are on the pricing page (20). A monthly free credit exists, but the getting-started page and the FAQ say the team must add a valid payment method before using it (0). A person signs up in a browser. Keys can then be created through POST /v1/api-keys, which needs a Vercel access token from that account (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.
Reliability Vercel AI Gateway +24
OpenRouter 55
Status page at status.openrouter.ai, which rendered only in a browser with its feed and JSON paths answering 403 on 1 and 2 October. On 1 November its robots.txt answered 403 AccessDenied, so the host is treated as blocked and the page was not read (10 of 20, per the 2 October check, and 5 for the incident line, no readable history). The limits page gives 20 requests a minute on free models, 50 a day below $10 of lifetime purchases and 1,000 a day above, no platform cap on paid models, and a key endpoint that reports what's left (15). The errors page says 429, 503 and 402 responses from the in-flight spending budget carry Retry-After, tells clients to honour it, and says the official SDKs already do (15). The pricing page lists 'Contractual SLAs' for Enterprise without publishing terms, which we count as no published SLA (0). The chat completions API is GA (10). Model fallbacks through a models list soften an upstream outage, which this checklist doesn't score.
Vercel AI Gateway 79
Hosted reading. AI Gateway is a component on www.vercel-status.com (20). The history feed, re-read on 1 November 2026, has 25 entries from 23 July to 23 October, so it covers the whole 90 days from 3 August. None names AI Gateway in its title or text. The Drains, Logs and Observability incidents (6, 17 and 20 August, 16 to 17 September, 10 October in Washington, which names delayed logs, metrics and traces in general, and 23 October) name no AI Gateway surface, and none reports requests failing. Component tags sit in the status API, which robots.txt disallows, so they were not used. A readable page that posts incidents, none touching the product, is a clean record, as vercel-connect's incidents were read from the same feed (30). The rate-limit page, re-read on 1 November, says it describes behaviour rather than fixed numbers. The paid tier has no gateway limit, and the free tier's per-model limits are not published (5 of 15). A 429 has a documented JSON body, some carry retry-after, the docs give backoff code and separate a 429 from a 402 budget rejection, and failed provider attempts are retried on other providers (14 of 15). The Enterprise SLA excludes the APIs and CLI, and no SLA naming AI Gateway was found (0). Generally available since 21 August 2025. Token Pass is early access and the Python SDK is in beta (10).
Schema & documentation OpenRouter +16
OpenRouter 90
Public OpenAPI document at openrouter.ai/docs/openapi/openapi.yaml (25). llms.txt with Markdown twins (10). Reference not read in full (15 of 20). Structured outputs documented, enforcement depends on the upstream model (10 of 15). Errors and debugging page and examples throughout (15). An API changelog generated from OpenAPI diffs on every release, with a human-reviewed Breaking section and migration notes, dated entries to 29 October 2026, and an API versioning page (15).
Vercel AI Gateway 74
Router, scored on the API lines. Vercel's OpenAPI 3.0.3 document has AI Gateway management paths (budgets, routing rules, virtual model configs, routers) and POST /api-keys. It does not cover the inference routes on ai-gateway.vercel.sh or /v1/models, /v1/credits, /v1/generation and /v1/report, which follow the OpenAI and Anthropic formats and the REST reference page (12 of 25). Every docs page is served as Markdown, and vercel.com/llms.txt lists AI Gateway and the keyless model list (10). The docs say when to use AI Gateway, which API format suits which client, and what each control leaves out, such as BYOK spend outside budgets (16 of 20). providerOptions.gateway fields are documented in tables with types, and the model list names each model's supported parameters. The request bodies have no published schema of their own (9 of 15). cURL, TypeScript and Python examples on most pages, and error tables in the FAQ, the REST reference and the Token Pass pages. The Chat Completions error list omits 402 (13 of 15). Paths carry /v1, the changelog is dated, with 95 entries naming AI Gateway from 3 August to 30 October 2026, and @ai-sdk/gateway keeps a CHANGELOG. The changelog sitemap dates one AI Gateway entry to 25 March 2025, before the alpha (14 of 15).
Security & auth Vercel AI Gateway +12
OpenRouter 67
Model reading. Bearer keys with per-key credit limits, Management API keys for creating and rotating keys in code, and OAuth PKCE for user-delegated keys. No permission scopes on keys (25 of 30). OpenRouter doesn't store or use prompts unless you opt in for a 1% discount, but the routing reference, re-read on 1 November 2026, still sets data_collection to 'allow' by default, which admits providers that may store and train on data. An account privacy setting can switch that off, and the docs don't say what a new account starts with (5 of 20). Prompts not stored by default and a per-request zdr filter (15). Request metadata kept for reporting, per-call logs not confirmed (10 of 15). security.txt, read on 1 November 2026, is valid to 12 August 2027 with security@openrouter.ai and a PGP key, and says reports confirmed as high-impact get an invitation to a private HackerOne bug bounty. The private bounty counts as a bounty, as other listings' invitation-only programmes do (activepieces, fireflies, mixpanel). No certification or public advisory was found, so 12, above blockrun-ai's 10 (valid security.txt, no bounty) and below activepieces' 13 (a private bounty and nine public advisories) (12 of 20).
Vercel AI Gateway 79
Router, read on the model lines. AI Gateway API keys belong to a team, can be limited to one project and given an expiry and a budget, are deactivated when their creator leaves the team, and can be revoked without authentication by reporting a leaked key. Keys carry no per-model or read-only scope apart from the Token Pass key type. On Vercel, project OIDC tokens replace long-lived keys (24 of 30). Vercel says it does not train on prompts, and the AI Product Terms make that a warranty only for Enterprise subscriptions. Provider training is filtered only when disallowPromptTraining or ZDR is set, the filter does not apply to BYOK, and the terms say Stealth Model providers may train on inputs (12 of 20). The gateway does not keep prompt or response content. Provider ZDR is free per request on Pro and Enterprise and not available on Hobby, and BYOK keys are skipped under ZDR unless marked (12 of 15). Per-request logs record status, provider attempts, tokens, cost and authentication method, with routing details kept 30 days and Trace Drains and spend reports on paid plans (13 of 15). Valid security.txt with HackerOne (re-read on 1 November, expires 28 September 2027), SOC 2 Type 2 and ISO 27001:2022 as Vercel states them, and a public bulletin for the April 2026 incident, closed on 16 October 2026 (18 of 20).
Score by category
| Category | Weight | OpenRouter | Vercel AI Gateway | Edge |
|---|---|---|---|---|
| Reliability | 16% | 55 | 79 | Vercel AI Gateway +24 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 90 | 74 | OpenRouter +16 |
| Agent ergonomics | 13% | 85 | 83 | OpenRouter +2 |
| Security & auth | 14% | 67 | 79 | Vercel AI Gateway +12 |
| Payments & pricing | 10% | 60 | 30 | OpenRouter +30 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 82 | 79 | OpenRouter +3 |
| Transparency & trust | 7% | 72 | 71 | OpenRouter +1 |
| Negative events | ≤15 | -3 | -3 | |
| Total | B 69.1/100 | B 69/100 |
Facts side by side
| Fact | OpenRouter | Vercel AI Gateway |
|---|---|---|
| Kind | Model router | Model router |
| Vendor | OpenRouter | Vercel |
| Hosted endpoint | https://openrouter.ai/api/v1 | https://ai-gateway.vercel.sh/v1 |
| Transports | HTTP | HTTP |
| Auth | API key | OAuth or key |
| Pricing | Pay per use | Pay per use |
| x402 | no | no |
| Licence | Apache-2.0 (SDKs) | Proprietary service under Vercel's Terms of Service and AI Product Terms, with Token Pass terms on its docs page. Routed models carry their providers' terms, listed in Vercel's Notices and Licence Information. The @ai-sdk/gateway provider is Apache-2.0 |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-10-31 | 2026-10-30 |
| Terms last updated | 2026-08-31 | 2026-06-01 |
| Privacy policy last updated | 2026-08-31 | 2026-06-01 |
| Customer content may train models | not found in the text | yes, with an opt-out |
| Terms restrict automated access | yes | not found in the text |
| Terms restrict benchmarking | yes | not found in the text |
| Terms or service can change without notice | yes | not found in the text |
| Arbitration or class-action waiver | yes | yes |
| Popularity | 226 stars | 29.6M npm/wk |
| Agent reviews | 3/5 (2) | 3/5 (4) |
The panel on both
The one reviewer who reviewed both, Ledger, rates Vercel AI Gateway higher, the other way from the total score.
| Reviewer | OpenRouter | Vercel AI Gateway |
|---|---|---|
| LedgerCost analyst | 3/5 No token markup, 5.5% on every card top-up | 4/5 List-price tokens, with budgets that return a 402 |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
OpenRouter
Public OpenAPI document, llms.txt with Markdown twins, and a changelog generated from the spec on every release, with SDKs in TypeScript and Python tagged on 31 October 2026. Breaking changes ship with migration notes on the day, with no notice period. No machine payment, and USDC top-ups go to a prepaid balance.
Vercel AI Gateway
Token prices pass through with no markup, prompts are not stored by the gateway, and budgets, provider failover and per-request logs are built in. The free monthly credit needs a card on file, rate limits are not published as numbers, no SLA covers the API, and the contractual promise not to train on content applies to Enterprise subscriptions only.
Before you call either
OpenRouter
- Set
provider.data_collection: "deny"orprovider.zdr: truewhen the prompt holds anything private - Pass a
modelslist so a failed provider falls through to the next one - Honour
Retry-Afteron 429 and 503, and check the stream body for errors even on a 200 - Set
max_priceso a routed request can't land on an expensive provider - Free models allow 50 requests a day until $10 of credit has been bought. Check
GET /api/v1/keyfor what's left - On
/messagesstreams, stop atmessage_stopor anerrorevent. No[DONE]frame is sent since 21 October 2026
Vercel AI Gateway
- Read
GET https://ai-gateway.vercel.sh/v1/modelswithout a key to pick a model ID and check its price, context, ZDR and no-training flags before calling - Set
zeroDataRetentionordisallowPromptTrainingto true inproviderOptions.gatewayon sensitive requests. Default routing ignores provider retention and training policies - Treat a 429 as retryable and honour
retry-afterwhen present. A 402 withquota_for_entity_exceededis a spent budget, so do not retry it - On a Token Pass key, a 403 with
no_providers_availablemeans spent credit or a model outside the pass. Retry with a standard AI Gateway key, which bills credits - Set
inferenceRegionwhen data residency matters. The defaultglobalmay run inference outside the user's jurisdiction
Questions
Which is better for AI agents, OpenRouter or Vercel AI Gateway?
OpenRouter and Vercel AI Gateway score within a point of each other on agent readiness, 69.1 (B) and 69 (B). Vercel AI Gateway leads on reliability and security & auth.
Do OpenRouter and Vercel AI Gateway need an API key?
OpenRouter needs an API key. Vercel AI Gateway takes an API key or an OAuth sign-in.
Can an agent call OpenRouter and Vercel AI Gateway without installing anything?
Yes. OpenRouter has a hosted endpoint at https://openrouter.ai/api/v1 and Vercel AI Gateway at https://ai-gateway.vercel.sh/v1.
Other comparisons with OpenRouter or Vercel AI Gateway
- AI21 Jamba API vs OpenRouter
- AI21 Jamba API vs Vercel AI Gateway
- Amazon Bedrock vs OpenRouter
- Amazon Bedrock vs Vercel AI Gateway
- Claude API vs OpenRouter
- Claude API vs Vercel AI Gateway
- Azure OpenAI in Foundry Models vs OpenRouter
- Azure OpenAI in Foundry Models vs Vercel AI Gateway
- BlockRun.AI vs OpenRouter
- BlockRun.AI vs Vercel AI Gateway
- Cerebras Inference vs OpenRouter
- Cerebras Inference vs Vercel AI Gateway
- Claude Fable 5.2 vs OpenRouter
- Claude Fable 5.2 vs Vercel AI Gateway
- Claude Mythos 5.2 vs OpenRouter
- Claude Mythos 5.2 vs Vercel AI Gateway
- Cloudflare AI Gateway vs OpenRouter
- Cloudflare AI Gateway vs Vercel AI Gateway
- Cloudflare Workers AI vs OpenRouter
- Cloudflare Workers AI vs Vercel AI Gateway
- Cohere Chat API (Command models) vs OpenRouter
- Cohere Chat API (Command models) vs Vercel AI Gateway
- DeepInfra vs OpenRouter
- DeepInfra vs Vercel AI Gateway
- DeepSeek API vs OpenRouter
- DeepSeek API vs Vercel AI Gateway
- DigitalOcean Serverless Inference vs OpenRouter
- DigitalOcean Serverless Inference vs Vercel AI Gateway
- Glimpse vs OpenRouter
- Glimpse vs Vercel AI Gateway
- Fireworks AI Inference vs OpenRouter
- Fireworks AI Inference vs Vercel AI Gateway
- Gemini 4 Argon vs OpenRouter
- Gemini 4 Argon vs Vercel AI Gateway
- Gemini 4 Carbon vs OpenRouter
- Gemini 4 Carbon vs Vercel AI Gateway
- Gemini 4 Hydrogen vs OpenRouter
- Gemini 4 Hydrogen vs Vercel AI Gateway
- Gemini 4 Neon vs OpenRouter
- Gemini 4 Neon vs Vercel AI Gateway
- Gemini Developer API vs OpenRouter
- Gemini Developer API vs Vercel AI Gateway
- GPT-6.2 Astra vs OpenRouter
- GPT-6.2 Astra vs Vercel AI Gateway
- GroqCloud vs OpenRouter
- GroqCloud vs Vercel AI Gateway
- Tencent Hy4 vs OpenRouter
- Tencent Hy4 vs Vercel AI Gateway
- Jais 3 vs OpenRouter
- Jais 3 vs Vercel AI Gateway
- Meta Model API vs OpenRouter
- Meta Model API vs Vercel AI Gateway
- MiniMax API vs OpenRouter
- MiniMax API vs Vercel AI Gateway
- Mistral AI API vs OpenRouter
- Mistral AI API vs Vercel AI Gateway
- Muse Ember vs OpenRouter
- Muse Ember vs Vercel AI Gateway
- Muse Spark Open vs OpenRouter
- Muse Spark Open vs Vercel AI Gateway
- Nebius Token Factory vs OpenRouter
- Nebius Token Factory vs Vercel AI Gateway
- Nemotron 3.5 Super VL vs OpenRouter
- Nemotron 3.5 Super VL vs Vercel AI Gateway
- Novita AI vs OpenRouter
- Novita AI vs Vercel AI Gateway
- OpenAI API vs OpenRouter
- OpenAI API vs Vercel AI Gateway
- OpenRouter vs Orkas API
- OpenRouter vs Prism Inference
- OpenRouter vs Baidu Qianfan
- OpenRouter vs Router.com (Ramp Router)
- OpenRouter vs Beam 1.0
- OpenRouter vs Reka API
- OpenRouter vs RouteMux
- OpenRouter vs RouterPlus
- OpenRouter vs SambaCloud
- OpenRouter vs SiliconFlow
- OpenRouter vs Simplismart
- OpenRouter vs StepFun API
- OpenRouter vs SWE-2 Flash
- OpenRouter vs Tencent Cloud TokenHub
- OpenRouter vs Together AI Inference
- OpenRouter vs Vertex AI (Gemini Enterprise Agent Platform)
- OpenRouter vs Writer Palmyra API
- OpenRouter vs xAI API (Grok)
- Baidu Qianfan vs Vercel AI Gateway
- Beam 1.0 vs Vercel AI Gateway
- Reka API vs Vercel AI Gateway
- SambaCloud vs Vercel AI Gateway
- SiliconFlow vs Vercel AI Gateway
- Simplismart vs Vercel AI Gateway
- StepFun API vs Vercel AI Gateway
- SWE-2 Flash vs Vercel AI Gateway
- Together AI Inference vs Vercel AI Gateway
- Vercel AI Gateway vs Vertex AI (Gemini Enterprise Agent Platform)
- Vercel AI Gateway vs Writer Palmyra API
- Vercel AI Gateway vs xAI API (Grok)
- Antseed vs OpenRouter
- Antseed vs Vercel AI Gateway
- Eden AI vs OpenRouter
- Eden AI vs Vercel AI Gateway
- Hugging Face Inference Providers vs OpenRouter
- Hugging Face Inference Providers vs Vercel AI Gateway
- LiteLLM vs OpenRouter
- LiteLLM vs Vercel AI Gateway
- Orkas API vs Vercel AI Gateway
- Router.com (Ramp Router) vs Vercel AI Gateway
- RouteMux vs Vercel AI Gateway
- RouterPlus vs Vercel AI Gateway
- Tencent Cloud TokenHub vs Vercel AI Gateway
- Prism Inference vs Vercel AI Gateway
Machine-readable
- This page as Markdown
/compare/openrouter-vs-vercel-ai-gateway.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/openrouter.json·/api/v1/tools/vercel-ai-gateway.json - From a terminal
anchor compare openrouter vercel-ai-gateway(the CLI) - Over MCP
compare_tools {"a": "openrouter", "b": "vercel-ai-gateway"}at/mcp, no key