CalcSays
CUSTOMER SUPPORT · AGENT COST

Customer Support Agent Cost Calculator

A typical customer support agent runs ~6 steps of 1,500 tokens with ~8% per-step failures (tune everything below). The naive estimate misses what that actually bills — this page doesn't.

For engineers and founders running production AI agents — estimates the real monthly bill with context growth, retries, framework overhead and prompt caching included.

Model prices from OpenRouter · updated 2026-07-13

01 Your setup

Model (315 available)
Framework

×1 tokens/step — Bare hand-rolled loop — the ×1.0 baseline every other estimate is measured against. Our estimate, not a vendor benchmark.

Prompt cachingre-sent history billed at $0.2/M instead of $2/M

02 Naive estimate vs real cost

You're overpaying $214/month vs the naive estimate — context keeps growing, and linear math doesn't see it.

Naive calculator
$1,260
steps × tokens, linear
Real cost
$1,474
accumulation + framework + retries

Your real bill is 1.2× the naive estimate

Without prompt caching this would be $2,837 (2.3×) — caching is your single biggest lever.

03 Where the money goes

Naive linear baseyour own steps × tokens, no overhead$1,260
Context accumulationignored by othershistory re-read each step at $0.2/M+$135
Framework overheadNone (custom loop) scaffolding ≈ ×1 tokens/step (our estimate)+$0.00
Retry replay & re-runsonly 61% of tasks finish with zero retries+$79.04
Real monthly cost$1,474
Tweet
Why the gap? Context accumulation — each step re-sends the full history, so input tokens grow N(N+1)/2, not N. With prompt caching those re-reads are cheap but not free; without it they dominate the bill. ② Framework overhead — schemas, scratchpads and scaffolding ride along on every step. ③ Retry replay — a failed step replays its whole context and re-generates its output, and providers bill both. Naive calculators ignore all three.

04 Cheapest model for this exact setup

1. Ling-2.6-flashinclusionAI · cheapest$6.56/mo
2. Nex-N2-MiniNex AGI$16.47/mo
3. Llama 3.1 8B InstructMeta$22.89/mo
4. Mistral NemoMistral$22.89/mo
5. Granite 4.0 MicroIBM$26.23/mo
6. gpt-oss-20bOpenAI$40.74/mo
7. Ministral 3 3B 2512Mistral$42.40/mo
8. Llama 3.2 1B InstructMeta$43.46/mo
9. DeepSeek V4 FlashDeepSeek$44.50/mo
10. Nova Micro 1.0Amazon$46.91/mo

Top 10 of 315models at this workload, models that can't hold the accumulated context ranked last — the search box above covers the rest. Cheap models are only a win if they can actually finish your steps.

📄 Get the full agent cost audit
A multi-page report on your exact setup: where cost spirals, how much context-trimming / state-resets / model-routing each saves, and which model+framework combo is cheapest at your real failure rate. Generated from your numbers.

Prices from OpenRouter, snapshot 2026-07-13, synced daily. Model: context accumulation N(N+1)/2 with first sends at input price and re-sends at the cache-read price when enabled; retry expectation f/(1−f) per step, replaying context and re-billing generated output; framework overhead is our per-step token estimate, not a vendor benchmark. Cache writes, cache misses and TTL expiry are not modeled — real caching saves somewhat less than shown. All math runs in your browser.

How the math works

The naive estimate is what most calculators (and most budgets) do: steps × tokens per step × price, as if every step were an independent call. This page's default workload — 6 steps of 1,500 tokens — looks like 9,000 input tokens per task.

A real agent re-sends its accumulated history on every step, because each LLM call is stateless. Step 1 sends 1,500 tokens, step 2 sends 3,000, step 6 sends 9,000 — the total is tokens × N(N+1)/2, which is 31,500 input tokens for the same task: 3.5× the naive count, and the ratio grows with every step you add.

Prompt caching (on by default here) re-bills those re-sent tokens at the provider's cache-read rate. Claude Sonnet 5 bills cached reads at $0.2/M against $2/M for fresh input — at this page's defaults that cuts the real bill from $2,837 to $1,474 per month (48% saved). Cache writes, misses and TTL expiry aren't modeled, so real savings run somewhat below this best case.

Failures multiply everything. At this page's default 8% per-step failure rate, only 61% of 6-step tasks finish without a single retry. Each expected retry (f/(1−f) per step) replays the accumulated context and re-generates the failed step's output — and providers bill both. Framework scaffolding rides along on every step; this page assumes a bare custom loop (×1.0 — no framework scaffolding assumed).

Worked example at this page's defaults — Claude Sonnet 5 at $2/$10 per million tokens, 6 steps × 1,500 tokens, 8% failures, 30,000 tasks a month, 400 output tokens per step: the naive estimate says $1,260/month; the real number is $1,474/month (1.2×). Prices sync daily from OpenRouter and every calculation runs in your browser with tested, open formulas — nothing is estimated by an AI.

Frequently asked questions

Why does a customer support agent cost so much more than the estimate?

Because each step re-sends the entire conversation history, input tokens grow quadratically — N(N+1)/2 instead of N. At this page's defaults that means 31,500 input tokens per task instead of the naive 9,000, and a real bill of $1,474/month against a naive estimate of $1,260 (1.2× with caching on, 2.3× without). Retries that replay history and per-step framework overhead widen it further.

How much does prompt caching save a customer support agent?

Claude Sonnet 5 bills cached input reads at $0.2 per million tokens versus $2 for fresh input. Since re-sent history is the bulk of an agent's input bill, at this page's workload caching cuts the real cost from $2,837 to $1,474 per month — 48% — making it the single biggest lever here. Caveats: cache writes cost extra, entries expire, and roughly half the catalog publishes no cache pricing.

What failure rate should I assume for an agent?

Production agent steps fail more than people expect — malformed tool calls, schema mismatches, timeouts, hallucinated arguments. Without your own telemetry, 5–15% per step is a common range; this page defaults to 8%. At 8% across 6 steps, 61% of tasks complete with zero retries — and every retry replays the accumulated context.

What's the cheapest model for this workload?

At this page's default workload the current floor is Ling-2.6-flash at $6.56/month, followed by Nex-N2-Mini ($16.47) and Llama 3.1 8B Instruct ($22.89) — refreshed daily from live prices. This page's default, Claude Sonnet 5, comes in at $1,474/month here — 225× the floor. Two catches: a cheap model that fails more steps can cost more after retries, and long runs can exceed a small model's context window (the ranking flags and demotes those).

What formula does this calculator use?

Real cost = first-sends (N·S at input price) + history re-sends (S·N(N+1)/2 − N·S, at the cache-read price when caching is on) + framework overhead (per-step token multiplier) + retries (f/(1−f) expected extra attempts per step, replaying context and re-billing generated output) + outputs (N·400 tokens at output price). The naive baseline is simply N·S at input price plus outputs.

Are these model prices current?

Prices sync daily from OpenRouter's public catalog and the page shows its snapshot date. If a sync ever fails, the site keeps serving the last verified snapshot rather than blank or invented numbers. All math runs client-side with tested code.