Cost6 min read
What an AI chatbot costs to run per conversation: tokens, caching and model choice
By Sannan MalikPublished
Short answerA chatbot's model bill is tokens in plus tokens out, and every turn sends the whole conversation again. In my made-up month of 2,000 six-turn conversations with a 1,500-token system prompt, Claude Haiku 5.5 comes to $3.36 and Claude Sonnet 5.5 to $67.20, at prices listed on 15 November 2026. Prompt caching cuts both by about half. System prompt length and model choice move the number most.
Why turn six costs more than turn one
The model keeps no memory between messages. To answer the sixth message, my code sends the instructions, all five earlier exchanges and the new message. Anthropic's context window page describes the input of each turn as all previous conversation history plus the current user message, and says each reply becomes part of the input for the next turn.
So input grows with every turn, and the system prompt is paid for again each time. A token is the unit providers bill in: a word, or a piece of one. Input and output are priced apart. Output costs five times more than input on both Claude models below.
This article covers the model bill only. Meta's message fees are in my WhatsApp Business pricing post, phone calls are in my post on voice agent cost per minute, and what providers keep is in my post on AI API data retention.
List prices per million tokens, as listed on 15 November 2026
These are standard list prices in US dollars per 1 million tokens, read on each provider's own pricing page on 15 November 2026. I use the two Anthropic models in the worked example and show three others for scale. They are examples, not a recommendation, and providers change them without notice.
Caching terms differ. Anthropic charges 1.25 times the input price to write a 5-minute cache entry. Reading it back costs 0.1 times the input price on most models and 0.05 times on Sonnet 5.5. OpenAI's guide says caching is enabled by default for supported models, with a 1,024-token minimum for GPT-5.6 and later. Google lists a cached-token price plus a storage price per hour.
| Model | Input | Cache write | Cached input | Output |
|---|---|---|---|---|
| Claude Haiku 5.5 (Anthropic, prompts up to 100,000 tokens) | $0.10 | $0.125 (5 minute) | $0.01 | $0.50 |
| Claude Sonnet 5.5 (Anthropic) | $2 | $2.50 (5 minute) | $0.10 | $10 |
| gpt-6-luna (OpenAI, standard, short context) | $0.10 | $0.125 (30 minute) | $0.01 | $0.50 |
| gpt-6.1-terra (OpenAI, standard, short context) | $1.00 | $1.25 (30 minute) | $0.05 | $5.00 |
| Gemini 3.5 Flash-Lite (Google, paid tier) | $0.30 | Storage: $1.00 per 1M tokens per hour | $0.03 | $2.50 |
A made-up clinic: 2,000 conversations of six turns
Every usage number here is invented. A made-up dental clinic has 2,000 chat conversations a month, six turns each. The system prompt holds the instructions, opening hours and price list, and is 1,500 tokens. Each customer message is 50 tokens. Each reply is 150.
Turn one sends 1,550 input tokens. Each later turn adds the previous question and answer, 200 tokens, so the six turns send 1,550, 1,750, 1,950, 2,150, 2,350 and 2,550. That is 12,300 input tokens a conversation, and 9,000 of them are the system prompt sent six times. Output is 6 x 150 = 900 tokens. Over the month: 24.6 million input tokens and 1.8 million output tokens.
Same traffic, and the larger model costs 20 times more.
| Line | Working | Claude Haiku 5.5 | Claude Sonnet 5.5 |
|---|---|---|---|
| Input, no caching | 24.6M x $0.10, or x $2 | $2.46 | $49.20 |
| Output | 1.8M x $0.50, or x $10 | $0.90 | $18.00 |
| Month | Input plus output | $3.36 | $67.20 |
| Per conversation | Month divided by 2,000 | $0.00168 | $0.0336 |
The same month with prompt caching switched on
Caching lets the provider reuse the part of a prompt it has already processed. Anthropic's docs say that with automatic caching each new request caches everything up to the last cacheable block, and previous content is read from cache. As I read that, turn one writes all 1,550 tokens, and each later turn reads the earlier prefix and writes only the 200 new tokens.
Per conversation that is 2,550 tokens written (1,550 plus 5 x 200) and 9,750 read (1,550 + 1,750 + 1,950 + 2,150 + 2,350). Together they make the same 12,300. Over the month: 5.1 million written and 19.5 million read.
Both bills fall by about half, on three conditions. The cache lasts 5 minutes by default and is refreshed each time it is used, so a customer who replies after ten minutes pays the write price again. A 1-hour cache exists, at 2 times the input price to write. Both models need at least 512 tokens before anything is cached, and a shorter prompt is processed without caching and without an error. I also assumed every conversation starts cold.
Output is not discounted. On Sonnet 5.5 it is $18.00 of the $32.70.
Paste a whole FAQ into the prompt and the gap widens. With a 6,000-token system prompt, the same month on Sonnet 5.5 is $175.20 without caching and $59.70 with it.
| Line | Working | Claude Haiku 5.5 | Claude Sonnet 5.5 |
|---|---|---|---|
| Cache writes (5 minute) | 5.1M x $0.125, or x $2.50 | $0.6375 | $12.75 |
| Cache reads | 19.5M x $0.01, or x $0.10 | $0.195 | $1.95 |
| Output | Unchanged | $0.90 | $18.00 |
| Month | Sum of the three lines | $1.73 | $32.70 |
Picking the model: my rule, and four cost controls
My rule: start on the small model and make it earn the upgrade. I would write 40 real customer questions with the answers the clinic expects, run them through both models and read every reply. If the small model passes, stay. If it fails on one type of question, such as insurance cover, I would send only that type to the larger model.
At this volume the gap is $63.84 a month. I would not let that decide it, because a wrong answer about a price costs more. At 100 times the volume the gap is $6,384 a month, and then it should.
- Shorten the system prompt. In the example it is 9,000 of every 12,300 input tokens. Cut what the bot never uses.
- Turn caching on and keep the fixed text first. OpenAI's guide says to put stable instructions and shared reference material first. I would keep dates and customer names out of that part.
- Cap the history. I would keep the last few exchanges plus a short summary, and trim in blocks. As I read the caching docs, changing the start of the history means the prefix is written again.
- Route the easy questions. Opening hours and directions go to the small model. I would also cap reply length, since output is the dearest token.
Who pays the model bill on a build I quote
A chatbot is custom AI work, and my pricing notes say custom AI systems are quoted separately: a fixed price after a written scope. The app around it can be one of my packages. Launch is $999 for up to 10 screens, Growth is $1,699 for up to 25 screens with a Node.js backend and PostgreSQL database, and Scale is $2,500 for up to 50 screens with an admin dashboard. Third-party fees are not included, so the token bill is yours and continues after the build.
The provider account would be opened in your company's name, and I would log the token counts that come back with every reply. Send me last month's conversation count and your current FAQ, and I would run this arithmetic with your numbers.
Questions
- How do I find out how many tokens my system prompt uses?
- Measure it. Anthropic's docs say every response reports what the request consumed in its usage field, split into input, cache read and cache creation tokens when caching is on. There is also a token counting API to estimate a request before you send it.
- Are thinking tokens billed?
- Yes. Anthropic's context window page says thinking tokens are billed as output tokens, which is the expensive side. For short customer-service answers I would test whether the bot needs thinking at all before paying for it.
- Is the model bill the whole running cost of a chatbot?
- No. The server that calls the model, any channel fees and the time someone spends reading transcripts each week all sit outside it. In my example the model was the small part.
Sources
Platform rules and fees in this article were checked against these official pages on 15 November 2026. They change, so confirm before you rely on them.
Sannan Malik is a software architect and product builder with 8+ years in software, CEO of Alpha Notic FZE and a Certified Scrum Product Owner. He builds mobile apps and business software for companies in the UAE, the wider Gulf, the UK, the US, Canada and Australia.