Guides · dev · claude code cost

What a coding session costs: flash models, flagships, and the cache assumption

Published 16 Oct 2026. Updated 19 Oct 2026. Researched 16 Oct 2026.

This page was researched 26 days ago. The review window for a weekly page is 14 days, so treat the prose as stale and check the live price table.

Token prices flatter models that are cheap to read and expensive to write, and they flatter list prices that are not the host you will call. A session cost is still a model of a session. Ours is written down so you can throw it out.

The mix: 3,000,000 input tokens, 90 percent of them billed at the cache-read rate when we have one, 60,000 output tokens. Cache writes are not included. If your client does not send a stable prefix, set the cache share to zero in the calculator.

OpenRouter list prices

Illustrative Coding-agent session costqwen3.8-flash$0.116glm-5.3-flash$0.098deepseek-v4.1-flash$0.098minimax-m3$0.324glm-5.3$0.291kimi-k3$1.51Anthropic: Claude Opus 5.5$2.94OpenAI: GPT-6.1 Sol$1.47
Coding-agent session: 3 million input tokens, 90% served from cache, 60 thousand output tokens. Cache-write fees are not included. All rows use the OpenRouter list price. Comparators are OpenRouter list prices for Anthropic: Claude Opus 5.5 ($8.00/M blended) and OpenAI: GPT-6.1 Sol. Snapshot 2026-11-11. Cache-write fees are excluded. A missing cache price is billed as a full input token.
ModelSessionvs Opusvs SolCache price
qwen3.8-flash$0.11696% cheaper92% cheaperpublished
glm-5.3-flash$0.09897% cheaper93% cheaperpublished
deepseek-v4.1-flash$0.09897% cheaper93% cheaperpublished
minimax-m3$0.32489% cheaper78% cheaperpublished
glm-5.3$0.29190% cheaper80% cheaperpublished
kimi-k3$1.5149% cheaper3% dearerpublished
Anthropic: Claude Opus 5.5$2.94——published
OpenAI: GPT-6.1 Sol$1.47——published

The percentages in this table compare session cost. The price table's percentages compare blended token price. They answer different questions.

The GLM-5.3 and Kimi bars here use the card. The rate check says whether that card is the lab’s rate.

Lab rates where we have them

Illustrative Coding-agent session costGLM-5.3$1.39GLM-5.3-Flash$0.156DeepSeek-V4.1-Flash$0.178DeepSeek-V4-Pro-0813$0.752Kimi K3$2.61Anthropic: Claude Opus 5.5$2.94OpenAI: GPT-6.1 Sol$1.47
Coding-agent session: 3 million input tokens, 90% served from cache, 60 thousand output tokens. Cache-write fees are not included. Chinese rows use the lab published rate (DeepSeek uses the peak rate). Comparators are OpenRouter list prices for Anthropic: Claude Opus 5.5 ($8.00/M blended) and OpenAI: GPT-6.1 Sol. Snapshot 2026-11-11. Cache-write fees are excluded. A missing cache price is billed as a full input token.
ModelSessionvs Opusvs SolCache price
GLM-5.3$1.3953% cheaper6% cheaperpublished
GLM-5.3-Flash$0.15695% cheaper89% cheaperpublished
DeepSeek-V4.1-Flash$0.17894% cheaper88% cheaperpublished
DeepSeek-V4-Pro-0813$0.75274% cheaper49% cheaperpublished
Kimi K3$2.6111% cheaper78% dearerpublished
Anthropic: Claude Opus 5.5$2.94——published
OpenAI: GPT-6.1 Sol$1.47——published

The percentages in this table compare session cost. The price table's percentages compare blended token price. They answer different questions.

DeepSeek rows are the peak rate. Off-peak is half, on the schedule in the DeepSeek hub. Kimi’s official output rate is why that bar jumps. Whether the flash discount survives contact with the vendor is the rate check above, not a fixed claim about the flagship.

How to use this without lying to yourself

Export one real trace. Count uncached input, cached input, and output. Put those three numbers next to this mix. If output is 400,000 tokens because the agent narrates, every chart on this page is too kind to Kimi and too kind to any model that rambles. If the cache hit rate is 10 percent, the flash models are still cheap and the session is still mostly input price.

The GLM plan is the subscription version of the same question. The overview now publishes the multipliers that convert tokens into credits, plus Z.AI’s own weekly token estimates at a stated cache-hit rate. Use that formula. A guessed “week of Claude Code” is still a guess.

Related: price map, calculator.

Questions

Is this my Claude Code bill?

No. The mix is 3 million input tokens, 90 percent cache hits, and 60 thousand output tokens. Change it in the calculator if your traces look different.

Why is the official GLM bar different from the OpenRouter bar?

The first chart uses the OpenRouter card. The second uses the lab rate we stored. The rate check says whether those pairs match.

Sources

  1. OpenRouter models API, accessed 2026-10-16
  2. Z.AI pricing, accessed 2026-10-16
  3. DeepSeek API pricing, accessed 2026-10-16
  4. Kimi context caching, accessed 2026-10-16