Coding agent monthly cost: Claude API vs coding plans
What should you budget per month?
For the light profile below, running a coding agent on Claude Sonnet 5.5 costs 3 × $2.00 + 0.3 × $10.00 per month before caching and additional charges. Medium usage multiplies that estimate by 10; heavy usage multiplies it by 100. A subscription costs less only when its total monthly charge falls below your API bill and its limits cover the work you need.
These are explicit budgeting scenarios, not measurements of typical developer usage. Open each model link for its recorded price source and date. Take each candidate plan's price and date from its dated entry in the coding-plan comparison, then use its monthly total as P in the break-even formula below.
Count every request in the agent loop
An agent may send instructions, repository excerpts, conversation history and tool results across successive requests. Model-generated tool calls contribute output; tool results included in a subsequent request contribute input. Count the full billed conversation across requests, including retries.
Use the token counter to estimate a sample instruction, source file and test log separately. Then inspect what the agent actually resends. For example, an assumed 10,000-token prefix sent in 10 requests represents 100,000 input tokens before distinguishing ordinary input from cache reads. Those numbers illustrate accounting, not tokenizer measurements.
Anthropic's pricing documentation says Claude 4.7 and later models use a newer tokenizer that produces approximately 30% more tokens for the same text; the exact increase depends on the content and workload shape. An estimate made with another tokenizer can therefore undercount Claude usage. Calibrate estimates against API usage records rather than applying a fixed correction to every workload.
A model's context window limits a request; it does not represent a monthly allowance or establish which pricing tier applies. Record each request's prompt size as well as monthly totals.
For the following scenarios, assume 30 active days, with output equal to one tenth of input:
| Assumed profile | Input tokens per day | Output tokens per day | Monthly input, million tokens | Monthly output, million tokens |
|---|---|---|---|---|
| Light | 100,000 | 10,000 | 3 | 0.3 |
| Medium | 1,000,000 | 100,000 | 30 | 3 |
| Heavy | 10,000,000 | 1,000,000 | 300 | 30 |
Daily totals can span many requests. Substitute your actual active days and measured output ratio before committing a budget.
Claude API monthly cost without caching
The following table provides input, output, cache-read rates and context limits. Rates are per million tokens; model links provide source and date details.
The listed Claude Haiku 5.5 rates apply only to prompts up to 100,000 tokens. Anthropic's pricing page lists higher input, output, cache-write and cache-read rates for prompts over 100,000 tokens. Its larger context window does not extend the low-price tier. Check per-request prompt sizes in API usage records before using any Haiku estimate below.
| Model | Input | Output | Cache read | Context |
|---|---|---|---|---|
| Claude Opus 5.5 | $4.00 | $20.00 | $0.20 | 1M |
| Claude Sonnet 5.5 | $2.00 | $10.00 | $0.10 | 1M |
| Claude Haiku 5.5 | $0.10 | $0.50 | $0.01 | 1M |
USD per 1M tokens
Here are the monthly estimates with all input charged at the ordinary input rate:
| Model | Light monthly estimate | Medium monthly estimate | Heavy monthly estimate |
|---|---|---|---|
| Claude Opus 5.5 | 3 × $4.00 + 0.3 × $20.00 | 30 × $4.00 + 3 × $20.00 | 300 × $4.00 + 30 × $20.00 |
| Claude Sonnet 5.5 | 3 × $2.00 + 0.3 × $10.00 | 30 × $2.00 + 3 × $10.00 | 300 × $2.00 + 30 × $10.00 |
| Claude Haiku 5.5 — only prompts up to 100,000 tokens; larger prompts use higher rates | 3 × $0.10 + 0.3 × $0.50 | 30 × $0.10 + 3 × $0.50 | 300 × $0.10 + 30 × $0.50 |
For Haiku, all three columns require checking individual prompt sizes. If requests cross the threshold, separate usage by tier and apply the corresponding input and output rates from Anthropic's pricing page.
These estimates exclude taxes, execution infrastructure and separately billed tools. Deployment also changes the bill: Anthropic lists a 10% premium over global endpoints for regional and multi-region endpoints on partner-operated clouds for Claude 4.5 models and later, subject to platform and model availability. The first-party Claude API is global by default; its data-residency options have separate pricing. Check the cloud platform and data-residency sections of Anthropic's pricing page for your deployment.
How prompt caching changes the estimate
Assume, for a separate scenario, that 80% of input tokens are recorded cache reads and 20% are ordinary input. This is a chosen hit rate, not a prediction. Output stays unchanged.
| Model | Light monthly input-read and output subtotal |
|---|---|
| Claude Opus 5.5 | 0.6 × $4.00 + 2.4 × $0.20 + 0.3 × $20.00 |
| Claude Sonnet 5.5 | 0.6 × $2.00 + 2.4 × $0.10 + 0.3 × $10.00 |
| Claude Haiku 5.5 — only prompts up to 100,000 tokens; larger prompts use higher rates | 0.6 × $0.10 + 2.4 × $0.01 + 0.3 × $0.50 |
For medium usage, multiply each subtotal by 10. For heavy usage, multiply it by 100. This preserves the same input/output ratio and assumed cache-read share across all profiles.
Before using the Haiku row, check full per-request prompt sizes in usage records, not just the uncached portion. The listed low rates apply only to prompts up to 100,000 tokens; prompts over that threshold have higher input, output, cache-write and cache-read rates under Anthropic's pricing. An assumed 80% cache-read share does not remove that condition.
These are subtotals, not complete caching bills. Anthropic distinguishes cache creation from cache reads. Add cache-write charges separately, using the applicable cache duration and prompt-size tier. If your measured input total includes cache creation, separate those tokens before applying this worksheet so they are not counted twice. Repeated text alone does not establish a billable cache hit.
Compare Claude Code, Codex, Cursor and Copilot plans
Open the coding-plan comparison alongside your API estimate. For each candidate tier, record its price, billing cadence, source date, included usage and overage terms. Use the following worksheet to check whether the plan covers your workload.
| Product | Monthly price and date | Questions to resolve for each candidate tier |
|---|---|---|
| Claude Code | Read the dated plan entry | Does the tier include the required Claude model and enough agent usage? Which billing route will your session use? |
| Codex | Read the dated plan entry | Does the tier include the required Codex access? How are additional usage and limits handled? |
| Cursor | Read the dated plan entry | What agent usage is included? How does the selected model affect the allowance and additional charges? |
| GitHub Copilot | Read the dated plan entry | Does the tier include the required agent features and model access? What usage is metered separately? |
A monthly subscription fee is not evidence of unlimited usage. Also distinguish a monthly payment from an annual commitment displayed as a monthly equivalent. For teams, compare the required seat count. Take the price and date from the dated plan entry and plug the applicable monthly total into P below.
Calculate the daily break-even volume
Let I, O and R be the model's applicable input, output and cache-read rates per million tokens. Let P be the candidate plan's monthly total for a workload it fully covers, expressed in the same currency as the API rates.
For the assumed output/input ratio of 0.1 and 30 active days, the API token subtotal is:
Monthly API subtotal = 30 × daily input tokens ÷ 1,000,000 × (I + 0.1 × O).
The daily input threshold at which that subtotal equals P is:
Daily input threshold = 1,000,000 × P ÷ [30 × (I + 0.1 × O)].
With the assumed 80% cache-read share, replace the denominator's rate expression with 0.2 × I + 0.8 × R + 0.1 × O. Total daily input plus output at either threshold is 1.1 times the daily input threshold.
These formulas assume the chosen rates apply to all modeled requests. For Haiku usage spanning both prompt-size tiers, calculate each tier's subtotal separately and add them before comparing with P. For usage spanning other pricing conditions, such as peak and off-peak hours, separate those portions too.
Above the threshold, a fully covering subscription costs less than the modeled API subtotal. Below it, the modeled API subtotal costs less. Cache-write charges, plan overages and other expenses require a comparison of complete totals; a usage cap may make the plan unsuitable regardless of this arithmetic.
Use the API cost calculator for the token estimate and retain the dated plan entry with your budget. Do not assume a subscription replaces API credentials for an independently hosted agent.
Apply the same profiles to other APIs
For alternatives, compare DeepSeek V4 Pro and GLM-5.3 using the same assumed token volumes.
| Model | Input | Output | Cache read | Context |
|---|---|---|---|---|
| DeepSeek V4 Pro | $1.32 | $3.96 | $0.044 | 1.05M |
| GLM-5.3 | $1.40 | $4.40 | $0.26 | 1M |
USD per 1M tokens
The DeepSeek V4 Pro row uses peak-hour rates. DeepSeek's pricing page says off-peak rates are half of peak rates, so agents running mostly off-peak would pay less than the listed estimates for the same usage. Peak hours are 01:00–04:00 and 06:00–10:00 UTC, Monday through Friday, excluding Chinese public holidays; all other hours, including weekends and Chinese public holidays in full, are off-peak.
| Model | Light monthly estimate without caching | Light monthly subtotal with assumed 80% cache reads |
|---|---|---|
| DeepSeek V4 Pro — peak hours | 3 × $1.32 + 0.3 × $3.96 | 0.6 × $1.32 + 2.4 × $0.044 + 0.3 × $3.96 |
| GLM-5.3 | 3 × $1.40 + 0.3 × $4.40 | 0.6 × $1.40 + 2.4 × $0.26 + 0.3 × $4.40 |
Multiply either column by 10 for medium usage and by 100 for heavy usage. Check each provider's caching eligibility and additional charges rather than transferring Anthropic's cache-write rules to another API.
For an OpenAI comparison, the OpenAI pricing page lists gpt-6.1-sol. Use that exact model's rates for your selected processing mode, including its corresponding cached-input rate, in the same formulas. Do not substitute rates from a differently named model. The page also lists a 10% uplift for regional processing endpoints for models released on or after March 5, 2026, and a 10% uplift for FedRAMP endpoints.
Equal token volumes make a budgeting comparison possible; they do not establish equal coding performance or equal token counts for the same text. Run representative tasks from your repository and record completed work, retries, billed usage and review time before choosing.
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.