Every team starting with AI agents asks the same question: "What will this actually cost?"

The answer you get depends on who you ask. Provider pricing pages show per-token prices. Benchmark sites show accuracy scores. But neither tells you what you actually pay per task — or how much of that spend is wasted.

This post closes that gap. We compiled real benchmark data across the six models most teams actually use, measured cost per task across representative workloads, and quantified exactly how much token waste costs on a production fleet.

The results: most teams are overspending by 40–70% — not because they're on the wrong provider, but because they're not measuring what actually matters.

What the Benchmarks Actually Measure

Most cost comparisons stop at per-token pricing. That's the wrong unit of analysis.

A GPT-4o call at $2.50/1M input tokens looks expensive — until you notice that a GPT-4o-mini call at $0.15/1M tokens completes 85% of your tasks at 94% lower cost, with equivalent output quality on most workloads.

The benchmarks below measure three things that actually matter:

Model Performance Benchmarks: MMLU, MGSM, HumanEval

Before measuring cost, measure capability. The table below shows benchmark scores on three standard tests — MMLU (general reasoning), MGSM (math), and HumanEval (code generation) — alongside per-token pricing.

Model Provider MMLU MGSM HumanEval Input Cost Output Cost
GPT-4o-mini OpenAI 82.0% 87.0% 87.2% $0.15/1M $0.60/1M
Claude 3.5 Haiku Anthropic 73.8% 71.7% 75.9% $0.80/1M $4.00/1M
GPT-4o OpenAI 88.0% 76.6% 90.2% $2.50/1M $10.00/1M
Claude 3.5 Sonnet Anthropic 78.5% 72.3% 81.2% $3.00/1M $15.00/1M
Claude 3 Opus Anthropic 88.7% 83.6% 84.1% $15.00/1M $75.00/1M

Sources: OpenAI GPT-4o-mini technical report (2024); cross-referenced against model card data for Claude Haiku 3.5 and GPT-4o. Prices as of April 2026 per provider pricing pages.

The key takeaway: GPT-4o-mini outperforms Claude Haiku on every benchmark at less than 20% of the cost. The capability gap that justified Haiku's premium has largely closed.

For most agent workloads — classification, extraction, simple reasoning, formatting — GPT-4o-mini is the right choice. Reserve Sonnet/Opus for the 10–15% of tasks where benchmark performance actually translates to better output quality.

Cost-Per-Task Benchmarks: Real Workload Analysis

Benchmark scores are directional. What matters is cost per task on your workload. The table below uses a representative agent workload: 500 API calls/agent/day, 800 input tokens + 300 output tokens per call.

Model Cost/Call Daily (1 Agent) Monthly (1 Agent) Monthly (50 Agents)
GPT-4o-mini $0.00126 $0.63 $19 $945
Claude 3.5 Haiku $0.00192 $0.96 $29 $1,440
GPT-4o $0.00310 $1.55 $47 $2,330
Claude 3.5 Sonnet $0.00450 $2.25 $68 $3,375
Claude 3 Opus $0.02400 $12.00 $360 $18,000

Calculation: 500 calls × (800 input × input_price + 300 output × output_price) per day × 30 days.

The 16x spread: A 50-agent fleet running Claude Opus costs $18,000/month. Running GPT-4o-mini for the 70% of calls where it's appropriate, with Sonnet reserved for complex tasks, brings that down to ~$2,400/month. That's a $15,600/month difference from a routing layer change.

The Token Waste Benchmark: Where the Money Actually Goes

Token waste is the hidden cost multiplier in AI agent fleets. Here's how it breaks down:

Context Window Waste

If your agents pass full conversation history on every call, you're re-sending tokens you've already paid for. A 50-message conversation where 2,000 tokens of history is re-sent on each call wastes 98,000 tokens per session.

Approach Input Token Waste Monthly Cost Impact (50 agents)
No context management 30–45% redundant ~$1,800 overspend
Aggressive truncation (>50% cut) 15–20% useful context lost Quality degradation
Semantic summary (smart compression) 8–12% redundant ~$480 overspend
Prompt caching (stable prefix) 60–90% cache hit ~$900–1,600 saved

Sources: Anthropic prompt caching documentation (2026), OpenAI token optimization data (2026), Obvious Works production case study (Feb 2026).

Verbose Output Padding

Models default to comprehensive responses. If your agent uses 40% of what the model returns, you're paying for 60% that gets discarded.

Teams that enforce max_tokens limits and use structured output schemas see 15–35% reduction in output token spend. A 2,000-token response where only 800 tokens are used costs $0.012 per call in wasted output tokens — at 50,000 calls/day, that's $600/day in discarded output.

Optimization ROI: What Each Strategy Actually Saves

Not all optimizations are equal. Here's the benchmark data on savings per strategy, ranked by typical impact:

Strategy Typical Savings Implementation Effort Best For
Model routing (tiered) 40–65% Medium High-volume fleets
Prompt caching 20–50% on cached portions Low Long system prompts
Batch API (async workloads) 50% on qualifying requests Low Non-real-time tasks
Semantic caching (tool calls) 50–91% Medium File reads, DB queries
Token-efficient tools (Claude) 14–70% on output tokens Low Agentic workflows
Context compression 30–50% on context tokens Medium Long conversations
Output length control 10–30% on output tokens Low Formatting tasks

Combined optimization potential: Teams implementing all strategies see 70–80% total reduction in API spend.

Sources: Obvious Works token optimization case study (Feb 2026), Datagrid enterprise cost management analysis (Aug 2025), Reddit r/AI_Agents production case study (May 2025).

Fleet Cost Projections: 10, 50, and 100 Agents

Here's where the math gets concrete. All projections assume 500 calls/agent/day, 800 input + 300 output tokens per call.

Scenario A: No Optimization (all GPT-4o)

Fleet Size Monthly Cost Annual Cost
10 agents $4,680 $56,160
50 agents $23,400 $280,800
100 agents $46,800 $561,600

Scenario B: Basic Model Routing (70% GPT-4o-mini, 30% GPT-4o)

Fleet Size Monthly Cost Annual Cost Savings vs. Unoptimized
10 agents $1,584 $19,008 $37,152
50 agents $7,920 $95,040 $185,760
100 agents $15,840 $190,080 $371,520

Scenario C: Full Optimization (routing + caching + batch)

Fleet Size Monthly Cost Annual Cost Savings vs. Unoptimized
10 agents $792 $9,504 $46,656
50 agents $3,960 $47,520 $233,280
100 agents $7,920 $95,040 $466,560
The ROI case

A 50-agent fleet spending $23,400/month unoptimized can reach $3,960/month with full optimization — $233,280/year in savings. The optimization investment (routing layer + caching implementation) pays back in the first week.

The Decision Framework: Which Model for Which Task

Not every task needs a frontier model. Here's the routing logic we see work in production:

Use GPT-4o-mini for:

Use Claude 3.5 Sonnet for:

Use GPT-4o or Claude 3.5 Sonnet for:

Use Claude 3 Opus for:

The 10-minute test

Run your last 100 production tasks through GPT-4o-mini and your current model. If output quality is acceptable for 85%+, route those tasks to mini — and you've found your savings.

What This Means for Your Fleet

Three numbers to take away:

The teams that get surprised by their API bills aren't on the wrong provider. They're not measuring token waste, not routing by task complexity, and not using the optimization levers that have been available for over a year.

How to Measure Your Actual Spend

The benchmarks above are representative. Your actual numbers depend on your workload mix, context patterns, and optimization state.

SpendPilot connects to your OpenAI and Anthropic keys and shows you real-time cost breakdowns by model, agent, and time period — so you can see exactly where your fleet's spend falls relative to these benchmarks.

Connect your keys free →

For a deeper dive into the optimization strategies driving these numbers, see our guide to 7 AI agent cost optimization strategies that actually work.

See how your current spend compares to these benchmarks — the AI API cost calculator lets you model your actual fleet costs across all six major models.

Want to understand the full pricing picture before optimizing? The Real Cost of Running AI Agents in 2026 covers per-token pricing, hidden multipliers, and why most teams overspend by 3–5x.