LLM cost calculator for Claude, GPT and Gemini

Enter how many requests you send a month and how many tokens each one uses. See the monthly API cost on each model at the vendors' published prices.

Estimate my cost

Free, no sign-up · Prices from Anthropic, OpenAI and Google, re-checked Nov 24 2026 · Sample values shown

The sample workload in the calculator

  1. 01 · Task in20,000 support emails a monthEach email and its history: about 2,000 tokens.
  2. 02 · AI stepThe model drafts a replyEach draft: about 500 output tokens.
  3. 03 · Person checksAn agent approves the draftThey edit and send it from the help desk.
  4. 04 · SystemTokens are logged per ticketCost per ticket shows in the monthly report.

Token cost calculator

Sample values show 20,000 support replies a month on Claude Sonnet 5.5. Replace them with your own workload.

Your numbers · sample values
Sample: support replies drafted by AI
Instructions, context and the message
The model's reply
$2 input and $10 output per million tokens
ResultSample
Tokens a month40M in, 10M out20,000 × 2,000 input and 20,000 × 500 output
Cost a month$18040 × $2 plus 10 × $10, per million tokens
Cost per request$0.009$180 ÷ 20,000 requests
Cost a year$2,160Before caching or batch discounts
How it calculates
  • Monthly input tokens = requests × input tokens per request; output tokens work the same way.
  • Cost = input tokens in millions × input price, plus output tokens in millions × output price.
  • Prices are standard per-million-token rates from each vendor's pricing page, read Nov 24 2026.
  • Prompt caching and batch processing lower the cost; the sample uses neither.
  • Token counts are estimates until you measure them in your own logs.

How the LLM cost calculator works

The calculator multiplies the tokens you send and receive each month by each model’s price per million tokens. It then adds the input and output costs together.

What counts as input and output

  • Instructions and system prompt

    Billed as input. Long rules and examples ride along on every call.

  • Chat history

    Billed as input. Most chat setups resend earlier turns with each new message.

  • Retrieved documents

    Billed as input. Search results add pages of text to the prompt.

  • Tool definitions and tool results

    Billed as input. Each connected tool adds its schema, and its results come back as text.

  • The model's reply

    Billed as output. Long answers, drafts and structured data.

  • Thinking tokens

    Billed as output (Gemini lists them in its output price). Harder tasks use more reasoning.

  • What the estimate assumes

    Standard, real-time processing on each vendor's own API, in US dollars, before tax. Prompts within the listed price band: up to 272,000 input tokens on OpenAI, and up to 100,000 on Claude Haiku 5.5. No volume or committed-spend discount. Anthropic and Google offer those through their sales teams. Every request is the same size. Real traffic varies, so enter averages from your logs.

  • Why token counts differ by model

    Each vendor splits text into tokens its own way. Anthropic says the tokenizer it uses from Claude 4.7 on produces about 30% more tokens for the same text than earlier Claude models. So count the same sample of real requests with each vendor’s token counter before you compare totals.

  • Using it as a Claude API cost calculator

    As a Claude API cost calculator, it prices Claude Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5 at Anthropic's published rates. Choose a GPT model instead, and it works as an OpenAI API cost calculator at OpenAI's standard rates. Prompt caching and batch processing would lower either result, since the calculator shows standard prices.

LLM pricing comparison: Claude, GPT and Gemini

Standard API prices per million tokens, from each vendor's pricing page, re-checked on Nov 24 2026. We re-check them at every update. Sources: Anthropic pricing, OpenAI API pricing and Gemini API pricing, read Nov 24 2026.

  • Claude Fable 5.2

    Anthropic. Demanding reasoning and long agentic work

    $8 in · $40 out

  • Claude Opus 5.5

    Anthropic. Long-running agentic coding and knowledge work

    $4 in · $20 out

  • Claude Sonnet 5.5

    Anthropic. Speed and intelligence balanced

    $2 in · $10 out

  • Claude Haiku 5.5

    Anthropic. Prompts up to 100,000 tokens; $0.50 and $2.50 above

    $0.10 in · $0.50 out

  • gpt-6-astra

    OpenAI. Standard processing, prompts up to 272K tokens; $20 and $75 above

    $10 in · $50 out

  • gpt-6.1-sol

    OpenAI. Standard processing, prompts up to 272K tokens; $4 and $15 above

    $2 in · $10 out

  • gpt-6.1-terra

    OpenAI. Standard processing, prompts up to 272K tokens; $2 and $7.50 above

    $1 in · $5 out

  • gpt-6-luna

    OpenAI. Standard processing, prompts up to 272K tokens; $0.20 and $0.75 above

    $0.10 in · $0.50 out

  • Gemini 4 Argon

    Google. Promotional price through Nov 30 2026; $4 and $20 from Dec 1 2026

    $2 in · $10 out

  • Gemini 3.8 Flash

    Google. Promotional price through Dec 31 2026; $1.50 and $7.50 from Jan 1 2027

    $0.75 in · $3.75 out

  • Gemini 3.5 Flash-Lite

    Google. Text, image, video and audio input

    $0.30 in · $2.50 out

What the LLM cost estimate leaves out

Read November 24, 2026.

Web search$10 per 1,000 searches on the Claude API and on OpenAI's web search tool, plus tokens. Source: Anthropic and OpenAI pricing pages.
Google Search grounding5,000 free requests a month on Gemini 3 and newer, then $14 per 1,000. Source: Gemini API pricing.
US-only or regional processing1.1 times standard prices on Claude 4.6 and later; a 10% uplift on eligible OpenAI models. Source: Anthropic and OpenAI pricing pages.
Fast modeClaude Opus 5.5 at $8 input and $40 output per million, twice the standard rate; OpenAI also sells a Fast tier. Source: Anthropic and OpenAI pricing pages.

LLM API cost: a worked example

An internal assistant that answers 30,000 questions a month costs $15 to $1,500 a month at list prices, depending on the model. Caching and batch processing cut the bill further. Example math with assumed numbers, not a client result.

LineAssumed value
Questions a month30,000
Input tokens per question3,000: a fixed 2,000-token prompt plus 1,000 tokens of question and retrieved text
Output tokens per answer400
Tokens a month90 million in, 12 million out

Monthly cost on each model at standard prices

List prices per million tokens from each vendor's pricing page, read November 24, 2026. Token counts differ by tokenizer, so measure your own.

Claude Haiku 5.5

Input cost $9, output cost $6.

gpt-6-luna

Input cost $9, output cost $6.

Gemini 3.5 Flash-Lite

Input cost $27, output cost $30.

Gemini 3.8 Flash

Input cost $67.50, output cost $45. $112.50 at the promotional price; $225 from Jan 1 2027.

gpt-6.1-terra

Input cost $90, output cost $60.

Claude Sonnet 5.5

Input cost $180, output cost $120.

gpt-6.1-sol

Input cost $180, output cost $120.

Gemini 4 Argon

Input cost $180, output cost $120. $300 at the promotional price; $600 from Dec 1 2026.

Claude Opus 5.5

Input cost $360, output cost $240.

Claude Fable 5.2

Input cost $720, output cost $480.

gpt-6-astra

Input cost $900, output cost $600.

The same workload on Claude Sonnet 5.5, with caching and batch

The caching row assumes the cache is written on 10% of requests, at $2.50 per million, and read on the rest. Example math with assumed numbers, not a client result. Batch processing suits work that can wait, such as overnight summaries, not a live chat. Caching helps most when every request repeats the same long instructions.

Standard: $300 a month

90 million input tokens at $2 and 12 million output tokens at $10, per million.

Prompt caching: about $200

The fixed 2,000-token prompt is read from cache at $0.10 per million.

Batch processing: $150

Half price, for work that can wait for results.

Caching and batch together: about $100

Anthropic lets the two discounts stack.

Claude API and OpenAI API cost calculator results: how to read them

Four patterns from the vendors' price lists, and how our builds keep usage on your accounts.

How to use your LLM cost estimate

From estimate to budget

Use the estimate to set a monthly budget for each AI feature. Then pick the smallest model that passes your tests, and decide where the AI should run.

Compare the monthly cost with the value of the work. The AI ROI calculator prices the hours a feature saves. Then test two or three models on the same sample of real requests, and keep the cheapest one that passes.

Set cost limits and alerts for each feature before launch, so a traffic spike can’t surprise you. After launch, log tokens per request and compare the real bill with this estimate each month.

If you need

turning data into decisions

Questions about LLM costs

Tokens, vendor prices and ways to lower the bill.

How do you calculate LLM cost?

Multiply monthly input tokens by the input price and monthly output tokens by the output price, both per million tokens, then add the two. For example, 40 million input and 10 million output tokens on Claude Sonnet 5.5 cost $80 plus $100, or $180 a month. Caching and batch processing lower that figure.

What is a token?

A token is a small piece of text, often part of a word. Vendors count everything you send as input tokens and everything the model writes as output tokens, then bill each at its own price per million. Your own logs give the most accurate counts, so measure a sample of real requests before you budget.

Is the Claude API cheaper than the OpenAI API?

It depends on the tier. On Nov 24 2026, Claude Sonnet 5.5 and gpt-6.1-sol both list $2 input and $10 output per million tokens. Claude Opus 5.5 lists $4 and $20, while gpt-6-astra lists $10 and $50. Test both on your own prompts, because results and token counts vary by task.

Which LLM is the cheapest?

In our table, the lowest standard prices are $0.10 input and $0.50 output per million tokens. Two models list them: Claude Haiku 5.5, for prompts up to 100,000 tokens, and gpt-6-luna. Small models suit classification, extraction and routing. Harder reasoning usually needs a larger model, so test quality before you choose on price.

Why does a real bill differ from the estimate?

Real prompts grow over time: chat history, retrieved documents and tool results all add input tokens. Retries, long replies and thinking tokens add output. We log tokens per request in every build, so you can see which step drives cost. Caching, shorter context or a smaller model then brings it down.

Can you lower our LLM costs?

Yes. We review your prompts and logs, then cut cost with prompt caching, batch processing and shorter context. Model routing sends easy requests to a smaller model. Our agent monitoring and cost control service sets this up for $3,500, with monitoring from $500 a month.

How much does the OpenAI API cost?

It depends on the model. On Nov 24 2026, OpenAI's standard prices per million tokens ran from $0.10 input and $0.50 output on gpt-6-luna to $10 and $50 on gpt-6-astra. Those rates cover prompts up to 272,000 input tokens. Batch processing halves them for work that can wait.

How much do 1,000 tokens cost?

Divide the per-million price by 1,000. On Claude Sonnet 5.5 or gpt-6.1-sol, 1,000 input tokens cost $0.002 and 1,000 output tokens cost $0.01. On Claude Haiku 5.5 or gpt-6-luna, they cost $0.0001 and $0.0005. Multiply by your monthly volume to see the real budget.

Why is the OpenAI API so expensive?

Mostly output and context. On the four OpenAI models in our table, an output token costs 5 times an input token, and prompts over 272,000 input tokens cost more. On OpenAI's list, gpt-6-astra costs 100 times gpt-6-luna. Cached input, which is 90% to 95% cheaper, batch processing and smaller models bring the bill down.

How much is 1 million tokens in ChatGPT?

ChatGPT plans are subscriptions, so they aren't billed per token. Per-token prices apply to the OpenAI API. At standard prices on Nov 24 2026, 1 million input tokens on gpt-6.1-sol cost $2, and 1 million output tokens cost $10. For subscription prices, see business AI pricing compared.

Flag icon

U.S.-Based

Send us your monthly volume and the models you are testing. A senior engineer checks the token math and the build cost in a 30-minute call.

Vendor documentation

Ready for procurement and legal review

Sample certificates of insurance for professional liability (E&O), cyber liability and general liability

Certificate of insurance

  • Professional liability (E&O)
  • Cyber liability
  • General liability
Certificates

Let's build together.

Talk with a senior engineer about your product idea, architecture, and what it would take to build it.

Upload File
By submitting this form, you consent to Come Back Agency, LLC contacting you about your inquiry via email or phone. Your information will be handled in accordance with our Privacy Policy.