Cross-provider token benchmark · checked Nov 13, 2026

LLM API pricing comparison (2026): per-million-token math across Claude, Qwen, DeepSeek, GPT-5.4, and OpenRouter

Comparing LLM APIs by headline input price hides the meters that actually dominate production invoices: completion multipliers, prompt-cache hit rates, context-window overrides, and router vs direct vendor billing rules.

Short answer: On November 13, 2026 source checks, standard per-million-token routes span from $0.15/$0.60 (GPT-OSS 120B) and $0.15/$0.47 (Qwen3.8 Flash) up to $2.00/$6.00 (Qwen3.8 Max), $2.00/$10.00 (Claude Sonnet 5), and $2.50/$15.00 (GPT-5.4), while DeepSeek official and router endpoints price aggressively on both uncached and cache-hit tokens. Never rank models on input price alone: price your exact monthly input, cached-input, and output token mix on the resolved route.

Cross-provider LLM API rates retrieved November 13, 2026. All figures are USD per 1M tokens on the named route.
Model / RouteInput / 1MOutput / 1MCache & budget note
anthropic/claude-sonnet-5 (OpenRouter)1M context$2.00$10.00Cache read $0.20, cache write $2.50; 5x output multiplier.
qwen/qwen3.8-max-0902 (OpenRouter)1M context$2.00$6.00Cache read $0.25; 3x output multiplier; batch caps at 262k.
qwen/qwen3.8-flash (OpenRouter)1M context$0.15$0.47High-throughput extraction and classification tier.
openai/gpt-5.4 (OpenRouter)1.05M context$2.50$15.00Cache read $0.25; jumps to $5.00/$22.50 at >=272k input.
deepseek/deepseek-chat (DeepSeek / OpenRouter)128k context$0.27$1.10Low output multiplier; check direct cache-hit pricing and rate limits.
moonshotai/kimi-k3 (OpenRouter)1.05M context$0.192$16.0083x output-to-input ratio flips cost on generation-heavy apps.
openai/gpt-oss-120b (OpenRouter)131k context$0.15$0.60Open-weight baseline; compare against hosted Together or Fireworks routes.

Why headline input prices mislead LLM budgets

Most AI pricing spreadsheets sort models by input cost per million tokens and declare a winner from column one. In production software, that single sort routinely picks the wrong model. Completion tokens are priced between 3x and 83x higher than prompt tokens across the November 13, 2026 OpenRouter and direct-vendor snapshot, and agent loops or chain-of-thought reasoning expand output volume far faster than static single-turn benchmarks predict.

Consider two routes from the same check date: Qwen3.8 Max lists $2.00 input and $6.00 output (a 3x ratio), whereas Kimi K3 lists $0.192 input and $16.00 output (an 83x ratio). On a short-answer classification pipeline that sends 4,000 input tokens and returns 40 output tokens, the cheaper input route wins easily. On a coding assistant or report writer that emits 1,200 output tokens per turn, the 83x completion meter wipes out the input advantage and pushes the monthly invoice sharply higher.

DeepSeek and Qwen Flash sit in a separate economic band: both keep input and output rates well below $1.50 per million tokens, making them natural baselines for high-volume extraction, routing, and structured JSON pipelines. Frontier routes such as Claude Sonnet 5 ($2.00/$10.00) and GPT-5.4 ($2.50/$15.00) cost an order of magnitude more per raw token, yet can still produce a lower cost per accepted task when fewer retries, fewer escalation hops, or higher first-pass accuracy offset the steeper rate card.

  • Always compute cost per completed user task, including retries, tool-call turns, and escalation fallbacks.
  • Separate input-heavy RAG workloads (10:1 input-to-output) from generation-heavy coding or writing workloads (2:1 or 1:1).
  • Check whether reasoning or thinking tokens are billed on the output meter before comparing two routes.

Worked monthly bills on three realistic workloads

To compare Claude Sonnet 5, Qwen3.8 Max, DeepSeek Chat, GPT-5.4, and Qwen3.8 Flash honestly, fix one exact request profile and compute every meter explicitly. Take Workload A (a mid-scale SaaS copilot): 150,000 requests per month, 2,000 input tokens per request (300M total input tokens, with 40% cache-hit share), and 500 output tokens per request (75M total output tokens). Uncached input is 180M tokens and cached input is 120M tokens.

On Qwen3.8 Max ($2.00 uncached input, $0.25 cache read, $6.00 output), Workload A costs $360.00 for uncached input + $30.00 for cached input + $450.00 for output = $840.00 per month ($5.60 per 1,000 requests). On Claude Sonnet 5 ($2.00 uncached input, $0.20 cache read, $10.00 output, excluding cache-write warmups), the same traffic costs $360.00 + $24.00 + $750.00 = $1,134.00 per month ($7.56 per 1,000 requests). Notice that identical $2.00 input rates still yield a $294 monthly gap solely from the $6.00 vs $10.00 completion meter.

On GPT-5.4 below the 272,000-token threshold ($2.50 uncached input, $0.25 cache read, $15.00 output), Workload A costs $450.00 + $30.00 + $1,125.00 = $1,605.00 per month ($10.70 per 1,000 requests). On DeepSeek Chat ($0.27 input, assuming conservative zero cache discount for a baseline floor, and $1.10 output), raw token spend is $81.00 + $82.50 = $163.50 per month ($1.09 per 1,000 requests), and drops further when prefix caching hits on repeated system prompts. On Qwen3.8 Flash ($0.15 input, $0.47 output, uncached baseline), the same volume costs $45.00 + $35.25 = $80.25 per month.

Now inspect Workload B (long-context document review): 20,000 requests per month at 300,000 input tokens and 1,000 output tokens. Because 300,000 tokens crosses GPT-5.4's 272,000-token override threshold, GPT-5.4 reprices the entire request from $2.50/$15.00 to $5.00/$22.50. Six billion input tokens at $5.00 alone reach $30,000 before caching, whereas a flat-curve 1M-context route like Qwen3.8 Max or Claude Sonnet 5 avoids the cliff—provided your prefix cache actually stays warm across document queries.

Prompt caching and batch discounts: real savings vs spreadsheet illusions

Prompt caching routinely cuts repeated-prefix input charges by 80% to 90%: Claude Sonnet 5 drops input from $2.00 to $0.20 on cache reads, Qwen3.8 Max drops from $2.00 to $0.25, and GPT-5.4 drops from $2.50 to $0.25. However, caching is never free or automatic. Anthropic charges a separate cache-write meter ($2.50 per million tokens on Sonnet 5, a 25% premium over standard input), which means a cache prefix must be reused multiple times inside its TTL window before net spend breaks even.

Batch APIs cut interactive rates roughly in half—for instance, Claude Sonnet 5 batch at $1.00/$5.00 and GPT-5.4 batch at $1.25/$7.50—but batch is asynchronous and sometimes carries a narrower context ceiling (such as Qwen3.8 Max's 262,144-token batch limit compared to 1M interactive). Only assign a non-zero batch share in your budget for offline enrichment, nightly evals, or bulk summarization pipelines that can tolerate multi-hour turnaround.

OpenRouter vs direct API accounts when scaling spend

During discovery and multi-model evaluation, routing Claude, Qwen, DeepSeek, and GPT-5.4 through OpenRouter eliminates separate vendor contracts, normalizes the request schema to an OpenAI-compatible interface, and lets engineering teams test fallback providers without rewriting SDK code. Because OpenRouter surfaces each resolved route's per-token pricing fields directly in its model API, finance teams can audit unit rates transparently alongside direct vendor rate cards.

Once monthly spend concentrates on a single frontier model, run a side-by-side audit against a direct vendor account. Factor in OpenRouter's credit-funding fee or Bring-Your-Own-Key routing terms, verify whether prompt-cache affinity stays sticky across upstream failover hops, and confirm whether enterprise volume commitments, Zero Data Retention agreements, or higher direct TPM rate limits outweigh the convenience of a single router key. Our dedicated OpenRouter vs Direct API comparison lays out the full checklist.

A practical multi-tier routing architecture for 2026

The teams with the lowest cost per accepted outcome rarely run 100% of traffic on one model. Instead, they route deterministic extraction, tagging, and intent classification to sub-$1/1M models like Qwen3.8 Flash, GPT-OSS 120B, or DeepSeek Chat, reserve mid-tier workhorse routes like Qwen3.8 Max for balanced synthesis, and escalate only the top 10% to 20% of complex reasoning or code-generation requests to Claude Sonnet 5 or GPT-5.4.

Before deploying a tiered router, log exact prompt tokens, cached tokens, completion tokens, retries, and latency on 500 real production traces. Plug those measured averages—not synthetic estimates—into the calculator below to compare your single-model bill against a two-tier or three-tier cascade.

Compare your monthly LLM API bill across models

Enter your measured request volume and any route's input, output, cache, and batch rates from the table above. Adjust output tokens first to see which model stays cheapest on your real ratio.

Compare your monthly LLM API bill across models

Enter your measured request volume and any route's input, output, cache, and batch rates from the table above. Adjust output tokens first to see which model stays cheapest on your real ratio.

Total production requests hitting this model tier.
Include system instructions, tool schemas, and retrieved context.
Include visible completion tokens plus billed reasoning tokens.
e.g., 2.00 for Claude Sonnet 5 or Qwen3.8 Max, 2.50 for GPT-5.4, 0.27 for DeepSeek.
e.g., 10.00 for Claude Sonnet 5, 6.00 for Qwen3.8 Max, 15.00 for GPT-5.4, 1.10 for DeepSeek.
Percentage of input tokens hitting an active provider prompt cache.
87.5% on Qwen3.8 Max ($0.25 vs $2.00), 90% on Claude Sonnet 5 ($0.20 vs $2.00).
Share of traffic that can run asynchronously.
Typically 50% on Claude and GPT batch endpoints.
Reset example

Planning result

Review the example inputs, replace each rate with the exact current value from the linked source, then calculate. APIDir does not send these values to a provider.

Questions developers ask

Which LLM API is cheapest per million tokens in 2026?

Among source-checked routes, high-efficiency tiers such as Qwen3.8 Flash ($0.15/$0.47), GPT-OSS 120B ($0.15/$0.60), and DeepSeek Chat ($0.27/$1.10) have the lowest raw token rates. Among frontier models, Qwen3.8 Max ($2.00/$6.00) undercuts Claude Sonnet 5 ($2.00/$10.00) and GPT-5.4 ($2.50/$15.00) on completion tokens, though quality and retry rates still decide real cost per task.

Why does output token pricing matter more than input token pricing?

Most LLM APIs price output tokens 3x to 83x higher than input tokens. Even when input tokens make up 75% of total volume, completion tokens frequently account for more than half of the monthly invoice—especially once prompt caching discounts input.

Is OpenRouter more expensive than calling Anthropic, OpenAI, or DeepSeek directly?

OpenRouter passes through upstream per-token route prices without a hidden per-token markup, while adding credit-funding fees or BYOK terms. For multi-model apps the overhead is small; at high single-vendor volume, direct committed discounts and sticky prompt-cache hit rates can make direct APIs cheaper.

How much does prompt caching actually save on Claude and Qwen?

Cache reads cut repeated prefix input cost by 87.5% on Qwen3.8 Max ($0.25 vs $2.00) and 90% on Claude Sonnet 5 ($0.20 vs $2.00). Real savings depend on keeping the system prompt stable and reusing each written cache prefix multiple times before TTL expiry.

How do I avoid surprise long-context price jumps?

Check every route's context-override threshold before launching RAG or agent workflows. GPT-5.4, for example, doubles input from $2.50 to $5.00 and raises output to $22.50 once prompts reach 272,000 tokens.

Sources and check dates

Every rate in this guide was retrieved from the linked page on Nov 13, 2026. Prices can change; recheck the source before purchasing.