CODING AGENT COST · CALCULATOR
Cheapest Claude API for Claude Code and Cursor
The cheapest Claude API for Claude Code and Cursor is one that bills the same models below list price: Straitly bills Claude, GPT, Gemini and Grok about 40% below list, with no fee on top.[1] At list price, Claude Code averages about $13 per developer per active day.[2]
Last updated . Every number links to its source.
What does one Claude Code session cost on each model?
Anthropic's sample session used 996.5K tokens and cost $0.55 on Claude Sonnet 4.6. Claude Code resends the conversation with every request, so 94% of those tokens were cache reads.[2]
- Cache reads 94.3%
- Cache writes 5.0%
- Output 0.5%
- Uncached input 0.1%
“With prompt caching, Claude Code re-reads that history at the cached token rate, so a one-line question in a session that has been open all day still draws usage for the whole conversation.”
| MODEL | PER SESSION | PER MONTH | SAVING |
|---|---|---|---|
| Claude Fable 5.1read $0.25 / $0.15, out $50.00 / $30.00 | Per session$1.14 / $0.682 | Per month$239 / $143 | Saving40% |
| Claude Opus 5.5read $0.20 / $0.12, out $20.00 / $12.00 | Per session$0.549 / $0.329 | Per month$115 / $69.15 | Saving40% |
| Claude Sonnet 5.5read $0.10 / $0.12, out $10.00 / $6.00 | Per session$0.274 / $0.221 | Per month$57.62 / $46.42 | Saving19% |
| GPT-6.1 Solread $0.10 / $0.060, out $10.00 / $6.00 | Per session$0.274 / $0.165 | Per month$57.62 / $34.57 | Saving40% |
| Gemini 4 Argonread $0.10 / $0.060, out $10.00 / $6.00 | Per session$0.249 / $0.15 | Per month$52.37 / $31.42 | Saving40% |
| DeepSeek V4.1 Flashread $0.0030 / $0.0018, out $0.60 / $0.36 | Per session$0.014 / $0.008 | Per month$2.87 / $1.72 | Saving40% |
Official / Straitly. A month is 210 sessions.[14][16][17][18][23]
How the $0.55 adds up, and cost per million agent tokens
(1.2K × $3.00 + 5.3K × $15.00 + 940K × $0.30 + 50K × $3.75) ÷ 1M = $0.553
Sonnet 4.6 list price per million: $3.00 input, $15.00 output, $0.30 cache read, $3.75 cache write. Cache hit rate on input: 94.8%.[2][14] A month is 10 sessions a day for 21 working days. Cache writes are priced at the short-lived rate, 1.25x input at Anthropic and OpenAI; Google and DeepSeek charge no write fee. With no cache, Claude Opus 5.5 costs $4.08 per million agent tokens instead of $0.54, so caching cuts it 87%.
Cost per million agent tokens
Official list price at a 95% cache hit rate and 0.5% output, close to Anthropic's sample session.
- GPT-6 AstraStraitly $1.09$1.82
- Claude Fable 5.1Straitly $0.66$1.11
- Claude Opus 5.5Straitly $0.32$0.54
- Claude Sonnet 5.5Straitly $0.22$0.27
- GPT-6.1 SolStraitly $0.16$0.27
- Gemini 4 ArgonStraitly $0.15$0.24
- GPT-6.1 TerraStraitly $0.081$0.13
- GPT-6 LunaStraitly $0.011$0.018
- DeepSeek V4.1 FlashStraitly $0.0080$0.013
Bar lengths use a log scale so small and large values fit on one chart.
[14] Anthropic, Checked 9 November 2026; [16] OpenAI, Checked 9 November 2026; [17] Google, Checked 9 November 2026; [18] DeepSeek API docs, Checked 9 November 2026; [23] Straitly, Snapshot 9 November 2026
“Thinking tokens are billed as output tokens, and the default budget can be tens of thousands of tokens per request depending on the model.”
How much does Claude Code cost per developer?
Agents resend their whole context on every turn, so they use many times the tokens of chat.
$13
Average Claude Code cost per developer per active day across enterprise deployments, or $150-250 per developer per month.[2] Claude Code docs, Checked 9 November 2026
90%
Share of Claude Code users whose costs stay below $30 per active day.[2] Claude Code docs, Checked 9 November 2026
“agentic tasks are uniquely expensive, consuming 1000x more tokens than code reasoning and code chat, with input tokens rather than output tokens driving the overall cost”
How many more tokens agents use
Each against its own baseline.
- Anthropic's agents vs chat4x
- Agent team in plan mode vs one session~7x
- Multi-agent systems vs chat15x
- Same task, most vs fewest tokens across runs30x
- Agentic coding vs code chat1000x
Bar lengths use a log scale so small and large values fit on one chart.
[3] Anthropic Engineering, 13 Jun 2025; [2] Claude Code docs, Checked 9 November 2026; [4] Bai et al., 24 Apr 2026, revised 2 Oct 2026
All 11 more stats in this section
| STAT | WHAT IT MEANS | SOURCE |
|---|---|---|
| $0.55 | Total cost in Anthropic's sample /usage readout: 1.2K input, 5.3K output, 940K cache read and 50K cache write tokens on Claude Sonnet 4.6. | [2] Claude Code docs, Checked 9 November 2026 |
| 94% | Share of all tokens in that sample session that were cache reads. Claude Code resends the full conversation with every request. | [2] Claude Code docs, Checked 9 November 2026 |
| ~7x | Extra tokens agent teams use against a standard session when teammates run in plan mode, because each teammate keeps its own context window. | [2] Claude Code docs, Checked 9 November 2026 |
| 10Ks | Default extended-thinking budget per request on some models: tens of thousands of tokens, billed as output. | [2] Claude Code docs, Checked 9 November 2026 |
| 4x / 15x | Tokens Anthropic's agents use against chat, and multi-agent systems against chat, in Anthropic's own data. | [3] Anthropic Engineering, 13 Jun 2025 |
| 1000x | More tokens consumed by agentic coding tasks than by code reasoning and code chat, across eight frontier models on SWE-bench Verified. Input tokens drive the cost. | [4] Bai et al., 24 Apr 2026, revised 2 Oct 2026 |
| 30x | Spread in total tokens between runs of the same model on the same task. Higher token use did not buy higher accuracy. | [4] Bai et al., 24 Apr 2026, revised 2 Oct 2026 |
| 1.5M+ | Extra tokens per task Kimi-K2 and Claude Sonnet 4.5 used on average against GPT-5 on the same tasks. | [4] Bai et al., 24 Apr 2026, revised 2 Oct 2026 |
| 0.39 | Best correlation between a model's own prediction of its token use and the real figure. Models systematically underestimate. | [4] Bai et al., 24 Apr 2026, revised 2 Oct 2026 |
| 79-98% | Coding tasks affected by three wasteful habits (re-reading code, rewriting similar scripts, re-running tests), worth up to 22.75% of task cost. | [5] Hu et al., 25 Sep 2026, revised 12 Oct 2026 |
| Quadratic | How token use grows with each model call, because the whole conversation history is passed back in as input every time. | [7] Epoch AI, Checked 9 November 2026 |
What does one coding task cost?
Vals AI ran each model on SWE-bench Verified, 500 real GitHub issues. Models within 2 points of each other can differ 10x or more in cost.[6]
$0.47
Median cost per task across 80 runs, from $0.01 to $4.00.[6] Vals AI, Results as of 1 Sep 2026
1.34M
Median tokens per task across 78 runs, from 81.3K to 5.92M.[6] Vals AI, Results as of 1 Sep 2026
2.8x
gpt-5 at high reasoning effort against low on Aider's benchmark, for 6.7 more points.[8] Aider, Runs dated Dec 2024 to Oct 2025
| MODEL | SCORE | COST / TASK | TOKENS / TASK | ON STRAITLY |
|---|---|---|---|---|
| Claude Opus 5 | Score97.0% | Cost$1.29 | Tokens1.09M | Straitly$0.774 |
| DeepSeek V4 Pro 0813 | Score96.4% | Cost$0.10 | Tokens764K | Straitly- |
| GPT-5.6 Sol | Score96.2% | Cost$1.15 | Tokens512.4K | Straitly$0.489 |
| Grok 4.6 | Score95.6% | Cost$0.78 | Tokens969K | Straitly- |
| GPT-5.6 Terra | Score95.4% | Cost$0.40 | Tokens618.9K | Straitly- |
| GLM 5.3 | Score95.4% | Cost$0.34 | Tokens958.2K | Straitly$0.091-$0.107 |
| Claude Fable 5 | Score95.0% | Cost$2.05 | Tokens722.6K | Straitly$1.23 |
| Kimi K3 | Score93.4% | Cost$0.76 | Tokens884K | Straitly$0.388 |
| GPT-5.6 Luna | Score93.0% | Cost$0.04 | Tokens781K | Straitly- |
| GLM 5.3 Flash | Score92.0% | Cost$0.02 | Tokens792.8K | Straitly$0.005 |
| Gemini 3.8 Flash | Score80.0% | Cost$2.19 | Tokens5.92M | Straitly$1.31 |
| Claude Sonnet 5 | Score79.6% | Cost$1.49 | Tokens2.94M | Straitly$0.894 |
Show all 12 rowsShow the first 6 rows
Mini-SWE-agent harness, sorted by score. [6] Vals AI, Results as of 1 Sep 2026
Aider effort costs, and how to read the task table
- On Straitly (est.) = Vals cost × (Straitly price ÷ official price). It is a range across the input, output and cache-read ratios, because Vals does not publish the token split. Straitly prices are from the catalog snapshot of 9 November 2026; a dash means the model is not in the index.[23]
- Inside the vendors' own agents: Claude Opus 4.8 in Claude Code scored 85.8% at $0.67 a task; GPT 5.5 in Codex scored 76.4% at $0.65 a task; GPT 5.5 in Factory scored 76.2% at $1.13 a task.[6]
- Cost bars use a log scale so $0.02 and $2.19 fit in one column. Token bars are linear.
- Aider publishes the dollar cost of a full run of its polyglot benchmark, 225coding exercises, at the model's API price on the run date. Thinking tokens are billed as output.[8]
| MODEL | PASS | RUN COST | PER EXERCISE |
|---|---|---|---|
| gpt-5 (low effort)25 Aug 2025 | 81.3% | $10.37 | $0.046$10.37 ÷ 225 |
| gpt-5 (medium effort)25 Aug 2025 | 86.7% | $17.69 | $0.079$17.69 ÷ 225 |
| gpt-5 (high effort)23 Aug 2025 | 88.0% | $29.08 | $0.129$29.08 ÷ 225 |
| o3-pro (high)28 Jun 2025 | 84.9% | $146 | $0.65$146 ÷ 225 |
| claude-opus-4 (32k thinking)25 May 2025 | 72.0% | $65.75 | $0.292$65.75 ÷ 225 |
| DeepSeek-V3.2-Exp (Reasoner)3 Oct 2025 | 74.2% | $1.30 | $0.006$1.30 ÷ 225 |
| DeepSeek-V3.2-Exp (Chat)3 Oct 2025 | 70.2% | $0.88 | $0.004$0.88 ÷ 225 |
| o1 (high)21 Dec 2024 | 61.7% | $187 | $0.833$187 ÷ 224 |
What would your coding agent cost?
Defaults follow Anthropic's sample session. Straitly prices as of 9 November 2026.
About the models in the calculator
- Claude Haiku 5.5 is left out because its price changes above 100K-token prompts, which agent sessions often pass.
- Gemini 4 Argon's input price doubles on 1 December 2026.
- DeepSeek is shown at its off-peak rate; peak rates are double.
- Input not served from cache is billed as a cache write, because agents write new context to the cache. Thinking tokens count as output. List prices for standard requests; no batch or fast mode.
Is Claude Max or ChatGPT Pro cheaper than the API?
For heavy users who stay inside a plan's limits, often yes; below break-even, paying per token costs less. Cursor bills Claude, GPT and Gemini at API list price on every plan.[11]
| PLAN | PRICE | WHAT IT INCLUDES |
|---|---|---|
| Claude Pro, $20/mo ($17 billed yearly) | $20/mo ($17 billed yearly) | Usage limits every 5 hours and every week |
| Claude Max, $100/mo | $100/mo | 5x Pro usage, plus $100 a month in API credits |
| Claude Ultra, $200/mo | $200/mo | 10x Pro usage a week, plus $200 a month in API credits |
| ChatGPT Plus, $20/mo | $20/mo | 15-160 local GPT-6.1 Sol messages per 5 hours (estimate) |
| ChatGPT Pro, $100, $200 or $500/mo | $100, $200 or $500/mo | No 5-hour limit; weekly limits may apply |
| Cursor Premium, $30/mo | $30/mo | 4x Plus usage of Cursor's own models (Grok, Composer); Claude, GPT and Gemini at API list price |
| Cursor Super, $100/mo | $100/mo | 15x Plus usage of Cursor's own models; third-party models at API list price |
| Cursor Ultra, $200/mo | $200/mo | 50x Plus usage of Cursor's own models; third-party models at API list price |
Show all 8 rowsShow the first 6 rows
Each vendor's pricing page. [9] Anthropic, Checked 9 November 2026; [10] OpenAI, Checked 9 November 2026; [11] Cursor docs, Checked 9 November 2026
How many tokens each plan price is worth, by model
Plan price ÷ cost per million agent tokens (95% cache hits, 0.5% output). Each cell: monthly tokens at official list / on Straitly, then the 996.5K-token sample sessions a day over 21working days that equals. Use more than this inside the plan's limits and the plan wins; use less and paying per token wins.
| MODEL | $20 PLAN | $100 PLAN | $200 PLAN |
|---|---|---|---|
| Claude Opus 5.5$0.54 / $0.32 per 1M (official / Straitly) | $20 plan37M / 62M~2 / 3 sessions a day | $100 plan186M / 310M~9 / 15 sessions a day | $200 plan372M / 620M~18 / 30 sessions a day |
| Claude Sonnet 5.5$0.27 / $0.22 per 1M (official / Straitly) | $20 plan74M / 92M~4 / 4 sessions a day | $100 plan372M / 459M~18 / 22 sessions a day | $200 plan744M / 917M~36 / 44 sessions a day |
| GPT-6.1 Sol$0.27 / $0.16 per 1M (official / Straitly) | $20 plan74M / 124M~4 / 6 sessions a day | $100 plan372M / 620M~18 / 30 sessions a day | $200 plan744M / 1,240M~36 / 59 sessions a day |
| Gemini 4 Argon$0.24 / $0.15 per 1M (official / Straitly) | $20 plan82M / 137M~4 / 7 sessions a day | $100 plan410M / 683M~20 / 33 sessions a day | $200 plan820M / 1,366M~39 / 65 sessions a day |
- Plans cap usage per 5 hours or per week, so the token figure is a ceiling on value, not a promise. OpenAI says API token prices are separate from subscription usage and should not be used to estimate included tasks.[10]
- A lower per-token price applies to usage you pay per token. Cursor's own models and Tab completion stay billed by Cursor.[12]
- Cline is free and open source and bills only inference, through its own credits or your API key. Aider is also open source and runs on your own key.[13]
How do you cut Claude Code and Cursor costs?
Caching and a lower token price do the most, and they stack. See caching savings, and the price index.
“These results show that token reduction is not a reliable proxy for cost reduction in tool-heavy coding agents.”
| # | LEVER | EFFECT |
|---|---|---|
| 01 | Keep the cache warm | Cache reads cost 0.05x-0.1x input. At 95% hits Opus 5.5 falls from $4.08 to $0.54 per million agent tokens (87% less).[15] Anthropic docs, Checked 9 November 2026 |
| 02 | Pay less per token | Claude, GPT, Gemini and Grok about 40% below list on Straitly (median 40% across 102 models). Stacks with every lever.[22] Straitly, Snapshot 9 November 2026 |
| 03 | Clear or compact context between tasks | Claude Code re-reads the whole conversation each turn, so a long-open session costs more per question.[2] Claude Code docs, Checked 9 November 2026 |
| 04 | Lower reasoning effort for routine work | Thinking is billed as output. On Aider, gpt-5 high cost 2.8x low for 6.7 more points.[8] Aider, Runs dated Dec 2024 to Oct 2025 |
| 05 | Pick the model per task | On SWE-bench Verified, models within 2 points differ 10x or more in cost per task.[6] Vals AI, Results as of 1 Sep 2026 |
5 more levers
| # | LEVER | EFFECT |
|---|---|---|
| 06 | Keep agent teams small | Teams use about 7x the tokens of one session in plan mode. Each teammate is billed until it exits.[2] Claude Code docs, Checked 9 November 2026 |
| 07 | Preprocess tool output with hooks | Filtering a 10,000-line log to error lines cuts that context from tens of thousands of tokens to hundreds.[2] Claude Code docs, Checked 9 November 2026 |
| 08 | Write project skills for repeated work | Developer-written skills cut cost by up to 41.73% in a 10K-trajectory study.[5] Hu et al., 25 Sep 2026, revised 12 Oct 2026 |
| 09 | Trim wasted context, carefully | Removing stale trajectory content cut total cost 21-36%. Aggressive tool-output compression raised billed cost 6.8%.[19] Xiao et al., 28 Sep 2025 |
| 10 | Add an external cost controller | 18-31% lower token cost across Claude Code, Codex and GitHub Copilot CLI with comparable task success.[21] Li et al., 15 Oct 2026 |
What do people ask about coding agent cost?
What is the cheapest Claude API for Claude Code and Cursor?
One that bills the same Claude models below Anthropic's list price. Straitly bills Claude, GPT, Gemini and Grok about 40% below list with no fee on top, so Claude Opus 5.5 at a 95% cache hit rate costs about $0.32 per million agent tokens instead of $0.54.
How much does Claude Code cost on API tokens?
Anthropic reports an average of about $13 per developer per active day across enterprise deployments, or $150-250 per developer per month, with 90% of users below $30 per active day. A single sample session in Anthropic's docs used about 1 million tokens and cost $0.55 on Claude Sonnet 4.6.
Is a Claude Max or ChatGPT Pro plan cheaper than the API?
For heavy users, often yes. At Claude Opus 5.5 list price, a coding agent session with a 95% cache hit rate costs about $0.54 per million tokens, so a $200 plan equals about 372M tokens a month. If you use more than that and stay inside the plan's limits, the plan is cheaper. Below it, paying per token costs less.
How do I reduce coding agent costs?
Keep the prompt cache warm (at a 95% hit rate it cuts Claude Opus 5.5 cost per agent token by 87%), pay a lower price per token, clear or compact context between tasks, lower reasoning effort for routine work, choose a cheaper model where it scores close enough, keep agent teams small and filter tool output before the model sees it.
Does Straitly work with Claude Code, Cursor and Codex?
Yes. Each tool accepts a custom base URL and API key, and Straitly bills a median 40% below official list price. Usage inside a flat-rate plan, and Cursor's own models, stay billed by the tool's vendor.
How do you use a cheaper Claude API in Claude Code, Cursor and Codex?
Point the tool at Straitly's base URL with your key. Zero data retention is on by default for every account and key: prompts and completions are never written to disk or logs and never used for training (data retention).
Sources and method
How these numbers were checked
Every figure was read from the source listed on 9 November 2026. Official prices are list prices in USD per million tokens for standard requests. Straitly prices come from the catalog snapshot of 9 November 2026. Per-session and per-month figures are worked examples from published token counts, not measurements of anyone's usage. Benchmark costs are at the API price on each run date.
- [1]Straitly pricing Straitly, Checked 9 November 2026
- [2]Manage costs effectively Claude Code docs, Checked 9 November 2026
- [3]How we built our multi-agent research system Anthropic Engineering, 13 Jun 2025
- [4]How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Tasks Bai et al., arXiv 2604.22750, 24 Apr 2026, revised 2 Oct 2026
- [5]Analyzing and Mitigating Cost-Inefficient Behaviors in Coding Agents Hu et al., arXiv 2609.30725, 25 Sep 2026, revised 12 Oct 2026
- [6]SWE-bench Verified leaderboard (archived results) Vals AI, Results as of 1 Sep 2026
- [7]SWE-bench Verified: methodology Epoch AI, Checked 9 November 2026
- [8]Aider LLM leaderboards (polyglot benchmark) Aider, Runs dated Dec 2024 to Oct 2025
- [9]Plans and pricing Anthropic (Claude), Checked 9 November 2026
- [10]Codex pricing and usage limits OpenAI, Checked 9 November 2026
- [11]Models and pricing Cursor docs, Checked 9 November 2026
- [12]Bring your own API key Cursor docs, Checked 9 November 2026
- [13]Cline pricing Cline, Checked 9 November 2026
- [14]Claude API pricing Anthropic, Checked 9 November 2026
- [15]Prompt caching Anthropic docs, Checked 9 November 2026
- [16]API pricing OpenAI, Checked 9 November 2026
- [17]Gemini Developer API pricing Google, Checked 9 November 2026
- [18]Models and pricing DeepSeek API docs, Checked 9 November 2026
- [19]Reducing Cost of LLM Agents with Trajectory Reduction Xiao et al., arXiv 2509.23586, 28 Sep 2025
- [20]Token Reduction Is Not Cost Reduction Weinberger and Hozez, arXiv 2607.12161, 13 Jul 2026
- [21]TokenEconomizer: Experience-Driven Black-Box Cost Control for Coding Agents Li et al., arXiv 2610.22732, 15 Oct 2026
- [22]Straitly price snapshot vs official list and OpenRouter (164 models) Straitly, Snapshot 9 November 2026
- [23]Straitly live model catalog Straitly, Snapshot 9 November 2026