
Services
An LLM API pricing comparison of Claude API pricing, Gemini API pricing, and Grok API pricing, plus OpenAI, with a cost-per-conversation example. List prices as of October 12, 2026.

This is an LLM API pricing comparison of the list prices I could read on the vendors' own pages on October 12, 2026: Claude API pricing, 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 short prompt, the cheap tier at each vendor is about the same order of magnitude, and the flagship tier is about twenty to forty times that. A 4,000-token input and a 500-token reply is roughly half a cent on Claude Haiku 5.5 or gpt-6-luna, about half a cent to a cent on Gemini 3.8 Flash and grok-4.7, and about 1.3 cents on Claude Sonnet 5.5 or gpt-6.1-sol.
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) list prices for the short-context or global tier, in US dollars per million tokens. I did not send paid API calls to confirm an invoice. Where a page lists a cached-input rate, I mention it in the notes and leave it out of the worked example, so the example is the pessimistic case: nothing cached.
Sources, all read on October 12, 2026:
Anthropic's pricing page lists standard global rates. These are the three current models I would actually put in a budget. Older Opus and Sonnet rows are still on the page; I am not repeating the retired ones.
| Model | Input / 1M | Output / 1M | What changes the bill |
|---|---|---|---|
| Claude Haiku 5.5, prompts up to 100,000 tokens | $0.10 | $0.50 | Above 100,000 prompt tokens the same model is $0.50 / $2.50 |
| Claude Sonnet 5.5 | $2 | $10 | Cache hits are $0.10 / 1M, which is 0.05x input. Batch is half |
| Claude Opus 5.5 | $4 | $20 | Cache hits are $0.20 / 1M. Fast mode is $8 / $40 and is not on Bedrock |
Two footnotes from the same page that change a real invoice. For Claude 4.6 and later, inference_geo: "us" is a 1.1x multiplier on input, output, and cache. 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.
The Batch API is a 50% discount on input and output for these models (Haiku 5.5 batch is $0.05 / $0.25 under the 100k threshold, Sonnet 5.5 batch is $1 / $5, Opus 5.5 batch is $2 / $10). Batch is for work nobody is waiting on.
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 | What changes the bill |
|---|---|---|---|
Gemini 3.5 Flash-Lite (gemini-3.5-flash-lite) | $0.30 | $2.50 | Text, image, video, and audio share this standard rate. Cache is listed at $0.03 |
Gemini 3.8 Flash (gemini-3.8-flash) | $0.75 | $3.75 | Introductory through December 31, 2026. From January 1, 2027 the page lists $1.50 / $7.50 |
Gemini 3.1 Pro Preview (gemini-3.1-pro-preview) | $2 | $12 | Prompts over 200k tokens are $4 / $18 for the whole request. This row is still a preview |
The paid tier also advertises a Batch API at a 50% cost reduction. 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. 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 not a blanket discount. The docs list a 20% batch discount for grok-4.3 and the grok-4.20 variants, and say models not on that list have no batch discount. grok-4.7 is not on the list. Priority processing is 2x standard rates, and only when the response confirms service_tier: "priority". I did not find a batch price for grok-4.7 because the page says there isn't one.
OpenAI's API pricing page is a long table. I pulled the current cheap tier and the current general-purpose tiers, standard short-context column only. Short context on that page means 272,000 input tokens or fewer. Above that, models that have a long-context column reprice the whole session.
| 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-sol | $2.00 | $0.10 | $10.00 | $4.00 / $15.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 at least through November 21, 2026. Treat that row as provisional. It also says 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 3.1 Pro Preview (under 200k) | $2 / $12 | |
| 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 and gpt-6.1-sol are the same sticker: $2 and $10. grok-4.7 matches them on input and is cheaper on output ($6 vs $10). Gemini 3.8 Flash is cheaper than those flagships on both sides at the 2026 introductory rate, and Gemini 3.1 Pro Preview matches the $2 input but charges $12 out. 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 |
| 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 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 |
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.
As of October 12, 2026, Anthropic's standard global rates are $0.10 input and $0.50 output per million tokens for Claude Haiku 5.5 on prompts up to 100,000 tokens, $2 and $10 for Claude Sonnet 5.5, and $4 and $20 for Claude Opus 5.5. Prompts over 100,000 tokens reprice Haiku 5.5 to $0.50 and $2.50. US-only inference is 1.1x for Claude 4.6 and later. Batch is half. Check the pricing page before you budget, because these move.
On the paid standard tier, Gemini 3.8 Flash is $0.75 input and $3.75 output per million tokens 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, and $4 and $18 above that. Output prices include thinking tokens. The Pro row is still a preview.
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. grok-4.7 is not on xAI's batch-discount 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, and Sonnet 5.5 and gpt-6.1-sol are $0.013. 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. Claude and Gemini batch are about half off. OpenAI's batch column is also about half for the models in this post. xAI's batch discount does not include grok-4.7. Use batch only for work that can wait.
Claude API pricing, Gemini API pricing, and Grok API pricing are close enough on the flagship input rate ($2 per million for Sonnet 5.5, Gemini 3.1 Pro Preview, grok-4.7, and gpt-6.1-sol) that the output rate and the tokenizer decide the bill. 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 October 12, 2026, from the four official pages linked in the first section.
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 CallTayyab is a freelance AI agent developer and founder of Workly. He does research, spec, architecture, UX, and the build — solo, no handoff failures. Ex-Principal PM behind a Fortune 500 AI contact center (40% CSAT lift). He helps founders and SMBs ship production-grade agentic systems end to end.