What coding with Gemini 4 Hydrogen costs per hour
A coding agent is an input-hungry workload: the repository, the open files and the instructions go in on every turn, and the answer is short. At 120,000 input tokens with half of them cached and 20,000 output tokens per hour, Gemini 4 Hydrogen costs $0.24 per coding hour, $1.96 for an eight-hour day and $26.89 a month at 110 hours.
Prices verified December 1, 2026
The workload behind the number
An hour of agent-assisted coding is not one call. It is a loop: read the file, plan, edit, run the tests, read the failure, edit again. Each iteration resends the context window, which is why input tokens dominate — here 6.6 times the output. The assumption above is 120,000 input tokens and 20,000 output per hour, with half the input served from the prompt cache, and 110 hours a month (25 hours a week).
Gemini 4 Hydrogen bills $1.50 per million input tokens, $0.075 per million cached input and $7.50 per million output. The cached rate does most of the work in a real session: without caching the same hour costs $0.33, which is $9.40 more over a month.
| Workload | Input tokens | Output tokens | Cost |
|---|---|---|---|
| One coding hour | 120,000 (50% cached) | 20,000 | $0.24 |
| One working day | 960,000 | 160,000 | $1.96 |
| One month (110 hours) | 13,200,000 | 2,200,000 | $26.89 |
| 1,000 agent requests | 6,000,000 (40% cached) | 1,500,000 | $16.83 |
Where Gemini 4 Hydrogen ranks for coding
Number 11 of the 20 models at this workload. The cheapest is GPT-6 Luna at $0.02 per hour ($1.83 a month); the most expensive is GPT-6.2 Astra at $1.30 per hour. The spread between them is 79 times, which is why the model choice matters more than shaving tokens at the margin.
| Model | Provider | Per hour | Per month |
|---|---|---|---|
| GPT-6 Luna | OpenAI | $0.02 | $1.83 |
| Claude Haiku 5.5 | Anthropic | $0.02 | $1.83 |
| GPT-5.4 nano | OpenAI | $0.04 | $4.20 |
| DeepSeek Flash | DeepSeek | $0.04 | $4.66 |
| Gemini 3.5 Flash-Lite | $0.07 | $7.68 | |
| Gemini 3.8 Flash | $0.12 | $13.70 | |
| Grok 4.3 | xAI | $0.14 | $15.07 |
| GPT-5.4 mini | OpenAI | $0.14 | $15.34 |
What is not in the number
Retries, failed tool calls and re-runs of a test suite are billed like any other request; a 10% retry rate is a 10% surcharge. Long-context surcharges apply once a prompt crosses the provider's threshold Fast, low-cost Gemini 4 tier.. And the token counts are estimates: a big monorepo with 200,000-token contexts can double the hourly figure without changing a single rate. The calculator takes your own counts, and the workflow estimator puts coding next to text, image and video in one budget.
Questions
Why does coding cost more than chat on the same model?
A coding turn carries repository context: the file, the open tabs, the instructions and the conversation so far. That is 80,000 to 150,000 input tokens before the model writes a line, against a few thousand for a chat message. Output is small by comparison, so the input rate drives the bill.
How much does prompt caching save on coding?
On Gemini 4 Hydrogen, cached input is billed at $0.075 per million instead of $1.50. At the 50% hit rate used here that is $0.09 per hour less — $9.40 a month at 110 hours. Editor tools keep the prefix stable, which is why they hit the cache far more often than a homegrown script.
Is a flat coding subscription cheaper than this?
Often, for one developer. A $8.00 Cursor or Copilot seat bundles an editor and a usage ceiling; this page prices the tokens alone. The <a href="/subscription-vs-api">break-even calculator</a> finds the daily volume where metered API calls overtake a flat plan.
Work out your own number
- Cheapest LLM for coding — the ranked list this page comes from
- LLM API cost calculator — your own token counts against 20 models
- Subscription vs API break-even — when a $20 plan beats metered API calls
- AI subscription receipt — what a stack of consumer plans adds up to
- All 30 comparisons — two models side by side with a live calculator
- All cost guides — 113 pages by model, task and volume
Tools that keep the bill down
The rate table is half the answer. These two move the token count itself.
Make.com — run the flow without the cron script
Every retry is a second billed request. Make fires the flow on a schedule or webhook, retries inside the run and logs each one, so the monthly line stops being a guess.
Firecrawl — pages into clean markdown
Turn a web page into LLM-ready markdown so the tokens you pay for are the content, not the markup around it.
Affiliate disclosure: we may earn a commission if you subscribe through these links, at no extra cost to you. See the privacy and disclosure page.