Free tool · no signup · runs in your browser

LLM Cost Calculator for Chatbots

What will your AI chatbot cost a month? Describe a conversation and compare OpenAI, Claude, Gemini, Grok and DeepSeek by cost per conversation, counted the way the API bills it: the whole history, every turn.

Your chatbot's workload

One turn is a user message and the bot's reply.

Your instructions. Sent on every turn.

Passages retrieved from your content.

Include thinking tokens if the model reasons.

OpenAI processing

Background windows take 30% (2h) or 40% (8h) off every token rate on GPT-6.2 Sol, GPT-6.2 Astra, GPT-6.1 Terra, GPT-6 Luna. Replies may take up to the window to arrive, so they suit batch jobs, not live chat.

Not sure how many tokens your prompt is? Paste it into the AI token counter.

Monthly cost by model

Provider
List prices in USD per 1M tokens, read from each vendor's pricing page on 3 December 2026. Cheapest first.
ModelInputCachedOutputPer chatPer month
$0.1$0.01$0.5$0.00346$17.28
$0.1$0.01$0.5$0.00346$17.28
$0.2$0.02$1.2$0.00718$35.88
$0.3$0.006$1.2$0.00997$49.86
$0.3$0.03$2.5$0.012$58.44
$0.75$0.075$3.75$0.026$129.60
$0.75$0.075$4.5$0.027$134.55
$1$0.05$5$0.035$172.80
$1$0.1$5$0.035$172.80
$1.25$0.2$2.5$0.038$191.25
$1.32$0.044$3.96$0.042$210.67
$1.5$0.075$7.5$0.052$259.20
$2$0.5$6$0.064$319.20
$2$0.1$10$0.069$345.60
$2$0.1$10$0.069$345.60
$2$0.2$12$0.072$358.80
$3$0.3$15$0.104$518.40
$3$0.15$15$0.104$518.40
$4$0.2$20$0.138$691.20
$4$0.2$20$0.138$691.20
$8$0.4$40$0.276$1,382
$8$0.2$40$0.276$1,382

Google: Gemini 3.8 Flash is listed at this price through 31 December 2026 and doubles from 1 January 2027. Google lists no cache-write price, only an hourly storage fee, so Gemini writes are billed as normal input here.

DeepSeek: DeepSeek bills half these rates outside its peak hours.

Anthropic: Cached price is for cache reads. Cache writes cost 1.25x input for a 5-minute cache and 2x for a 1-hour cache; turn them on under prompt caching.

OpenAI: Cache writes cost 1.25x input for the default 30-minute cache and 2.5x for a 12-hour cache. GPT-5.4 mini has no separate write price.

Sources: OpenAI, Anthropic, Google, xAI, DeepSeek, and OpenAI's background mode guide. Standard tier unless you pick a background window, text only. Prices change often; check the source before you budget.

Runs in your browser. Nothing you enter is sent anywhere, and there is no signup or limit.

Why chat costs grow with every turn

A language model API does not remember the conversation. To answer the fifth message, your application sends the system prompt, the knowledge it retrieved, the four earlier exchanges and the new message, all as input. Turn one might send 1,500 tokens; turn six sends the same 1,500 plus everything said in between.

That is why the calculator asks for turns per conversation and not only for a token count. Two bots with the same average message length can differ several times in cost if one of them holds ten-turn conversations and the other three. The preview shows what share of your input is repeated history, which is the number to watch as chats get longer.

Where the tokens go

  • System prompt. Your instructions, persona and rules. A few hundred to a few thousand tokens, sent on every single turn. Trimming it is the cheapest saving there is, and it is also the part prompt caching discounts.
  • Retrieved knowledge. Passages pulled from your documents so the bot answers from facts. Often the largest input by far. Fewer, better-chosen passages cut cost and usually improve answers.
  • Conversation history. Every earlier message, resent. Grows linearly, so total input over a conversation grows roughly with the square of its length.
  • The reply. Output tokens cost several times more than input. A reply limit, and instructions to be brief, affect both this turn and the history of every later one.

For background, see system prompt, retrieval-augmented generation and context window.

Choosing a model on cost

The table sorts by monthly cost for your workload, not by list price, because the ranking changes with the shape of the work. A model with cheap input and expensive output wins when you send a lot of context and get short answers, which is exactly what a support bot does. A model with a long-prompt tier looks cheap until your retrieved context pushes a request over the threshold.

Cost is only half the choice. Run your twenty hardest real questions through the two or three cheapest candidates and read the answers. Small models are usually enough for FAQ and order-status questions and sometimes fall short on policy questions with exceptions. Many teams route by difficulty: a small model first, a larger one when the first is unsure. The AI models directory describes each provider's strengths, and choosing an LLM for your chatbot walks through the trade-offs.

Cache writes and background windows

A cached read is cheap, but putting the prompt into the cache is not free everywhere. OpenAI bills the write at 1.25 times input for its default 30-minute cache and 2.5 times for a 12-hour one; Anthropic at 1.25 times for 5 minutes and 2 times for 1 hour. In a short chat the write can cancel most of the saving, which is why the calculator lets you include it. A longer lifetime only pays back when many conversations reuse the same prompt before it expires.

OpenAI's background completion windows cut every token rate by 30% for a 2-hour window and 40% for an 8-hour one, on four models only. The answer can take up to the whole window, so use it for work that can wait, such as tagging yesterday's transcripts, never for the reply a customer is waiting on.

What this calculator leaves out

  • Reasoning tokens. Models that think before answering bill that thinking as output. Add it to the reply size.
  • Cache storage and warm caches. Cache writes are included once you pick a cache lifetime, one per conversation. Google's hourly cache storage fee is not, and neither is the saving when many conversations share one cached prompt within its lifetime.
  • Batch, Flex, Fast and regional pricing. The table uses the standard tier, apart from OpenAI's background windows when you choose one.
  • Images, audio and tool calls. Text in, text out only.
  • Everything that is not the model. Hosting, a vector database, your chat platform and the people who maintain the bot. For the whole picture against the cost of human support, use the chatbot cost calculator.

Frequently asked questions

How is the cost of an LLM API call calculated?

Input tokens times the input price, plus output tokens times the output price. Prices are quoted per million tokens, and output usually costs four to six times more than input. Some vendors charge a lower rate for input served from a prompt cache and a higher rate once a prompt passes a length threshold.

Why does a chatbot cost more than one request suggests?

The API keeps no memory, so every turn resends the system prompt, any knowledge passages and the entire conversation so far. In a six-turn chat the first user message is billed six times. Input tokens grow with each turn, which is why a per-request estimate can understate a real conversation several times over.

How many tokens is a typical chatbot message?

A short customer question is often 15 to 40 tokens and a helpful reply 80 to 250. The larger numbers are the parts users never see: a system prompt of several hundred tokens and retrieved knowledge of one to several thousand per turn. Measure your own text with the token counter linked below.

What is prompt caching and how much does it save?

Caching lets the vendor reuse a prefix it has already processed, typically your system prompt, and bill those tokens at a fraction of the normal input rate from the second turn. OpenAI and Anthropic charge more than normal input to write the cache: 1.25 times for a short cache, and 2.5 times (OpenAI, 12 hours) or 2 times (Anthropic, 1 hour) for a long one. Pick a cache lifetime here to include that first write.

Are these prices up to date?

Each price was read from the vendor's own pricing page on the date printed above the table, and the sources are linked. Vendors change prices and retire models often, so check the source before a budget decision. Every price in the table can be edited, so you can enter a negotiated or newer rate.

Which model is cheapest for a customer support chatbot?

The smallest model that answers your questions correctly. Small models cost a tenth or less of flagship ones and handle FAQ-style questions well when given good retrieved context. Test with real questions before deciding: a cheap model that answers wrongly costs more in escalations than it saves in tokens.

How can I reduce my LLM bill?

Send less on every turn. Trim the system prompt, retrieve fewer and shorter knowledge passages, cap or summarise old conversation history, limit reply length, turn on prompt caching, and route simple questions to a small model. Because history is resent each turn, shortening replies also reduces later input cost.

Does this calculator include reasoning or thinking tokens?

Not separately. Models that think before answering bill those hidden tokens as output. If you use such a model, raise the reply tokens to include them. Costs for images, audio, tool calls and cache storage are also not included; this page covers text in and text out.

Related

Run your chatbot on the model you choose

Build an AI chatbot in Conferbot, bring your own API key from any of these providers, and switch models per bot without rebuilding. No code, free plan, no card.