CalcSays
GPT-5.5 + OPENAI AGENTS SDK

GPT-5.5 + OpenAI Agents SDK Agent Cost

Building with OpenAI Agents SDK on GPT-5.5? Framework scaffolding rides on every step, context accumulates quadratically, and retries replay it all. This page prices that combination honestly — caching on by default.

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.05 tokens/step — Lean handoff model (Swarm's successor); published comparisons put it near LangGraph on tokens. Our estimate, not a vendor benchmark.

Prompt cachingre-sent history billed at $0.5/M instead of $5/M

02 Naive estimate vs real cost

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

Naive calculator
$7,350
steps × tokens, linear
Real cost
$10,096
accumulation + framework + retries

Your real bill is 1.4× the naive estimate

Without prompt caching this would be $28,700 (3.9×) — caching is your single biggest lever.

03 Where the money goes

Naive linear baseyour own steps × tokens, no overhead$7,350
Context accumulationignored by othershistory re-read each step at $0.5/M+$1,688
Framework overheadOpenAI Agents SDK scaffolding ≈ ×1.05 tokens/step (our estimate)+$272
Retry replay & re-runsonly 28% of tasks finish with zero retries+$786
Real monthly cost$10,096
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$20.23/mo
2. Nex-N2-MiniNex AGI$43.66/mo
3. Granite 4.0 MicroIBM$98.94/mo
4. Llama 3.1 8B InstructMeta$103/mo
5. Mistral NemoMistral$103/mo
6. Ministral 3 3B 2512Mistral$134/mo
7. GPT-5 NanoOpenAI$135/mo
8. GLM 4.7 FlashZ.ai$143/mo
9. DeepSeek V4 FlashDeepSeek$145/mo
10. Llama 3.2 1B InstructMeta$160/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 — 10 steps of 2,500 tokens — looks like 25,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 2,500 tokens, step 2 sends 5,000, step 10 sends 25,000 — the total is tokens × N(N+1)/2, which is 137,500 input tokens for the same task: 5.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. GPT-5.5 bills cached reads at $0.5/M against $5/M for fresh input — at this page's defaults that cuts the real bill from $28,700 to $10,096 per month (65% 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 12% per-step failure rate, only 28% of 10-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 OpenAI Agents SDK (×1.05 per-step token overhead, our estimate).

Worked example at this page's defaults — GPT-5.5 at $5/$30 per million tokens, 10 steps × 2,500 tokens, 12% failures, 30,000 tasks a month, 400 output tokens per step: the naive estimate says $7,350/month; the real number is $10,096/month (1.4×). 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 OpenAI Agents SDK agent on GPT-5.5 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 137,500 input tokens per task instead of the naive 25,000, and a real bill of $10,096/month against a naive estimate of $7,350 (1.4× with caching on, 3.9× without). Retries that replay history and per-step framework overhead widen it further.

How much does prompt caching save a OpenAI Agents SDK agent on GPT-5.5?

GPT-5.5 bills cached input reads at $0.5 per million tokens versus $5 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 $28,700 to $10,096 per month — 65% — 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 12%. At 12% across 10 steps, 28% 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 $20.23/month, followed by Nex-N2-Mini ($43.66) and Granite 4.0 Micro ($98.94) — refreshed daily from live prices. This page's default, GPT-5.5, comes in at $10,096/month here — 499× 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.