Estimate chatbot API cost per 1,000 conversations

Count the full conversation, including repeated history

Estimate chatbot API cost by summing every turn’s input and output charges, then scaling to 1,000 conversations. For a text chatbot that resends conversation history, budgeting only the newest message understates input usage; Anthropic’s Claude Haiku 5.5 input rate is $0.10 per 1M tokens for prompts up to 100,000 tokens, so both token volume and the applicable prompt tier matter.

Apply the same accounting method to Anthropic’s Claude Haiku 5.5, DeepSeek’s DeepSeek V4.1 Flash 1017, Google’s Gemini 3.8 Flash and MiniMax’s MiniMax-M3.1-Flash. There is no universal “typical conversation”: write representative short, ordinary and long exchanges for your product.

Use the token counter for an initial estimate. Count the system instructions, current user message, retained history and any retrieved text actually sent. Validate estimates against each model’s reported usage during a pilot; identical text need not produce identical token counts.

For a simplified conversation, let T be the number of turns, S the system-prompt tokens, U the user tokens per turn and A the assistant tokens per turn. Let t identify the current turn, starting at one. If every request includes all previous messages, with constant message lengths and no other content:

  • Input on turn t = S + t × U + (t − 1) × A.
  • Total input I = T × S + U × T × (T + 1) / 2 + A × T × (T − 1) / 2.
  • Total output O = T × A.

These are workload assumptions, not usage benchmarks. For unequal message lengths, sum the actual requests instead. A completed answer becomes input again whenever a later request includes it.

Apply each model’s rates to 1,000 conversations

For Anthropic’s Claude Haiku 5.5, DeepSeek’s DeepSeek V4.1 Flash 1017, Google’s Gemini 3.8 Flash and MiniMax’s MiniMax-M3.1-Flash, start with a text-token estimate without caching. Pricing conditions were checked on 2026-11-12; each linked model page provides its price source and date.

Model Input Output Cache read Context
Claude Haiku 5.5 $0.10 $0.50 $0.01 1M
DeepSeek V4.1 Flash 1017 $0.30 $1.20 $0.006 1.05M
Gemini 3.8 Flash $0.75 $3.75 $0.075 1.05M
MiniMax-M3.1-Flash $0.15 $0.60 $0.015 1M

USD per 1M tokens

Let I and O mean total input and output tokens per conversation. Each expression below estimates 1,000 identical conversations; rates are per 1M tokens.

Provider and model Cost expression without caching
Anthropic — Claude Haiku 5.5, with every prompt up to 100,000 tokens 1,000 × (I × $0.10 + O × $0.50) / 1,000,000
DeepSeek — DeepSeek V4.1 Flash 1017, at peak rates 1,000 × (I × $0.30 + O × $1.20) / 1,000,000
Google — Gemini 3.8 Flash, Paid tier, standard (non-Batch) requests 1,000 × (I × $0.75 + O × $3.75) / 1,000,000
MiniMax — MiniMax-M3.1-Flash, pay-as-you-go 1,000 × (I × $0.15 + O × $0.60) / 1,000,000

Anthropic charges a higher prompt-length tier for Claude Haiku 5.5 when prompts exceed 100,000 tokens. DeepSeek’s peak hours are 01:00–04:00 and 06:00–10:00 Coordinated Universal Time (UTC), Monday through Friday, excluding Chinese public holidays; all other hours are off-peak. Split DeepSeek usage by billing period if you expect off-peak traffic.

For Google Gemini 3.8 Flash, confirm the billing tier and feature charges before treating a token subtotal as the full invoice. For MiniMax-M3.1-Flash, use pay-as-you-go accounting for this estimate; MiniMax documents M Plan subscriptions separately.

Enter each conversation profile into the cost calculator. Compare MiniMax-M3.1-Flash and Gemini 3.8 Flash with the same workload assumptions, then replace those assumptions with model-specific measured usage.

Estimate system-prompt caching without assuming every hit

For Anthropic’s Claude Haiku 5.5, DeepSeek’s DeepSeek V4.1 Flash 1017, Google’s Gemini 3.8 Flash and MiniMax’s MiniMax-M3.1-Flash, a repeated system prompt is a candidate for a caching scenario, not evidence of a billed cache hit.

Let H be verified cache-read tokens per conversation, I total input tokens, O output tokens, and p, c and q the applicable input, cached-read and output rates per 1M tokens. Let W be additional cache costs beyond this base accounting, including any write premium or storage charge that applies:

Conversation cost = ((I − H) × p + H × c + O × q) / 1,000,000 + W.

The potential reduction relative to uncached input is H × (p − c) / 1,000,000 − W. Keep H at zero in the baseline until cache behavior is verified.

Anthropic’s Claude Haiku 5.5 has separately priced five-minute and one-hour cache writes; its $0.01 read rate per 1M tokens applies to prompts up to 100,000 tokens. Account for write premiums without also counting the full write charge as ordinary input.

DeepSeek’s DeepSeek V4.1 Flash 1017 distinguishes cache hits from misses; $0.006 per 1M tokens is its peak cache-hit rate. Google lists context caching as a paid-tier feature; for Gemini 3.8 Flash, use $0.075 per 1M cached-read tokens only in a scenario with verified applicable cache billing. MiniMax-M3.1-Flash has a cached-read rate of $0.015 per 1M tokens; verify eligibility and any additional charges before assigning savings. A read rate alone does not establish cache creation rules or retention.

Cap output after checking which charge dominates

For Anthropic’s Claude Haiku 5.5, DeepSeek’s DeepSeek V4.1 Flash 1017, Google’s Gemini 3.8 Flash and MiniMax’s MiniMax-M3.1-Flash, output length is a budget control, but output does not necessarily dominate a conversation with substantial repeated history.

Let I and O be conversation input and output tokens, and p and q their applicable rates per 1M tokens. Without caching, output dominates only when O × q exceeds I × p. With caching, compare the output charge against the complete input charge, including cache costs.

Define a target answer length and an application output cap. Test whether useful answers fit, and measure truncation, follow-up requests and retries. A shorter answer reduces generated output and, when retained, the history sent on subsequent turns. A cap that forces users to ask again can undermine those savings.

Turn conversation costs into a monthly budget

For Anthropic’s Claude Haiku 5.5, DeepSeek’s DeepSeek V4.1 Flash 1017, Google’s Gemini 3.8 Flash and MiniMax’s MiniMax-M3.1-Flash, budget separately for short, ordinary and long conversations that meet your quality criteria.

Let N be monthly conversations, f_j the fraction belonging to profile j, and C_j that profile’s estimated conversation cost. The fractions must sum to one:

Monthly token budget = N × sum(f_j × C_j) + R.

Here R is the expected charge for additional billed retry attempts, and sum means adding the contributions from all conversation profiles. Estimate R from the input and output of those attempts, including partial responses where billed; do not assume a retry costs exactly the same as the original request.

Keep additional billable tools and infrastructure as separate budget lines. Before launch, run a pilot to measure turn counts, retained history, cache hits, output length and retries. Set headroom from a longer-conversation scenario and a higher-retry scenario, then use the cost calculator to refresh the estimate as traffic and rates change.

Prices in this guide come from modelpick's price data and update when a provider changes them (last checked Nov 24, 2026, 04:16 UTC). Each model links to its own page with the source and date of its price.

Models in this guide

Sources

Questions

MiniMax M3.1 Flash vs Gemini 3.8 Flash?
Compare MiniMax-M3.1-Flash from MiniMax and Gemini 3.8 Flash from Google using the same chatbot conversations, counting repeated history, actual output and verified cache hits. Select among models that meet your answer-quality requirements using the resulting conversation cost.
How to estimate LLM API cost before building an app?
Write representative conversations, count the full prompt at every turn, and multiply input and output usage by the applicable model rates. Start with no cache hits, then model verified caching separately and add expected retry usage and monthly conversation volume.