LLM / Gemini vs Grok

Gemini vs Grok: API pricing compared

Gemini vs Grok, compared on real cost. We ran every model from both on the same example workload (chatbot, 100k requests/mo, 70% cached) so the prices line up directly. The lowest-cost model across both is Gemini 3.1 Flash-Lite ($63.5/mo). Full table and verdict below.

Prices verified June 2026 · changes logged in the changelog

Gemini vs Grok: the short answer

At the budget end, Gemini is the lower-cost option on this workload: Gemini's cheapest (Gemini 3.1 Flash-Lite) is $63.5/mo vs Grok's (Grok Build 0.1) $148/mo.

At the top end, Gemini's flagship Gemini 3.1 Pro Preview runs $508/mo vs Grok's Grok 4.3 at $178/mo. Largest verified context window — Gemini: 1M tokens; Grok: 1M tokens.

Both are priced by the same engine, so compare your own workload in the calculator — the cheaper choice flips with your token mix and cache share.

Gemini and Grok models, priced side by side

Every model from both providers on one example workload (100k requests/mo, 2,000 input / 300 output tokens, 70% cached), cheapest first. The single lowest-cost model is highlighted.

Model$ input /1M$ output /1M$ cached /1M≈ $/mo *
Gemini 3.1 Flash-LiteBUDGETGoogle (Gemini) $0.25$1.50$0.025$63.5
Gemini 3 Flash PreviewMIDGoogle (Gemini) $0.50$3$0.05$127
Grok Build 0.1MIDxAI (Grok) $1$2$0.20$148
Grok 4.3FRONTIERxAI (Grok) $1.25$2.50$0.20$178
Gemini 3.5 FlashMIDGoogle (Gemini) $1.50$9$0.15$381
Gemini 3.1 Pro PreviewFRONTIERGoogle (Gemini) $2$12$0.20$508

* Same engine as the calculator. See Gemini pricing · Grok pricing in full.

Gemini or Grok for your workload?
The cheaper option depends on your volume and cache share — run both through the calculator.
Open calculator
All 28 models → OpenAI pricing → Anthropic pricing → Gemini pricing → DeepSeek pricing → Grok pricing → Mistral pricing → Cheapest LLM API → Open calculator →

Frequently asked questions

On our example chatbot workload, Gemini's cheapest model (Gemini 3.1 Flash-Lite) is $63.5/mo and Grok's (Grok Build 0.1) is $148/mo. So Gemini is lower-cost at the budget end. The cheaper choice can flip with your token mix — check the calculator.
The largest context window we've verified is 1M tokens for Gemini and 1M tokens for Grok. Context windows vary by model within each provider — see the pricing pages for the per-model figures.
It depends on your workload. Compare the side-by-side table above for list prices and the ≈ $/mo column for a like-for-like cost, then run your own volume through the calculator. We rank on cost and published specs only — the changelog records every price change.
Every per-token rate is taken from each provider's official pricing and verified by hand (June 2026); the monthly figure is computed by our cost engine, not quoted.