Gemini 3.8 Flash vs Grok 4.3: pricing compared

For a 30-step coding agent run, Gemini 3.8 Flash is 1.8x cheaper ($0.36 vs $0.64). Prices verified 2026-10-18.

Gemini 3.8 FlashGrok 4.3
ProviderGooglexAI
Input / 1M$0.75$1.25
Cached input / 1M$0.075$0.20
Output / 1M$3.75$2.50
Batch discount50%20%
Context window1.05M1M
Long-context tiernoneabove 200K

Cost on real workloads

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

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.

FAQ

Is Gemini 3.8 Flash cheaper than Grok 4.3?

For a typical 30-step coding agent run with caching, Gemini 3.8 Flash costs $0.36 and Grok 4.3 costs $0.64, so Gemini 3.8 Flash is 1.8x cheaper. Per 1M tokens, Gemini 3.8 Flash is $0.75 / $3.75 and Grok 4.3 is $1.25 / $2.50.

Which has the bigger context window?

Gemini 3.8 Flash: 1,048,576 tokens. Grok 4.3: 1,000,000 tokens.