Direct SDKs (no framework) vs Vercel AI Gateway
Both are alternatives to OpenRouter. Here's how they stack up — verified facts, no spin.
Also searched as Vercel AI Gateway vs Direct SDKs (no framework) — same comparison, one verdict.
Direct SDKs (no framework) is open source (Your code (official SDKs: MIT / Apache-2.0)) and Vercel AI Gateway is not (Proprietary (hosted service)) — so the real question is whether you want to own the llm gateways & routing stack or rent it.
Direct SDKs (no framework)
Call each provider's own API: no router in the path, no fee on top.
With two or three models, the simplest alternative is no router at all: each provider's own SDK and API key, billed at that provider's price with nothing added. You give up one bill and automatic fallback across providers, and take one service out of every request.
Vercel AI Gateway
A hosted gateway with no markup on tokens.
Vercel's hosted gateway: one endpoint and one bill across many providers, with no markup and no platform fee on tokens by its pricing docs (updated 8 Sep 2026). The free tier covers a subset of models with rate limits; on paid use you can bring your own keys at zero markup, and you pay the payment-processing fees. Some add-ons cost extra, among them a team-wide model allowlist, regional hosting at 5%, and bring-your-own-key without fallback.
Side by side
6 points of comparison, every one read from a verified field. Green marks the side that wins a row outright. A dash means we do not hold that fact — never that it is zero.
| Direct SDKs (no framework) | Vercel AI Gateway | |
|---|---|---|
| Sovereignty ScoreOur transparent 0–100 composite for data ownership and exit cost. | 93 | 30 |
| Open source | Yes | No |
| Self-hostable | Yes | No |
| Local-first data | Yes | No |
| License | Your code (official SDKs: MIT / Apache-2.0) | Proprietary (hosted service) |
| Pricing | Free; you pay each model provider directly. | No markup and no platform fee on tokens; payment-processing fees are passed on. Free tier with a subset of models and rate limits. Add-ons such as regional hosting (5%) cost extra. |
Direct SDKs (no framework) edges it on the Sovereignty Score, but the right pick depends on the trade-offs below.
Weighing both against staying on OpenRouter? Is OpenRouter free? What it actually costs →
Direct SDKs (no framework)
Strengths
- +Nothing between your code and the provider
- +Each provider's price, with no fee on top
Trade-offs
- −One account, key and bill per provider
- −Fallback between providers is code you write
Vercel AI Gateway
Strengths
- +No markup on tokens
- +Nothing to run
- +Bring your own keys at zero markup on paid use
Trade-offs
- −Hosted and proprietary: every prompt passes through Vercel
- −Add-ons such as regional hosting carry a surcharge
Which one fits you
The trade-offs above, turned into a decision. Find the line that describes your team.
Choose Direct SDKs (no framework)
if you want the source and the option to fork it, and you would rather run it on your own hardware, and your data should stay on machines you control.
Choose Vercel AI Gateway
if no markup on tokens.
Neither, yet
if both carry a real cost you should weigh first — one account, key and bill per provider, and hosted and proprietary: every prompt passes through Vercel. If either of those is a dealbreaker for your team, the shortlist is wrong rather than the choice.
Direct SDKs (no framework) vs Vercel AI Gateway — common questions
Is Direct SDKs (no framework) a better fit than Vercel AI Gateway for llm gateways & routing?
It depends on what you are optimising for, and the honest split is this: Direct SDKs (no framework) scores 93 to Vercel AI Gateway's 30 on data ownership and exit cost, so it is the safer choice if you care about being able to leave. Vercel AI Gateway earns its place on a different axis — no markup on tokens. Neither is a wrong answer for every team; the table above is the actual comparison.
What happens if we want to switch later?
Direct SDKs (no framework) keeps its data local or in open formats, so leaving is an export rather than a negotiation. Vercel AI Gateway keeps your data on its own infrastructure, which is the part to plan for: confirm the export path before you commit, not when you are already trying to leave.
Can I self-host Direct SDKs (no framework)?
Direct SDKs (no framework) can be self-hosted; Vercel AI Gateway cannot, so it stays on the vendor's infrastructure whatever you do.
Are Direct SDKs (no framework) and Vercel AI Gateway both alternatives to OpenRouter?
Yes — both appear in our OpenRouter comparison, which is why they are worth putting side by side. People usually arrive here already having decided to move off OpenRouter and now choosing between the two replacements, which is a narrower and much easier question.
More llm gateways & routing comparisons
Related alternative guides
Facts verified 2026-11-17. Licenses and pricing change — spotted something out of date? That's a correction we want.