A million tokens, measured in

Code

Code is denser than prose per line but shorter per idea: a million tokens is roughly 100,000 lines β€” a real mid-sized codebase, or the original Doom engine twice over.

What would this cost?

Everything on this page is exactly one million tokens. So the price of having a model read β€” or write β€” all of it is simply each model's per-million rate. Updated 2026-07-03.

ModelRead all of it (input)Write all of it (output)
GPT-5.5 Pro$30$180
Claude Fable 5$10$50
GPT-5.5$5$30
Claude Opus 4.8$5$25
Claude Sonnet 5$2$10
Gemini 3.1 Pro$2$12
Gemini 3.5 Flash$1.50$9
Claude Haiku 4.5$1$5
Gemini 3 Flash$0.50$3

From $0.50 to $180 for the same million tokens. Try your own budget in the calculator β†’

The same million tokens, measured differently

Or start over with the full picture β€” scale, prices, and the budget calculator.