
Services
An LLM API pricing comparison: Claude API pricing per million tokens for every listed model, with cache and batch rates, next to Gemini, Grok, and OpenAI, plus a cost-per-conversation example. List prices checked November 14, 2026.

This is an LLM API pricing comparison of the list prices on the vendors' own pages, rechecked on November 14, 2026: Claude API pricing per million tokens for every model Anthropic still lists, Gemini API pricing, Grok API pricing, and the OpenAI API price table. The number that matters is not the flagship's input rate. It is what one real reply costs, then what 10,000 of those replies cost in a month.
On standard rates, for a 4,000-token prompt and a 500-token reply, the cheapest tiers cost well under a tenth of a cent (Claude Haiku 5.5 and gpt-6-luna are $0.00065). Gemini 3.8 Flash is about half a cent, grok-4.7 about 1.1 cents, and Claude Sonnet 5.5 or gpt-6.1-sol about 1.3 cents. Claude Opus 5.5 is 2.6 cents and Claude Fable 5.2 is 5.2 cents.
Every vendor bills a base input price and a higher output price, per million tokens. Cache hits are cheaper than fresh input. Long prompts cross a threshold and the whole request reprices, not just the extra tokens. Batch and regional endpoints change the rate again. If a comparison table hides those, it is advertising.
The figures below are standard (not batch, not priority or fast) list prices for the short-context or global tier, in US dollars per million tokens, unless a column says otherwise. I did not send paid API calls to confirm an invoice. Where a page lists a cached-input rate, I show it in the vendor table and leave it out of the worked example, so the example is the pessimistic case: nothing cached.
Sources, all checked on November 14, 2026:
Anthropic's pricing page lists one row per model, with two cache-write prices (5-minute and 1-hour cache), a cache-hit price, and output. These are the standard global rates from the official Claude pricing page, checked November 14, 2026. The newest model in each tier comes first.
| Model | Input / 1M | 5m cache write | 1h cache write | Cache hit | Output / 1M | Batch (in / out) |
|---|---|---|---|---|---|---|
| Claude Fable 5.2 | $8 | $10 | $16 | $0.20 | $40 | $4 / $20 |
| Claude Opus 5.5 | $4 | $5 | $8 | $0.20 | $20 | $2 / $10 |
| Claude Sonnet 5.5 | $2 | $2.50 | $4 | $0.10 | $10 | $1 / $5 |
| Claude Haiku 5.5, prompts up to 100,000 tokens | $0.10 | $0.125 | $0.20 | $0.01 | $0.50 | $0.05 / $0.25 |
| Claude Haiku 5.5, prompts over 100,000 tokens | $0.50 | $0.625 | $1 | $0.05 | $2.50 | $0.25 / $1.25 |
Older Claude models are still on the same page, and people still search for their prices. Same columns, same source and date.
| Older model | Input / 1M | 5m cache write | 1h cache write | Cache hit | Output / 1M | Batch (in / out) |
|---|---|---|---|---|---|---|
| Claude Fable 5.1 | $10 | $12.50 | $20 | $0.25 | $50 | $5 / $25 |
| Claude Fable 5 | $10 | $12.50 | $20 | $1 | $50 | $5 / $25 |
| Claude Opus 5, 4.8, 4.7, 4.6, 4.5 | $5 | $6.25 | $10 | $0.50 | $25 | $2.50 / $12.50 |
| Claude Sonnet 5 | $2 | $2.50 | $4 | $0.20 | $10 | $1 / $5 |
| Claude Sonnet 4.6, 4.5 | $3 | $3.75 | $6 | $0.30 | $15 | $1.50 / $7.50 |
| Claude Haiku 4.5 | $1 | $1.25 | $2 | $0.10 | $5 | $0.50 / $2.50 |
| Claude Opus 4.1, Opus 4 (retired on the Claude API) | $15 | $18.75 | $30 | $1.50 | $75 | $7.50 / $37.50 |
| Claude Sonnet 4 (retired on the Claude API) | $3 | $3.75 | $6 | $0.30 | $15 | $1.50 / $7.50 |
The page says the retired models may still be available on other cloud platforms. It also lists Claude Mythos 5.2, 5.1 and 5 at the same prices as the matching Fable models, but only for organizations in Anthropic's verification programs, so I left them out of the tables. The Sonnet 5 price of $2 / $10 was introductory at launch; the page now says it is the standard price and the planned increase to $3 / $15 will not happen.
Cache discounts are not the same on every model. A 5-minute cache write costs 1.25x the base input price and a 1-hour write costs 2x. A cache hit is 0.025x the input price on Fable 5.2 and 5.1, 0.05x on Opus 5.5 and Sonnet 5.5, and 0.1x on every other model. That is why Fable 5.2 and Opus 5.5 both read $0.20 on a cache hit even though Fable's input price is twice Opus's. The page says a 5-minute cache pays for itself after one read and a 1-hour cache after two.
Fast mode is a premium for up to 2.5x faster output: Fable 5.2 is $16 / $80, Opus 5.5 is $8 / $40, and Opus 5 and Opus 4.8 are $10 / $50. It cannot be combined with the Batch API.
Two more lines from the same page change a real invoice. For Claude 4.6 and later models, setting inference_geo: "us" (US-only inference) is a 1.1x multiplier on every token category, including cache writes and reads. And Claude 4.7 and later models use a newer tokenizer that the page says produces about 30% more tokens for the same text, depending on the workload. A lower sticker price can still cost more if the tokenizer is chattier. I did not measure that 30% on a sample of my own prompts.
Google's Gemini Developer API page prices the paid standard tier per million tokens. Output prices include thinking tokens. That matters: a model that "thinks" for 2,000 tokens and then writes 500 is billed for 2,500 on the output side, not 500. The worked example later assumes a 500-token output and says so.
| Model | Input / 1M | Output / 1M | Cache / 1M | What changes the bill |
|---|---|---|---|---|
Gemini 4 Carbon (gemini-4-carbon) | $2 | $10 | $0.10 | Price through November 30, 2026. From December 1, 2026 the page lists $4 / $20 and $0.20 cache. Not on the free tier |
Gemini 4 Argon (gemini-4-argon) | $2 | $10 | $0.10 | Same dates and same December 1 price as Carbon. Google describes it as the more efficient Gemini 4 reasoning model |
Gemini 4 Hydrogen (gemini-4-hydrogen) | $1.50 | $7.50 | $0.075 | No end date listed |
Gemini 3.8 Flash (gemini-3.8-flash) | $0.75 | $3.75 | $0.075 | Introductory through December 31, 2026. From January 1, 2027 the page lists $1.50 / $7.50 |
Gemini 3.5 Flash-Lite (gemini-3.5-flash-lite) | $0.30 | $2.50 | $0.03 | Text, image, video, and audio share this standard rate |
Gemini 3.1 Pro Preview (gemini-3.1-pro-preview) | $2 | $12 | $0.20 | Prompts over 200k tokens are $4 / $18 for the whole request. Still a preview |
Gemini 4 Carbon and Argon are the rows to watch: their price doubles on December 1, 2026, so a budget written this month at $2 / $10 is wrong next month. The paid tier also advertises a Batch API at roughly half the standard price. I used the standard column for the comparison so batch does not make Gemini look cheaper than a synchronous Claude or Grok call. Free tier exists for some of these models and is not a production plan: the page says free-tier content can be used to improve Google's products.
I am not listing image, live-audio, or transcribe SKUs here. They are on the same page and they are priced differently, often per minute. If your product is voice, read those rows yourself. The voice agent guide is about latency, not these token rates.
xAI's docs price Grok per million tokens, with a long-context rate once the prompt reaches 200,000 tokens. The higher rate applies to all tokens in that request. grok-4.7 is the flagship on the page, and grok-4.6 is listed at the same prices. Cached input is a separate column, and I kept it out of the worked example.
| Model | Input / 1M | Cached input / 1M | Output / 1M |
|---|---|---|---|
| grok-4.7, prompt under 200k tokens | $2.00 | $0.50 | $6.00 |
| grok-4.7, prompt at or above 200k | $4.00 | $1.00 | $12.00 |
| grok-4.3, prompt under 200k tokens | $1.25 | $0.20 | $2.50 |
| grok-4.3, prompt at or above 200k | $2.50 | $0.40 | $5.00 |
The US regional endpoint (https://us.api.x.ai/v1) is 1.1x the global token rates. For grok-4.7 under 200k that is $2.20 input, $0.55 cached, $6.60 output. The page says that endpoint currently serves grok-4.7 and grok-4.6 only.
Batch is 20% off standard rates for the models on xAI's list, which now includes grok-4.7, grok-4.6, grok-4.5, grok-4.3 and the grok-4.20 variants. Models not on the list get no batch discount. Priority processing is 2x standard rates, and only when the response confirms service_tier: "priority".
OpenAI's API pricing page is a long table. I pulled the current GPT-6 family and the GPT-5.6 tiers, standard short-context column only. Short context on that page means 272,000 input tokens or fewer. Above that, the long-context column reprices the request.
| Model | Input / 1M | Cached input / 1M | Output / 1M | Long context (input / output) |
|---|---|---|---|---|
| gpt-6-luna | $0.10 | $0.01 | $0.50 | $0.20 / $0.75 |
| gpt-6.1-terra | $1.00 | $0.05 | $5.00 | $2.00 / $7.50 |
| gpt-6.1-sol | $2.00 | $0.10 | $10.00 | $4.00 / $15.00 |
| gpt-6-astra | $10.00 | $1.00 | $50.00 | $20.00 / $75.00 |
| gpt-5.6-terra | $2.00 | $0.20 | $12.00 | $4.00 / $18.00 |
| gpt-5.6-sol | $4.00 | $0.40 | $20.00 | $8.00 / $30.00 |
The same page says GPT-5.6 Sol's promotional pricing is available until November 30, 2026, so treat that row as provisional. The GPT-6 and GPT-5.6 rows also list 30-minute and 12-hour cache-write prices, which I left out of this table. Regional processing is a 10% uplift for models released on or after March 5, 2026. I did not verify each model's release date against that cutoff, so I am not applying the 10% in the table.
Put next to each other, standard short-prompt rates look like this. Output is what dominates once a reply is longer than a sentence, because every vendor charges several times more for it.
| Vendor | Cheap tier | Input / output | Stronger tier | Input / output |
|---|---|---|---|---|
| Anthropic | Haiku 5.5 (under 100k) | $0.10 / $0.50 | Sonnet 5.5 | $2 / $10 |
| Gemini 3.5 Flash-Lite | $0.30 / $2.50 | Gemini 4 Argon (through Nov 30, 2026) | $2 / $10 | |
| xAI | grok-4.3 (under 200k) | $1.25 / $2.50 | grok-4.7 (under 200k) | $2 / $6 |
| OpenAI | gpt-6-luna | $0.10 / $0.50 | gpt-6.1-sol | $2 / $10 |
Claude Sonnet 5.5, gpt-6.1-sol and Gemini 4 Argon all carry the same sticker this month: $2 and $10. Argon doubles to $4 / $20 on December 1, 2026. grok-4.7 matches them on input and is cheaper on output ($6 vs $10). None of that tells you which one answers your tickets. It tells you what you pay if they use the same number of tokens. They will not. Tokenizers differ, and thinking tokens show up on the Gemini output line.
Here is the worked example I use when a founder asks "what will this bot cost?" One support reply sends 4,000 input tokens (system prompt, a few prior turns, the new message) and returns 500 output tokens. No cache. No batch. Prompt is under every long-context threshold above. Gemini's published output price includes thinking tokens, so if the model thinks, add those tokens to the 500. This example does not.
Cost = (4,000 / 1,000,000) × input price + (500 / 1,000,000) × output price.
| Model | Arithmetic | One reply | 10,000 replies |
|---|---|---|---|
| Claude Haiku 5.5 | (4,000 × $0.10 + 500 × $0.50) / 1,000,000 | $0.00065 | $6.50 |
| gpt-6-luna | (4,000 × $0.10 + 500 × $0.50) / 1,000,000 | $0.00065 | $6.50 |
| Gemini 3.5 Flash-Lite | (4,000 × $0.30 + 500 × $2.50) / 1,000,000 | $0.00245 | $24.50 |
| Gemini 3.8 Flash | (4,000 × $0.75 + 500 × $3.75) / 1,000,000 | $0.004875 | $48.75 |
| gpt-6.1-terra | (4,000 × $1 + 500 × $5) / 1,000,000 | $0.0065 | $65 |
| Gemini 4 Hydrogen | (4,000 × $1.50 + 500 × $7.50) / 1,000,000 | $0.00975 | $97.50 |
| grok-4.7 | (4,000 × $2 + 500 × $6) / 1,000,000 | $0.011 | $110 |
| Claude Sonnet 5.5 | (4,000 × $2 + 500 × $10) / 1,000,000 | $0.013 | $130 |
| gpt-6.1-sol | (4,000 × $2 + 500 × $10) / 1,000,000 | $0.013 | $130 |
| Gemini 4 Argon or Carbon, through Nov 30, 2026 | (4,000 × $2 + 500 × $10) / 1,000,000 | $0.013 | $130 |
| Gemini 3.1 Pro Preview | (4,000 × $2 + 500 × $12) / 1,000,000 | $0.014 | $140 |
| gpt-5.6-terra | (4,000 × $2 + 500 × $12) / 1,000,000 | $0.014 | $140 |
| Claude Opus 5.5 | (4,000 × $4 + 500 × $20) / 1,000,000 | $0.026 | $260 |
| gpt-5.6-sol | (4,000 × $4 + 500 × $20) / 1,000,000 | $0.026 | $260 |
| Gemini 4 Argon or Carbon, from Dec 1, 2026 | (4,000 × $4 + 500 × $20) / 1,000,000 | $0.026 | $260 |
| Claude Fable 5.2 | (4,000 × $8 + 500 × $40) / 1,000,000 | $0.052 | $520 |
| gpt-6-astra | (4,000 × $10 + 500 × $50) / 1,000,000 | $0.065 | $650 |
Read the last column as a floor, not a quote. A real thread is several replies. The input grows as history grows, unless you trim it. Tool calls add more round trips. An agent that loops can spend the monthly number on a single bad ticket. The nine fixes for that, in the order I apply them, are in how to reduce LLM costs. Routing the easy replies to the cheap column and the hard ones to the expensive column is the biggest lever, and it is written up separately as LLM routing.
On a production system the gap is larger than this table. In the cost-optimization case study, semantic caching, prompt compression, and model routing cut a SaaS platform's OpenAI spend by 65% with no drop in CSAT. The playbook with the before-and-after for a support agent is the 60% LLM cost cut. Those are measured bills, not list-price arithmetic. If you want that pass run on your own traffic, it is the LLM cost optimization engagement. Build and run-rate ranges for the agent itself are in what it costs to build an AI agent.
Token prices are the smaller line once an agent is in production. The bigger one is who builds and runs it. If you are at that step, how to hire AI engineers covers what to screen for and cited rates, and agency vs freelance AI agent developer covers which kind of team fits one agent. If you want it built by me, that is AI agent development.
As of November 14, 2026, Anthropic's standard global rates per million input and output tokens are $8 and $40 for Claude Fable 5.2, $4 and $20 for Claude Opus 5.5, $2 and $10 for Claude Sonnet 5.5, and $0.10 and $0.50 for Claude Haiku 5.5 on prompts up to 100,000 tokens ($0.50 and $2.50 above that). Cache hits are $0.20 on Fable 5.2 and Opus 5.5, $0.10 on Sonnet 5.5, and $0.01 on Haiku 5.5. Batch is half. US-only inference is 1.1x for Claude 4.6 and later. Check the pricing page before you budget, because these move.
Claude Opus 5.5 is $4 per million input tokens and $20 per million output tokens on Anthropic's standard global rate, checked November 14, 2026. Writing to the 5-minute prompt cache is $5 per million, writing to the 1-hour cache is $8, and a cache hit is $0.20 (0.05x the input price). The Batch API is $2 input and $10 output. Fast mode is $8 input and $40 output and cannot be batched. US-only inference adds 1.1x to all of these.
On the paid standard tier, Gemini 4 Carbon and Gemini 4 Argon are $2 input and $10 output per million tokens through November 30, 2026, then $4 and $20 from December 1. Gemini 4 Hydrogen is $1.50 and $7.50. Gemini 3.8 Flash is $0.75 and $3.75 through December 31, 2026, then $1.50 and $7.50. Gemini 3.5 Flash-Lite is $0.30 and $2.50. Gemini 3.1 Pro Preview is $2 and $12 up to 200k prompt tokens. Output prices include thinking tokens.
grok-4.7 is $2 input and $6 output per million tokens when the prompt is under 200,000 tokens, and $4 and $12 when it is not. Cached input is $0.50 under that line and $1.00 above it. The US endpoint is 1.1x. Batch is 20% off for grok-4.7 and the other text models on xAI's batch list. grok-4.3 is the cheaper text model on the same page, at $1.25 and $2.50 under 200k.
Pick a token budget you have measured, not a round number from a blog, then multiply. For a 4,000-in / 500-out reply with nothing cached, Haiku 5.5 and gpt-6-luna are $0.00065, Gemini 3.8 Flash is $0.004875, grok-4.7 is $0.011, Sonnet 5.5 and gpt-6.1-sol are $0.013, Opus 5.5 is $0.026, and Fable 5.2 is $0.052. Multiply by your monthly reply count, then add history growth, tool loops, and thinking tokens. The list price is the start of the estimate.
No. The comparison table and the worked example use standard, uncached rates. Cache hits are cheaper on every vendor that publishes them, and on Claude the discount depends on the model (0.025x to 0.1x of input). Claude, Gemini, and OpenAI batch are about half off. xAI batch is 20% off for the models on its list, including grok-4.7. Use batch only for work that can wait.
Token prices are the wrong table once the work is OCR. A page of Textract, Document AI, Azure Document Intelligence, or Mistral OCR is a per-page rate, and a self-hosted open model is a GPU-hour. I put that arithmetic in the self-hosted OCR cost calculator, with the hourly prices and the H100 throughput linked, and wrote up the break-even in self-hosted OCR cost in 2026. The same rule as this post applies: the list price is a snapshot, and an estimate is labeled as one.
The same question comes up for open models. If you are weighing a Llama, Qwen, or gpt-oss API price against renting the GPUs, the open-source LLM hosting cost calculator sizes VRAM and GPU count and puts the monthly GPU bill next to the API price. For embedding and transcription bills there are matching calculators: self-hosted embedding cost and self-hosted speech-to-text cost.
Claude API pricing, Gemini API pricing, and Grok API pricing are close enough on the mid-tier input rate ($2 per million for Sonnet 5.5, Gemini 4 Argon this month, grok-4.7, and gpt-6.1-sol) that the output rate and the tokenizer decide the bill. The top tier is a different budget: Opus 5.5 is twice Sonnet, and Fable 5.2 is four times. The cheap tier is where the money is if most of your traffic is easy. Measure tokens per route, then route. The list prices above are a snapshot of November 14, 2026, from the four official pages linked in the first section. How these prices fit into an agent's design, with evals and routing, is in the production-ready AI agents guide.
If the bill is already larger than this arithmetic and you want it taken apart against your own logs, that is what the LLM cost optimization work is for. The concepts behind the agent those calls sit inside are in what AI agents are.
Free 30-minute scoping call. Bring a week of token logs if you have them. If it is not a fit, I will say so.
Book a Scoping Call