Frontier LLM APIs compared, price, context, tool use and deprecation policy Pricing Compared

- Headline $/M is the least useful number here; four things distort it - **Output tokens dominate:** a reasoning model burns tens of thousands of thinking tokens, billed at the output rate - A cheap-input, expensive-output provider is dear for reasoning, cheap for RAG answering - Model your actual input:output ratio before comparing - **Cached input is where the money is:** cache reads bill at ~10% of input at Anthropic and OpenAI - An agent loop resending its history is mostly cache reads - Caching is a prefix match; a timestamp, non-deterministic JSON, or a per-user tool list destroys it silently - Watch the cache-read token counter, not the invoice - **Long-context surcharges:** Google charges more above 200K tokens; others meter cache storage per hour - A million-token window at the short-context rate is not what you pay - **Batch, but check the column first:** where an async endpoint exists the discount is usually a flat 50% - Anthropic, OpenAI, Google, Mistral, Qwen, Bedrock and Together all publish that rate - DeepSeek offers no batch endpoint; its list price already sits below most batch rates - OpenRouter offers none either, a real cost if half your workload tolerates async - xAI, Moonshot, Z.ai, Cohere, Fireworks and Cerebras publish nothing confirmable - Groq documents a batch discount without a percentage we could stand behind - Where the halving exists and latency is negotiable, no negotiation beats it; where it is not, no committed spend conjures it

Providers
18
Fields compared
4
Source confidence
34%
Last verified
2026-07-30 (1mo ago)
Re-verified
every 7 days
18 tools · verified 1mo ago
Mistral AI logoMistral AIEuropean lab with an open-weight lineage and EU-resident hosting96.4

Pricing

$/M input (/M tok)
$0.5/M tok
$/M output (/M tok)
$1.5/M tok
$/M cache read (/M tok)
$0.05/M tok
Batch discount (%)
50%
Z.ai (GLM) logoZ.ai (GLM)GLM models with an unusually cheap flat-rate coding plan85.1

Pricing

$/M input (/M tok)
$0.6/M tok
$/M output (/M tok)
$2.2/M tok
$/M cache read (/M tok)
·
Batch discount (%)
·
DeepSeek logoDeepSeekFrontier-adjacent models at a small fraction of Western prices84.5

Pricing

$/M input (/M tok)
$0.14/M tok
$/M output (/M tok)
$0.28/M tok
$/M cache read (/M tok)
$0.0028/M tok
Batch discount (%)
0%
Qwen logoQwenAlibaba's model family, huge open-weight range, closed flagship82.0

Pricing

$/M input (/M tok)
$2.5/M tok
$/M output (/M tok)
$7.5/M tok
$/M cache read (/M tok)
$0.25/M tok
Batch discount (%)
50%
Google Gemini logoGoogle GeminiGemini via AI Studio for prototyping or Vertex AI for production81.6

Pricing

$/M input (/M tok)
$2/M tok
$/M output (/M tok)
$12/M tok
$/M cache read (/M tok)
$0.2/M tok
Batch discount (%)
50%
xAI logoxAIGrok models with an OpenAI-shaped API and live X data access79.0

Pricing

$/M input (/M tok)
$2/M tok
$/M output (/M tok)
$6/M tok
$/M cache read (/M tok)
$0.3/M tok
Batch discount (%)
Amazon Bedrock logoAmazon BedrockMulti-vendor model access inside your existing AWS account75.1

Pricing

$/M input (/M tok)
$/M output (/M tok)
·
$/M cache read (/M tok)
·
Batch discount (%)
50%
Together AI logoTogether AIServerless and dedicated hosting for open-weight models75.1

Pricing

$/M input (/M tok)
$/M output (/M tok)
·
$/M cache read (/M tok)
·
Batch discount (%)
50%
Cerebras logoCerebrasWafer-scale inference, the fastest tokens per second available70.6

Pricing

$/M input (/M tok)
$/M output (/M tok)
·
$/M cache read (/M tok)
·
Batch discount (%)
·
Cohere logoCohereEnterprise-focused models built for RAG and private deployment70.6

Pricing

$/M input (/M tok)
$/M output (/M tok)
$/M cache read (/M tok)
·
Batch discount (%)
·
Fireworks AI logoFireworks AIFast open-weight inference with strong structured-output support70.6

Pricing

$/M input (/M tok)
$/M output (/M tok)
·
$/M cache read (/M tok)
·
Batch discount (%)
·
Groq logoGroqCustom LPU silicon serving open-weight models at extreme speed70.6

Pricing

$/M input (/M tok)
$/M output (/M tok)
·
$/M cache read (/M tok)
·
Batch discount (%)
Meta Llama logoMeta LlamaOpen-weight Llama models, hosted almost everywhere but Meta70.6

Pricing

$/M input (/M tok)
$/M output (/M tok)
·
$/M cache read (/M tok)
·
Batch discount (%)
·
Moonshot AI logoMoonshot AIKimi models, open-weight agentic performance at low cost70.0

Pricing

$/M input (/M tok)
$3/M tok
$/M output (/M tok)
$15/M tok
$/M cache read (/M tok)
$0.3/M tok
Batch discount (%)
OpenRouter logoOpenRouterOne OpenAI-shaped key in front of hundreds of models60.3

Pricing

$/M input (/M tok)
$/M output (/M tok)
·
$/M cache read (/M tok)
·
Batch discount (%)
0%
Self-hosted (vLLM) logoSelf-hosted (vLLM)Run open weights on your own GPUs behind an OpenAI-shaped API60.3

Pricing

$/M input (/M tok)
$/M output (/M tok)
·
$/M cache read (/M tok)
Batch discount (%)
0%
OpenAI logoOpenAIGPT models plus audio, images and embeddings on one bill54.1

Pricing

$/M input (/M tok)
$5/M tok
$/M output (/M tok)
$30/M tok
$/M cache read (/M tok)
$0.5/M tok
Batch discount (%)
50%
Anthropic logoAnthropicClaude models, built around long agentic runs and tool use14.8

Pricing

$/M input (/M tok)
$10/M tok
$/M output (/M tok)
$50/M tok
$/M cache read (/M tok)
$1/M tok
Batch discount (%)
50%
yespartialnounknown
Sources shown beside each value · Learn how sourcing works
measured vendor-claimed community inferredExpand any row for the source, verification date, and caveat behind every cell.

Is the cheapest option the right one?

Price is one group of 4 fields out of 27. Everything else, features, limits, portability, how well any of it works for agents, is on the full frontier llm apis compared, price, context, tool use and deprecation policy comparison.

The pricing traps nobody puts on the pricing page

  • Headline $/M is the least useful number here; four things distort it
  • Output tokens dominate: a reasoning model burns tens of thousands of thinking tokens, billed at the output rate
  • A cheap-input, expensive-output provider is dear for reasoning, cheap for RAG answering
  • Model your actual input:output ratio before comparing
  • Cached input is where the money is: cache reads bill at ~10% of input at AnthropicAnthropic logo and OpenAIOpenAI logo
  • An agent loop resending its history is mostly cache reads
  • Caching is a prefix match; a timestamp, non-deterministic JSON, or a per-user tool list destroys it silently
  • Watch the cache-read token counter, not the invoice
  • Long-context surcharges: Google charges more above 200K tokens; others meter cache storage per hour
  • A million-token window at the short-context rate is not what you pay
  • Batch, but check the column first: where an async endpoint exists the discount is usually a flat 50%
  • AnthropicAnthropic logo, OpenAIOpenAI logo, Google, Mistral, QwenQwen logo, Bedrock and Together all publish that rate
  • DeepSeekDeepSeek logo offers no batch endpoint; its list price already sits below most batch rates
  • OpenRouterOpenRouter logo offers none either, a real cost if half your workload tolerates async
  • xAIxAI logo, Moonshot, Z.ai, CohereCohere logo, Fireworks and CerebrasCerebras logo publish nothing confirmable
  • GroqGroq logo documents a batch discount without a percentage we could stand behind
  • Where the halving exists and latency is negotiable, no negotiation beats it; where it is not, no committed spend conjures it

Deciding: three workloads, three answers

  • Bulk text processing (classification, extraction, tagging, translation, firehose summarising): price dominates, capability barely registers
  • DeepSeekDeepSeek logo, QwenQwen logo, Moonshot and Z.ai are the rational choices
  • Or GroqGroq logo and Together for open weights with a Western contract
  • Add the batch endpoint if latency is negotiable
  • Never send sensitive data through a provider whose retention terms you haven't read
  • Agent harnesses (plan, call tools, read results, iterate for minutes): this is where frontier labs earn their price
  • You need well-formed tool calls at depth, enforced schema output, effort control, and caching that survives the loop
  • AnthropicAnthropic logo and OpenAIOpenAI logo are credible; Google is close and cheaper on long context
  • Budget for a long agentic turn running for minutes on one request
  • Interactive, latency-critical UI (voice, live search, inline completion): time to first token is the product
  • CerebrasCerebras logo and GroqGroq logo are an order of magnitude ahead of first-party endpoints on tok/s
  • The constraint: you take whichever open-weight models they host
  • Design the feature around the model menu, not the reverse

How is this pricing data collected?

  • Pricing here is stale within a fortnight; this category re-prices faster than any other on toolweight
  • Seven-day verification cadence, every price cell dated
  • Treat any cell dated more than a month ago as indicative; click through to the vendor first
  • Figures are pay-as-you-go list rates in USD per million tokens
  • Before batch, cache or committed-spend discounts, and before long-context surcharges
  • Where a vendor runs an unexpired introductory rate, the column carries list price and the note carries the intro rate and expiry
  • An introductory rate is what you actually pay today, so read the note before modelling a bill
  • Entries are providers, not models
  • Every price, context and capability figure describes that provider's current flagship, named in the Flagship model column
  • A cheaper flagship often sits beside a cheaper mid-tier that would serve you better
  • The killer column records notice before retirement, and whether you can pin a dated snapshot
  • Continuity is judged from published deprecation pages and observed retirements, not marketing
  • Where a provider publishes no policy, we say so rather than guess
  • Latency figures are community-reported; toolweight has not run its own TTFT harness, so most of that column is blank

Pricing questions

Is DeepSeek or Kimi really good enough to replace Claude or GPT?

  • For extraction, classification, summarisation, translation and bulk rewriting: yes
  • Roughly 1/35th the output cost of AnthropicAnthropic logo's volume model, or 1/120th of its flagship
  • The honest bulk-work comparison is against the volume tier, not the flagship
  • For long agentic runs, sustained instruction following and first-try code, frontier labs stay ahead
  • Split the workload rather than picking one provider for everything

How much does prompt caching really save on an agent loop?

  • More than any other lever
  • Cache reads typically bill at 10-25% of the input rate
  • An agent loop resends the whole conversation each turn, so a long run is 80-90% cache reads
  • The trap: caching is a prefix match, so a timestamp or reordered tool list invalidates everything after it