Gemini 4 Hydrogen vs Gemini 3.8 Flash: pricing compared

For a 30-step coding agent run, Gemini 3.8 Flash is 1.6x cheaper ($0.36 vs $0.57). Prices verified 2026-11-17.

Gemini 4 HydrogenGemini 3.8 Flash
ProviderGoogleGoogle
Input / 1M$1.50$0.75
Cached input / 1M$0.075$0.075
Output / 1M$7.50$3.75
Batch discount50%50%
Context window1.05M1.05M
Long-context tiernonenone

Cost on real workloads

WorkloadGemini 4 HydrogenGemini 3.8 Flash
10,000 chatbot replies
2,000 input + 400 output tokens each, 50% of the prompt cached
$45.75$23.25
One 30-step coding agent run
12K system + tools prompt, 1K output and 3K tool result per step, caching on
$0.57$0.36
1M documents classified (batch)
600 input + 20 output tokens each, batch API where available
$525$263

Price is only half the decision: a cheaper model that needs more steps or retries can cost more per finished task. Run your own numbers in the calculator (both models pinned), or see how both rank in the use-case guides. Every other model is in the pricing comparison, and the token counter shows how many tokens your prompt is on each.

FAQ

Is Gemini 4 Hydrogen cheaper than Gemini 3.8 Flash?

For a typical 30-step coding agent run with caching, Gemini 3.8 Flash costs $0.36 and Gemini 4 Hydrogen costs $0.57, so Gemini 3.8 Flash is 1.6x cheaper. Per 1M tokens, Gemini 4 Hydrogen is $1.50 / $7.50 and Gemini 3.8 Flash is $0.75 / $3.75.

Which has the bigger context window?

Gemini 4 Hydrogen: 1,048,576 tokens. Gemini 3.8 Flash: 1,048,576 tokens.