Claude model cost per coding-agent run
Short answer: The same coding-agent run (120,000 input and 8,000 output tokens) costs from $0.016 on Claude Haiku 5.5 (when each request's prompt stays under 100,000 tokens) to $0.80 on Claude Opus 5 at Anthropic's list prices. The model is the biggest lever on what an AI line on a client invoice comes to; prompt caching is the second.
Six Claude models, one run
| Model | Input / M | Output / M | Cache read / M | Cache write (5 min) / M | 120,000 in + 8,000 out | Long cached session* |
|---|---|---|---|---|---|---|
| Claude Opus 5.5 | $4 | $20 | $0.20 | $5 | $0.640 | $2.400 |
| Claude Sonnet 5.5 | $2 | $10 | $0.10 | $2.50 | $0.320 | $1.200 |
| Claude Haiku 5.5 | $0.10 | $0.50 | $0.01 | $0.125 | $0.016 – $0.080 | $0.070 – $0.350 |
| Claude Opus 5 | $5 | $25 | $0.50 | $6.25 | $0.800 | $3.500 |
| Claude Sonnet 5 | $2 | $10 | $0.20 | $2.50 | $0.320 | $1.400 |
| Claude Haiku 4.5 | $1 | $5 | $0.10 | $1.25 | $0.160 | $0.700 |
* 50,000 uncached input, 40,000 output, 200,000 cache-write and 2,000,000 cache-read tokens. Example token counts, not measurements. Claude Haiku 5.5 has a higher price for requests whose prompt is over 100,000 tokens, so its cells show a range.
Source: Anthropic's pricing page, checked 2026-11-26. Prices are USD per million tokens and can change.
How to read it
- Output tokens cost five times input tokens on every model here, but agents read far more than they write, so input and cache prices usually decide the bill.
- Cache reads are the cheap part. On Claude Opus 5.5 and Claude Sonnet 5.5 a cache read costs one twentieth of the base input price; on the other four it is one tenth.
- Work out your own run:
cost = (input × input price + output × output price + cache writes × cache-write price + cache reads × cache-read price) ÷ 1,000,000, or use the AI agent cost & markup calculator.
Then decide what the client pays: at cost, cost plus a stated markup, a fixed price, or nothing. See the guide to billing AI agent costs, and the tool guides for Cursor and OpenAI Codex.
Frequently Asked Questions
Which Claude model is cheapest for a coding agent?
By list price, Claude Haiku 5.5: $0.10 per million input tokens and $0.50 per million output tokens for requests with a prompt up to 100,000 tokens (checked 2026-11-26). Cheapest per token is not the same as cheapest per finished task; a stronger model may need fewer steps.
Why does my agent bill look different from the price per million tokens?
An agent resends the conversation on every step, so most of its tokens are input, and with prompt caching most of that input is billed at the cache-read price. The bill depends on the mix of input, output, cache-write and cache-read tokens.
How do I bill a client for Claude usage?
Record each run's cost against the client's project, agree in the contract whether it is billed at cost or with a stated markup, and show it as its own invoice line beside the hours.
Put it on the invoice
eBRBe records what each agent run cost, adds your markup, and puts it on the same client invoice as your hours. Its built-in price table covers the Claude models on this page, so a run logged with its token counts is costed for you. Free for up to 3 people; paid plans from $9 per member a month, with a 14-day trial.
View eBRBe Pricing & Free Plan →