calc.dev.brAI calculators for developers

How much an AI chatbot costs per month

For WhatsApp, website or support bots: enter conversation volume, system prompt size and message sizes. The math accounts for the history growing with every answer.

Prices updated October 2026
chatbot-cost.tsChatbot cost
tokens
tokens
tokens
Cache the system prompt
Examples

Why each message costs more than the last

The API doesn't remember the conversation. On every customer message your system resends the system prompt, the full history and the new message. Over a conversation of n messages, total input grows quadratically:

input = n × prompt + message × n(n+1)/2 + answer × n(n−1)/2

With 6 messages, a 3,000-token prompt is read 6 times: 18,000 tokens of instructions alone. That's why caching the system prompt is usually the easiest saving.

How to cut the cost

  • Cache the system prompt and knowledge base.
  • Summarize the history once a conversation passes 10 to 15 messages.
  • Start on a cheap model (Haiku 4.5, GPT-5.6 Luna) and escalate to a bigger one only for hard questions.

Frequently asked questions

How much does one AI support conversation cost?

On Claude Haiku 4.5, with 6 customer messages and a cached 3,000-token prompt, about 1.5 cents per conversation.

Does WhatsApp charge separately?

Yes. The WhatsApp Business API has its own per-conversation fees, which aren't part of this estimate.

Estimate based on public prices as of October 2026. Token counts vary with the text and the model; check the official pricing page before you decide.