FREE TOOL · NO SIGN-UP · NOTHING LEAVES YOUR BROWSER

AI token cost calculator for coding agents

Enter a month of tokens per engineer, split the way coding-agent APIs bill them: fresh input, cache writes, cache reads and output. The calculator prices that month on every Claude, GPT and Cursor model at list price, for one engineer and for your team. It opens on one of our own engineers' measured months, 67.9B tokens and 98.4% cache reads; replace it with yours.

Per engineer per month. Write 250K, 1.2M, 3B or 1,200,000.

What that month costs

One engineer's month costs from $834 on Haiku 5.5 (prompts up to 100K tokens) to $83,382 on GPT-6 Astra, at list price.

Every token at the model's list price per million, for the inputs on the left; Cursor's Claude and GPT rows add its Token Rate.
ModelPer engineer a monthTeam a monthTeam, without cachingCache reads' share
Anthropic API (Claude Code on an API key or Enterprise)
Fable 5.1$33,222$33,222$682,85250%
Opus 5.5$19,977$19,977$273,14167%
Sonnet 5.5$9,988$9,988$136,57067%
Haiku 5.5 (prompts up to 100K tokens)$834$834$6,82980%
OpenAI API (Codex on an API key)
GPT-6 Astra$83,382$83,382$682,85280%
GPT-6.1 Sol$9,988$9,988$136,57067%
GPT-6.1 Terra$4,994$4,994$68,28567%
GPT-6 Luna$834$834$6,82980%
Cursor Teams
Claude Opus 5.5 with the Cursor Token Rate$36,963$36,963$290,12781%
Claude Sonnet 5.5 with the Cursor Token Rate$26,975$26,975$153,55787%
GPT-5.6 Sol with the Cursor Token Rate$50,339$50,339$290,12786%
Composer 2.5 (Cursor's model, past the weekly pool)$13,589$13,589$34,14398%
Grok 4.7 (Cursor's model, past the weekly pool)$33,951$33,951$136,23198%
  • Anthropic API (Claude Code on an API key or Enterprise): prices verified November 4, 2026 against platform.claude.com/docs/en/about-claude/pricing. Haiku 5.5 costs more on prompts over 100K tokens.
  • OpenAI API (Codex on an API key): prices verified November 4, 2026 against developers.openai.com/api/docs/pricing and learn.chatgpt.com/docs/pricing. Standard tier, prompts up to 272K tokens; longer prompts cost 2x input and 1.5x output.
  • Cursor Teams: prices verified November 3, 2026 against cursor.com/docs/models-and-pricing. Claude and GPT bill from the first request with the Cursor Token Rate (+$0.25 per million on every kind of token); Cursor's own models bill only past a seat's weekly pool.
  • "Claude cache writes" applies to the Anthropic API rows; Cursor's Claude rows are its 5-minute prices.

Where the cost goes

Kind of tokenTokensPer engineer a monthShare of cost
Fresh input1.17M$4.68under 0.1%
Cache writes980M$4,90025%
Cache reads66.88B$13,37667%
Output84.8M$1,6968%

Count the tokens in a text

An estimate appears here: characters, words, and tokens on GPT and Claude models.

How the calculator prices a month

Each kind of token is multiplied by the model's list price per million tokens for that kind, and the four are added up. The team column multiplies by the number of engineers. "Without caching" bills every input-side token (fresh input, cache writes and cache reads) at the fresh input price, as if the provider cached nothing.

The prices are the per-token tables of our Claude Code pricing, Codex pricing and Cursor pricing guides, each with the date it was last checked against the vendor's page. Nothing you type is sent anywhere: the page does the arithmetic in your browser.

Where to find your token counts

  • Claude Code: /usage lists input, output, cache read and cache write tokens per model, for the session, the last 24 hours or 7 days. For a month or more, ccusage reads the local transcripts. Our Claude Code token usage guide walks through both.
  • Codex: the CLI's /status and /usage show usage by day, by week or in total, and the usage dashboard shows your limits.
  • Cursor: grok.com/dashboard and the editor's settings show how much of the weekly pool is used and the prepaid credit left.
  • A whole team: each of these reads one person's machine or account. Zest records every engineer's input, output and cache tokens per session, with an estimated cost, next to the pull requests those sessions led to.

Why cache reads are most of a coding agent's bill

A coding agent sends the whole conversation, files and tool results included, on every request. With prompt caching the repeated part is billed as a cache read: on Opus 5.5, $0.20 per million tokens against $4 for fresh input. So a calculator that asks only for input and output tokens prices an agent's month as if nothing were cached.

The month the calculator opens on is one of our engineers': 318 Claude Code sessions (September 4 to October 3, 2026), 67.9B tokens, 98.4% of them cache reads. At Anthropic's list prices on October 4, 2026 it came to $26,072, and the same tokens without caching to $370,526. Where the cost went: cache reads 57%, cache writes 33%, output 10%. That month mixed models and cache durations, and the calculator prices every token on one model, so read the row of the model you run most.

Why a seat price is not the whole cost

Team plans start at a seat price. Claude Team Standard is $25 a seat a month, or $20 billed annually; ChatGPT Business, which includes Codex, $25 per user a month, or $20 billed annually; Cursor Teams Premium $30 per user a month. Each seat includes usage up to limits the vendors don't publish in tokens, and past them usage bills at API rates (Cursor's at API rates plus its token rate). Claude Enterprise is $20 a seat a month, billed annually, with all usage billed at API rates on top. So this calculator gives the price of an API key, of Enterprise usage, or of what a team runs past its seats.

For scale, Anthropic's figure for Claude Code across enterprise deployments is $150–250 per developer a month, about $13 per active day; 90% of users stay under $30 a day. Our measured month is a heavy agent user's, far above that. GitHub Copilot meters in AI credits, not tokens (Copilot Business: $19 a seat, with 1,900 pooled AI credits), so it isn't in the table. The seats side by side are in Claude Code vs Codex vs Cursor.

How the text estimate works

The text box counts characters and words, then estimates tokens with the providers' own rules of thumb for English text. OpenAI puts a token at about 4 characters. Anthropic puts it at about 3.5 characters on earlier models, and says Claude 4.7 and later models, every Claude model priced here, make about 30% more tokens from the same text. Code, other languages and unusual words tokenize differently, so for an exact count use each provider's token counting.

TRY IT ON YOUR TEAM

See what your team ships with AI.

Starter is free (3 seats, no credit card). Pro is $49 a month with 5 seats and Max is $149 a month with 10 seats — priced per workspace, not per engineer, with extra seats at $19 a month. See pricing

A FEW THINGS TO KNOW

Questions

How do I count the tokens in a prompt?+

Paste it into the text box above for an estimate: about 4 characters a token on OpenAI's models; on Claude, about 3.5 characters a token before Claude 4.7, whose newer tokenizer makes about 30% more tokens from the same text. For an exact count, use each provider's token counting with the model you plan to use, as Anthropic's docs advise.

Why are cache reads most of a coding agent's tokens?+

An agent sends the whole conversation again on every request, and the provider bills the repeated part as a cache read at a fraction of the input price. In our measured month, 98.4% of 67.9B tokens were cache reads.

Is this what a Claude, ChatGPT or Cursor subscription costs?+

No. The calculator prices tokens at API list price: what an API key, Claude Enterprise or usage past a plan's limit is billed. A seat includes usage up to limits the vendors don't publish in tokens.

Does Cursor charge more per token than the model's maker?+

On Teams and Enterprise, yes: Cursor bills Claude and GPT models at the API list price plus the Cursor Token Rate on every kind of token, cached ones included. Cursor's own models skip the token rate and bill only past a seat's weekly pool.