Back to articles

Direct LLM Provider vs AI Gateway: How to Choose

Published 2026-09-18 · Gateway pricing and feature examples verified 2026-09-18

If your application is intentionally built around one LLM provider, a direct integration is often the shortest path. If you need to route across providers, add fallbacks, centralize spend controls, or consolidate usage visibility, an AI gateway can remove work from your application layer. Neither architecture is automatically cheaper, faster, or more reliable in every case.

Quick decision

Direct provider vs AI gateway

Architecture trade-offs to check before choosing an integration path
Decision dimension Direct provider AI gateway
Integration surface Provider-specific API, account, and SDK surface One gateway API can front multiple upstream providers
Provider fallback Your application owns cross-provider fallback unless another layer provides it Some gateways provide built-in provider ordering, fallback, or routing
Billing Each provider bills its own usage May offer unified billing or credits; fees vary by gateway
Spend policies Use provider-native controls or build application-side limits Some gateways add budgets, rate limits, or shared policy controls
Observability Provider-native dashboards and logs Some gateways aggregate usage, logs, or traces across providers
Provider-native features Direct access to the provider's current API surface Feature passthrough and parity must be checked for the gateway and provider
Operational dependency More provider integrations if you use several providers Fewer integration points, but the gateway becomes another dependency

The important distinction is ownership. Direct integrations keep routing, billing aggregation, and cross-provider policies in your application or platform stack. A gateway can move some of that responsibility into a shared layer, but the exact features and commercial model depend on the gateway you choose.

Compare three cost layers, not just token prices

A gateway decision should not start with a single "cheapest" ranking. Separate the cost into three layers:

  1. Upstream model cost. The input, output, cache, batch, or other inference prices charged for the model route. Use the model comparison tool or cost calculator to compare these route-level costs.
  2. Gateway cost. A gateway may charge platform fees, credit-purchase fees, add-on charges, or no token markup at all. Read the current billing terms instead of assuming every gateway uses the same model.
  3. Operational cost. Count the engineering and operations work required for provider integrations, failover logic, spend controls, logging, and policy enforcement. A lower gateway fee is not useful if the architecture adds work you do not need; a higher fee may still make sense if it replaces meaningful platform work.

Current gateway billing examples

Verified September 18, 2026. These examples are intentionally dated because gateway pricing changes independently of model token prices.

Gateway Current published billing example Official source
OpenRouter The Standard plan lists a 5.5% platform fee. Its BYOK terms separately list fee-free usage up to a monthly list-price inference threshold, then a 5% fee above that threshold. OpenRouter pricing
Cloudflare AI Gateway Unified Billing applies a 5% fee to purchased credits, while provider inference prices are passed through without markup. Cloudflare pricing
Vercel AI Gateway Token usage is published at provider list price with no token markup or platform fee. Optional gateway capabilities can have separate charges. Vercel pricing

These examples are not a ranking. They show why "gateway cost" needs its own line item instead of being blended into the upstream model's per-token price. For route-level model pricing, use the site's model pricing guide and verify production decisions against the current provider or gateway source.

Provider routing and model routing are different decisions

Provider routing chooses which upstream provider should serve a request. For example, OpenRouter documents provider ordering, fallbacks, and sorting by price, throughput, or latency. Cloudflare AI Gateway documents dynamic routes that can react to rate or budget conditions, while Vercel AI Gateway documents provider failover and routing controls. Those are gateway-layer decisions.

Model routing chooses a different model or capability tier based on the request. That can mean using a budget model for routine traffic and escalating only harder requests. If that is the decision you are making, see the model routing cascade guide instead.

Four common architecture cases

1. One provider, deep native integration

Start direct when the product intentionally depends on one provider's API surface and there is no current requirement for cross-provider routing. A gateway can be added later if the operational problem actually appears.

2. Multiple providers with failover requirements

Evaluate a gateway when the application would otherwise need to implement provider ordering, retry/fallback behavior, shared credentials policy, and usage controls across several providers. Check the exact fallback semantics and failure modes before treating the gateway as a reliability guarantee.

3. A direct integration adding a second provider

Compare two implementation costs: another native integration versus migrating the existing call path behind a gateway. If only a small part of the application needs the second provider, keeping both direct may still be simpler. If routing and shared controls are becoming platform concerns, a gateway becomes more compelling.

4. A gateway with one stable upstream

Reassess the extra layer if you are not using routing, fallback, policy, billing, or observability benefits. The gateway may still be useful, but it should earn its place through a concrete operational benefit rather than habit.

What to verify before migrating

Use the pricing database for the model-cost part

Architecture and model price are separate choices. Once you know whether calls will go direct or through a gateway, use the database to compare the actual model routes available to you:

Official sources checked

Gateway feature and fee claims above were checked against official vendor documentation on September 18, 2026.

Model prices and gateway terms change independently. Use this guide as an architecture framework, then verify the current model route and gateway billing terms before committing production traffic.