LLM gateway pricing: fees, markup and a worked example
LLM gateway fees compared: OpenRouter and Cloudflare charge 5% to 8% on credits, Vercel passes on processing, TrustedRouter adds 5.5% to token prices.Compare fees and reproduce a monthly bill.
Up to 1 million free tokens. No card required.
The hosted gateways compared here add no markup to token prices: OpenRouter and Cloudflare charge 5% to 8% when you buy credits, and Vercel passes on payment processing. TrustedRouter instead includes a 5.5% markup in each token price and has no monthly or seat fee.
LLM gateway fees compared (checked November 24, 2026)
Compare token markup separately from credit-purchase charges; the terms below were checked .
| Gateway | Token markup | Other fee and what it applies to | BYOK terms | Source |
|---|---|---|---|---|
| TrustedRouter | 5.5% inside token prices | No monthly or seat fee. Credit purchases add a separate payment-processing fee, shown at checkout. | Use your provider account; no separate BYOK fee is published. | Pricing; BYOK; published fee comparison |
| OpenRouter | 0%; provider list price | Standard: 5.5% on credit purchases ($0.80 minimum); Business: 8%. Crypto purchases: 5%. | Standard and Business: first $25,000.00 of list-price inference per month has no fee; 5% above it. | Pricing; FAQ; comparison |
| Vercel AI Gateway | 0%; no platform fee on tokens | Customer pays payment-processing fees; add-ons metered separately. | No inference markup; $0.20 per 1,000 BYOK requests while fallback to Vercel keys is off. Enabled add-ons still apply. | Pricing; comparison |
| Cloudflare AI Gateway | 0%; provider prices passed through | Core features free; Unified Billing adds 5% on credit purchases. | Core features free; the 5% charge applies to Unified Billing credits. | Pricing; comparison |
| LiteLLM | 0% for the open-source proxy | Free to self-host; you pay infrastructure. Enterprise annual contract depends on capacity, deployment and support, never per token. | Self-hosted proxy uses your provider keys and infrastructure. | Pricing; comparison |
| Portkey (Prisma AIRS AI Gateway) | No current public quote | Pricing page redirects to a sales contact page. | Ask for current contract terms. | Pricing contact; current product name |
TrustedRouter's listed token prices already include its 5.5% markup. Payment processing on purchased credits is separate from this inference markup.
Which LLM gateways have transparent per-token pricing?
OpenRouter, Vercel AI Gateway, Cloudflare AI Gateway and TrustedRouter publish per-token prices and their gateway or funding fees, as shown in the fee table. Portkey, now Prisma AIRS AI Gateway, and LiteLLM Enterprise are quote-only today. TrustedRouter's listed token price already includes its 5.5% fee.
What $100 of inference costs through each gateway
For $100.00 of provider-priced inference and fully spent credits, the gateway and funding terms above give these amounts before taxes and optional add-ons.
- TrustedRouter: $105.50, plus the payment-processing charge for funding those credits.
- OpenRouter Standard: $105.50; Business: $108.00; crypto: $105.00 under the FAQ's crypto rate.
- Cloudflare Unified Billing: $105.00.
- Vercel AI Gateway: $100.00 plus applicable payment processing.
- LiteLLM open source: $100.00 plus your own infrastructure and operations.
- Portkey (Prisma AIRS AI Gateway): no public total; obtain a quote.
TrustedRouter and OpenRouter Standard both come to $105.50 on fully spent credits before TrustedRouter's separate checkout processing fee; with that fee, TrustedRouter's total is above OpenRouter Standard's. OpenRouter takes its 5.5% when credits are bought (with a $0.80 minimum), while TrustedRouter includes its 5.5% in each token price and adds the card or bank processing fee at checkout as a separate line.
TrustedRouter's fee at scale
| Monthly provider-priced inference | 5.5% fee | Inference total |
|---|---|---|
| $1,000.00 | $55.00 | $1,055.00 |
| $10,000.00 | $550.00 | $10,550.00 |
| $100,000.00 | $5,500.00 | $105,500.00 |
Payment processing remains separate from these inference totals.
What is the cheapest OpenAI-compatible LLM gateway?
Self-hosted LiteLLM has no gateway fee; you pay for infrastructure and operations. Among the hosted options with published totals, $100.00 of inference costs $100.00 through Vercel AI Gateway, $105.00 through Cloudflare Unified Billing or OpenRouter crypto, $105.50 through TrustedRouter or OpenRouter Standard, and $108.00 through OpenRouter Business. TrustedRouter's $105.50 excludes its separate checkout processing fee; with that fee, TrustedRouter's total is above OpenRouter Standard's. Vercel also passes on payment processing. The amounts above exclude taxes and optional add-ons; Portkey needs a quote.
For the workload below, model choice moves the bill far more than the fee: GPT-6 Luna costs $9.50 versus $189.90 for Claude Sonnet 5.5.
How do I compare LLM prices across providers?
Multiply input millions by the input rate and output millions by the output rate, add those costs, then add the gateway fee and apply billing rounding.
Example monthly workload: 10,000 requests, each with 4,000 input tokens and 1,000 output tokens: 40 million input and 10 million output tokens. Assume no cache use, retries, receipts or request fees, with the provider pinned as shown.
| Model and provider | Provider price per 1M input / output | Provider cost | Fee (5.5%) | Monthly total |
|---|---|---|---|---|
| DeepSeek V4.1 Flash on DeepInfra | $0.20 / $0.60 | $14.00 | $0.77 | $14.77 |
| GPT-6 Luna on OpenAI | $0.10 / $0.50 | $9.00 | $0.50 | $9.50 |
| Claude Sonnet 5.5 on Anthropic | $2.00 / $10.00 | $180.00 | $9.90 | $189.90 |
| GPT-6.2 Sol on OpenAI | $2.00 / $10.00 | $180.00 | $9.90 | $189.90 |
| Claude Opus 5.5 on Anthropic | $4.00 / $20.00 | $360.00 | $19.80 | $379.80 |
Prices collected (catalog). Rates use the 4,000-token context tier; totals include component rounding.
The same model on different providers
DeepSeek V4.1 Flash has 21 prepaid provider routes. Ranked by input plus output price, the lowest is Engy at $0.03165 input / $0.1266 output per million tokens; the highest is IO Intelligence at $0.865311 / $3.537837. These TrustedRouter retail rates include the standard markup and use the 4,000-token context tier. Prices collected ; IO Intelligence: ; all provider routes and limits.
Is an LLM gateway worth the markup versus calling the provider directly?
With one provider and steady usage, going direct is cheaper by the fee; the gateway fee is repaid when savings from the model mix exceed that fee, under the workload assumptions below.
TrustedRouter adds $5.50 per $100.00 of provider-priced inference. The 5.5% fee is repaid once about 5.5% of Claude Sonnet 5.5 traffic moves to GPT-6 Luna. At that share, the gateway inference total matches the direct Claude Sonnet 5.5 bill of $180.00. This excludes payment processing and assumes identical token counts. The same mix is possible direct with two integrations.
For implementation examples and the 80/20 split, see cut LLM API costs without rewriting your code.
Which LLM gateways show per-request cost?
TrustedRouter, OpenRouter, LiteLLM, Portkey (Prisma AIRS AI Gateway), Cloudflare AI Gateway and Vercel AI Gateway expose request cost or spend views; distinguish billed amounts from calculated estimates.
| Gateway | Where the cost appears | Billed amount or estimate | Source |
|---|---|---|---|
| TrustedRouter | Response usage; activity; request billing lookup | Known charge for eligible single-endpoint requests; unknown omitted | Usage fields |
| OpenRouter | Response usage.cost, is_byok and cost_details; no extra call | Usage accounting cost in credits | Usage accounting |
| LiteLLM | x-litellm-response-cost header and LiteLLM_SpendLogs | Calculated cost | Cost tracking |
| Portkey (Prisma AIRS AI Gateway) | Request log COST column, in cents | Tracked model pricing; 0 cents means that model's pricing is not tracked | Cost management |
| Cloudflare AI Gateway | Cost metric, with optional custom per-request cost | Token-based estimate; provider dashboard is the accurate reference | Costs |
| Vercel AI Gateway | GET /v1/generation returns one generation's cost; dashboard Logs lists requests with cost | Per-generation cost with market_cost, surcharge_cost and gateway_cost breakdown | Generation lookup and usage |
For a known single-endpoint charge from https://api.trustedrouter.com/v1, the documented TrustedRouter usage fields have this shape (illustrative values):
{"usage":{"prompt_tokens":100,"completion_tokens":20,"total_tokens":120,"cost_microdollars":1000,"total_cost_microdollars":1000}}
cost_microdollars reports the known request charge in integer microdollars; total_cost_microdollars is the same charge for this single-endpoint response, not an additional fee. One million microdollars equals $1.00; unknown cost is omitted.
- Response usage: streaming chat includes cost with
stream_options.include_usage: true. - Activity:
GET /v1/activity?group_by=nonelists generations; tags allocate spend. - Durable billing:
GET /v1/requests/{gateway_request_id}/billingreturns the settlement status. - Signed receipts: verify hashes and route integrity offline.
Billing details
Standard billing rounds each input, output, cache-read and cache-write component to whole microdollars, half up, with a one-microdollar ($0.000001) minimum for chargeable usage.
The token price floor is $0.01 per million tokens; route-specific minimums and request fees may add more. Signed receipts are an optional service with a 12% total fee for managed prepaid inference, replacing the standard 5.5%. See billing rules. Video has separate quoted pricing.
Buyer checklist
Collect five numbers before choosing: monthly input/output millions, cache-hit share, premium-retry share, the fee percentage and its basis, and monthly infrastructure or subscription cost.
Questions
What is the cheapest OpenAI-compatible LLM gateway?
Self-hosted LiteLLM has no gateway fee; include infrastructure costs. For $100.00 of inference, Vercel costs $100.00 plus processing, Cloudflare Unified Billing and OpenRouter crypto $105.00, TrustedRouter and OpenRouter Standard $105.50, and OpenRouter Business $108.00. TrustedRouter's $105.50 excludes its separate checkout processing fee; with that fee, TrustedRouter's total is above OpenRouter Standard's. Totals exclude taxes and optional add-ons.
Which LLM gateways show per-request cost?
TrustedRouter, OpenRouter, LiteLLM, Portkey (Prisma AIRS AI Gateway), Cloudflare AI Gateway and Vercel AI Gateway expose request cost or spend views. Some show calculated estimates rather than settled charges.
Is an LLM gateway worth the markup versus calling the provider directly?
Direct is cheaper by the fee for one provider and unchanged usage. For several providers, fallback, one bill and per-key budgets can justify a gateway's fee; compare the all-in cost for your workload.