AI chatbot cost calculator
The monthly API cost of a chatbot on 169 language models at their list prices, counting the conversation history each message sends again.
How it is worked out: message k sends the system prompt, the k−1 earlier messages and replies, and the new message as input, and gets one reply as output. Those tokens are priced at the model’s input and output price per million, then multiplied by conversations a month. Prices come from each model’s page.
Calculator
- Input tokens per conversation
- 9.8k
- Output tokens per conversation
- 1.5k
- Tokens a month
- 113.1M
169 models at list price, lowest monthly cost first.
| Model | Per conversation | Per month | Input / output per 1M |
|---|---|---|---|
| Gemma 4 31B Google | $0.0000 | $0.0000 | $0 / $0 |
| Gemma 4 26B A4b Google | $0.0000 | $0.0000 | $0 / $0 |
| Ling 3.0 Flash Ant Group | $0.0002 | $2.40 | $0.0168 / $0.0504 |
| gpt-oss-20b OpenAI | $0.0005 | $4.89 | $0.03 / $0.13 |
| gpt-oss-120b OpenAI | $0.0005 | $5.49 | $0.03 / $0.17 |
| Amazon Nova Micro V1 Amazon | $0.0006 | $5.53 | $0.035 / $0.14 |
| Llama 3.2 1B Instruct Meta | $0.0006 | $5.94 | $0.03 / $0.2 |
| Granite 4.1 8B IBM | $0.0006 | $6.41 | $0.05 / $0.1 |
| Gemma 3 4B IT Google | $0.0006 | $6.41 | $0.05 / $0.1 |
| Gemma 3 12B IT Google | $0.0007 | $7.16 | $0.05 / $0.15 |
| Gemma 3N E4b IT Google | $0.0008 | $7.69 | $0.06 / $0.12 |
| OLMo 2 0325 32B Instruct Ai2 | $0.0008 | $7.90 | $0.05 / $0.2 |
| Phi 4 Microsoft AI | $0.0009 | $8.97 | $0.07 / $0.14 |
| NVIDIA Nemotron 3 Nano 30B A3b Bf16 NVIDIA | $0.0009 | $9.49 | $0.06 / $0.24 |
| Amazon Nova Lite V1 Amazon | $0.0009 | $9.49 | $0.06 / $0.24 |
| Llama 3.2 3B Instruct Meta | $0.0010 | $9.86 | $0.05 / $0.33 |
| GPT 5 Nano High OpenAI | $0.0011 | $10.91 | $0.05 / $0.4 |
| Hy4 flash Tencent | $0.0011 | $11.08 | $0.07 / $0.281 |
| Step 3.5 Flash StepFun | $0.0014 | $14.31 | $0.1 / $0.3 |
| Gemma 3 27B IT Google | $0.0015 | $14.60 | $0.08 / $0.45 |
| Llama 3.3 70B Instruct Meta | $0.0015 | $14.61 | $0.1 / $0.32 |
| Qwen3.5 Flash Alibaba | $0.0016 | $15.81 | $0.1 / $0.4 |
| NVIDIA Llama 3.3 Nemotron Super 49B V1.5 NVIDIA | $0.0016 | $15.81 | $0.1 / $0.4 |
| GPT-6 Luna OpenAI | $0.0017 | $17.31 | $0.1 / $0.5 |
| Claude Haiku 5.5 Anthropic | $0.0017 | $17.31 | $0.1 / $0.5 |
One-off jobs and batch work: AI token cost calculator. Running a model on your own GPUs instead: self-hosting vs API cost. Model rankings: benchmarks.
Frequently asked questions
Why does a longer conversation cost more per message?+
Chat completion APIs keep no state between calls, so every turn sends the system prompt and the whole conversation so far again as input. Input per turn grows with each message, and the total grows with the square of the number of turns. A 10-message conversation with a 1,000-token system prompt, 50-token messages and 200-token replies sends 21,750 input tokens in total, not 10,500.
How does prompt caching lower chatbot cost?+
The system prompt and earlier turns are the same prefix on every call, so providers that cache prompts bill that repeated part at a lower cached-input rate. Tick the cached-input option to apply each model's listed cached rate to the repeated input; models without a single listed cached rate stay at the full input price.
What is not included in the estimate?+
Tool calls, retrieved documents (RAG context), images, reasoning tokens billed as output, minimum charges, free tiers, volume discounts and tax. Add retrieved text to the user message size, and reasoning tokens to the reply size, to include them.
How many tokens is a chat message?+
OpenAI gives a rule of thumb of about 4 characters or 0.75 words per token in English, so a 40-word message is roughly 50 to 55 tokens. Each model family uses its own tokenizer, so counts differ between vendors.