← All posts

What one coding-agent task costs, and where the money goes

At our current prices, one small coding task cost $0.04 to $0.28 depending on the agent and model. Most of the tokens are input, and without caching the bill would be 1.7x to 3.7x higher.

"How much does it cost to code with Kimi or GLM?" depends less on the price list than you'd think. We took the token counts from our tests of 11 coding agents and priced them.

The task and the prices

The task is the one from our agent test results: a 6-file Python library with 4 planted bugs and a feature to add, graded by hidden tests. Token counts are the medians per agent and model.

Prices are ours as of November 25, 2026, in US dollars per million tokens:

Model Input Cached input Output
Kimi K3.1 Pro $1.70 $0.17 $8.50
GLM-5.3 $0.84 $0.16 $2.64
GLM-5.2 $0.91 $0.17 $2.86

What one task cost

Agent Kimi K3.1 Pro GLM-5.3 GLM-5.2
Claude Code $0.10 $0.09 $0.08
Codex CLI $0.13 $0.06 $0.09
OpenCode $0.11 $0.13 $0.07
Hermes Agent $0.09 $0.11 $0.07
Pi $0.14 $0.05 $0.10
oh-my-pi $0.11 $0.07 $0.06
Cline CLI $0.15 $0.07 $0.10
Kilo Code CLI $0.23 $0.15 $0.10
Qwen Code $0.28 $0.11 $0.13
goose $0.15 $0.08 $0.06
Aider $0.21 $0.06 $0.04

The cheapest pair was Aider with GLM-5.2 at about $0.04. The most expensive was Qwen Code with Kimi K3.1 Pro at about $0.28. GLM-5.2 cost less than Kimi K3.1 Pro in all 11 agents, and GLM-5.3 cost less in 9 of them.

Where the money goes

Take Claude Code with Kimi K3.1 Pro. The task read 174K input tokens and wrote 4.5K output tokens. 88% of the input was a cache hit:

Part Tokens Cost
Input, not cached about 21K $0.036
Input, cached about 153K $0.026
Output 4.5K $0.038
Total $0.100

Input is almost all of the tokens because an agent works in steps. At every step it sends the model the conversation so far and the files it has read, then gets back a short reply. A task of a few minutes means many round trips, each one resending most of what came before.

Why caching matters

Most of that resent input is identical to the last request, so it hits the cache and is billed at a tenth of the normal input price for Kimi, and about a fifth for GLM.

Without caching, the same tasks would have cost 1.7x to 3.7x as much in the other 10 agents. In Claude Code with Kimi K3.1 Pro, $0.10 would have been about $0.33.

Aider is the exception. It used under 15K input tokens per task with every model, so most of its bill is output, and caching barely changes it.

How to keep the bill down

  • Don't clear the conversation more than you need to. The cache works only while the earlier context stays the same. Starting over means paying full price for it again.
  • Keep big files the task doesn't need out of the agent's reach. Anything the agent reads is resent on every later step.
  • Compare agents, not just models. The same model on the same task cost $0.09 in one agent and $0.28 in another.

Limits

These are estimates from median token counts on one small task, at today's prices. Larger repositories and longer sessions use more tokens. Your own usage log shows the exact cost of every request.

Try it in your own agent

Setup guides and test results for 11 coding agents.

See setup guidesGet started
Additional services
Want this test run on your code?

We can run the same kind of test on your own repository and agent setup, and tell you which model fits.

Talk to us on Discord

More posts