↑↓ to move ↵ to open Esc to close Browse all tools

AI Token Cost Calculator

Turn your prompt and answer sizes into dollars per request and per month, and compare the API prices of OpenAI, Anthropic, Google and other model makers side by side.

Embed

AI token cost calculator

%
Estimate tokens from a sample text
About 0 tokens
A rough estimate: about 4 characters per token for English text. The real count depends on the model’s tokenizer.
ModelPer monthPer requestInput / 1MOutput / 1M
GPT-6 LunaOpenAI · 1.05M context$10.50$0.00035$0.1$0.5
Qwen3.8 Omni FlashQwen$11.55$0.00039$0.15$0.47
DeepSeek V4.1 FlashDeepSeek · 1M context$27.00$0.0009$0.3$1.20
Gemini 3.8 FlashGoogle$78.75$0.0026$0.75$3.75
Gemini 3.6 FlashGoogle$78.75$0.0026$0.75$3.75
DeepSeek V4 ProDeepSeek · 1M context$99.00$0.0033$1.32$3.96
Mistral Large 4Mistral · 1M context$104$0.0034$1.36$4.18
Grok 4.7xAI · 500K context$150$0.0050$2.00$6.00
Qwen3.8 MaxQwen$150$0.0050$2.00$6.00
Grok 4.6xAI · 500K context$150$0.0050$2.00$6.00
Mistral Medium 3.5Mistral · 256K context$158$0.0053$1.50$7.50
GPT-6.1 SolOpenAI · 1.05M context$210$0.0070$2.00$10.00
Claude Sonnet 5.5Anthropic · 1M context$210$0.0070$2.00$10.00
Claude Opus 5.5Anthropic · 1M context$420$0.0140$4.00$20.00
-- $ $

List prices in US dollars per million tokens for standard API use, from each provider's official pricing page, checked Oct 9, 2026. Prices change; check the provider before you commit.

Prices are built into this page and were checked on the providers' official pricing pages. What you type stays in your browser.

Free printableFree Resume TemplateThree clean one-page designs as an editable Word file, with a PDF example. Hand-checked listFree AI Chatbots ComparedWhat the free plans of 9 AI chat assistants include, checked on each vendor’s own pricing or help page.

AI Token Cost Calculator by Freebiefy, free online tools · Privacy · Legal notice

Embed this tool on your site

Paste this code into your page. The tool runs in the visitor's browser, free and without signup. The height adjusts to the content. All tools you can embed

How LLM API pricing works

OpenAI, Anthropic, Google and the other model makers charge per token, with separate prices for the tokens you send (input) and the tokens the model writes (output), usually quoted per million tokens. A request costs:

cost = input tokens × input price ÷ 1,000,000 + output tokens × output price ÷ 1,000,000

Multiply by the number of requests and you have the bill. A chatbot that sends a 1,000-token prompt with history and gets a 500-token answer, 1,000 times a day, costs at three example price levels:

Price levelInput / output per 1M tokensPer month
Budget model$0.1 / $0.4$9
Mid-range model$1 / $4$90
Top model$5 / $25$525

In the table above, the most expensive model costs several hundred times as much per request as the cheapest. Routing simple tasks to a small model and keeping the big GPT, Claude or Gemini model for the hard ones can cut the bill a lot. Small models such as Qwen3.7 Flash, Nova Micro or GPT-5 nano cost a small fraction of a cent per request.

Ways to lower the cost

  • Shorter answers: output tokens cost the most, so ask for concise replies and set a maximum length.
  • Prompt caching: long system prompts and documents that repeat are billed at a fraction of the input price when served from the cache.
  • Batch processing: OpenAI, Anthropic, Google and Mistral charge half price for batch requests that do not need an instant answer.
  • Trim the context: chat history grows with every turn; summarize or cut old messages.
  • Compare models: the AI cost comparison shows what the same job costs on different models from their official prices per million tokens.

How to use the AI token cost calculator

  1. 1Enter how many tokens a typical request sends and receives, or paste a sample text to estimate it, and how many requests you expect per day or month.
  2. 2Compare the models in the table, filter by provider or search for one, and add a custom price if yours is different.
  3. 3Copy the comparison for your budget, or share the link with your team.

Frequently asked questions

What is a token?

Language models read and write text in small pieces called tokens. In English one token is about four characters or three quarters of a word, so 1,000 tokens are roughly 750 words. Other languages, code and numbers often need more tokens for the same length.

Why is output more expensive than input?

Providers price the tokens a model writes higher than the tokens it reads. For almost every model in this table, output costs three to about eight times the input price, so long answers drive the bill more than long prompts.

Where do the prices come from?

From the official pricing pages of OpenAI, Anthropic, Google and the other providers in the table, checked in October 2026, in US dollars per million tokens for standard API use. A model is listed only when its price is on the provider’s own page. We found no official per-token price list for Meta’s Llama models, so Llama is not in the table; hosting services set their own prices for it. Discounts, regional prices, batch rates and long-context surcharges are not included, and prices change, so check the provider’s page before you commit to a budget.

What does cached input mean?

Many APIs charge less for input that repeats across requests, like a long system prompt or a document you ask several questions about. If you use prompt caching, enter the share of input that is served from the cache and the calculator applies the cache price where the provider publishes one.

Can I add a model or my own price?

Yes. Use the custom model row to enter any input and output price per million tokens, for example a negotiated rate or a model that is not in the list. It is compared with the others in the same table.