Alexey Shurov.
Free tool

Gemini vs Grok API pricing, compared model by model

On 25 September 2026 the cheapest Gemini model costs $0.05 per million input tokens against $1.00 for the cheapest Grok model, and the typical Gemini model is the cheaper of the two.

Prices checked 25 September 2026 at 06.00 UTC . Source OpenRouter public model list . US dollars per million tokens

At a glance

Gemini (Google)Grok (xAI)
Models listed267
Cheapest modelGemma 3 4B, $0.05 in, $0.10 outGrok Build 0.1, $1.00 in, $2.00 out
Most expensive modelNano Banana Pro (Gemini 3 Pro Image), $2.00 in, $12.00 outGrok 4.6, $2.00 in, $6.00 out
Median input price$0.50$1.25
Median output price$2.75$2.50
Largest context1.04858M, Gemini 3.8 Flash2M, Grok 4.20 Multi-Agent
Newest modelGemini 3.8 Flash, 2026-09-02Grok 4.7, 2026-09-21
Models with a batch price111

Every model, with your monthly cost

ModelProviderInputOutputCached inputBatch in / outContextYour monthListed
Grok 4.7xAI$1.60$4.80$0.40500K$168.002026-09-21
Gemini 3.8 FlashGoogle$0.75$3.75$0.075$0.375 / $1.881.04858M$101.252026-09-02
Gemini 3.7 FlashGoogle$0.75$3.75$0.075$0.375 / $1.881.04858M$101.252026-08-13
Grok 4.6xAI$2.00$6.00$0.50500K$210.002026-08-12
Gemini 3.6 FlashGoogle$0.75$3.75$0.075$0.375 / $1.881.04858M$101.252026-07-21
Gemini 3.5 Flash LiteGoogle$0.30$2.50$0.03$0.15 / $1.251.04858M$55.502026-07-21
Grok 4.5xAI$2.00$6.00$0.30500K$210.002026-07-08
Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)Google$0.25$1.5066K$37.502026-06-30
Nano Banana 2 (Gemini 3.1 Flash Image)Google$0.50$3.00131K$75.002026-06-18
Nano Banana Pro (Gemini 3 Pro Image)Google$2.00$12.00$0.20131K$300.002026-06-18
Grok Build 0.1xAI$1.00$2.00$0.20256K$90.002026-05-20
Gemini 3.5 FlashGoogle$1.50$9.00$0.15$0.75 / $4.501.04858M$225.002026-05-19
Gemini 3.1 Flash LiteGoogle$0.25$1.50$0.025$0.125 / $0.751.04858M$37.502026-05-07
Grok 4.3xAI$1.25$2.50$0.20$1.00 / $2.001M$112.502026-04-30
Gemma 4 26B A4B
free tier on OpenRouter
Google$0.0675$0.225$0.0375262K$7.422026-04-03
Gemma 4 31B
free tier on OpenRouter
Google$0.09$0.34$0.05262K$10.502026-04-02
Grok 4.20 Multi-AgentxAI$1.25$2.50$0.202M$112.502026-03-31
Grok 4.20xAI$1.25$2.50$0.202M$112.502026-03-31
Gemini 3.1 Flash Lite PreviewGoogle$0.25$1.50$0.0251.04858M$37.502026-03-03
Nano Banana 2 (Gemini 3.1 Flash Image Preview)Google$0.50$3.0066K$75.002026-02-26
Gemini 3.1 Pro Preview Custom ToolsGoogle$2.00$12.00$0.201.04858M$300.002026-02-25
Gemini 3.1 Pro PreviewGoogle$2.00$12.00$0.20$1.00 / $6.001.04858M$300.002026-02-19
Gemini 3 Flash PreviewGoogle$0.50$3.00$0.05$0.25 / $1.501.04858M$75.002025-12-17
Nano Banana Pro (Gemini 3 Pro Image Preview)Google$2.00$12.00$0.2066K$300.002025-11-20
Nano Banana (Gemini 2.5 Flash Image)Google$0.30$2.50$0.0333K$55.502025-10-07
Gemini 2.5 Flash Lite
retiring 2026-10-20
Google$0.10$0.40$0.01$0.05 / $0.201.04858M$12.002025-07-22
Gemini 2.5 Flash
retiring 2026-10-20
Google$0.30$2.50$0.03$0.15 / $1.251.04858M$55.502025-06-17
Gemini 2.5 Pro
retiring 2026-10-20
Google$1.25$10.00$0.125$0.625 / $5.001.04858M$225.002025-06-17
Gemini 2.5 Pro Preview 06-05Google$1.25$10.00$0.1251.04858M$225.002025-06-05
Gemma 3 4BGoogle$0.05$0.10131K$4.502025-03-13
Gemma 3 12BGoogle$0.05$0.15131K$5.252025-03-13
Gemma 3 27BGoogle$0.08$0.45$0.04131K$11.552025-03-12
Gemma 2 27BGoogle$0.65$0.658K$48.752024-07-13

All Gemini prices . All Grok prices . Every provider

Common questions

Is Gemini cheaper than Grok?

On 25 September 2026, the median Gemini model on this list costs $0.50 per million input tokens and $2.75 per million output tokens, against $1.25 and $2.50 for Grok. By that measure Gemini is cheaper, but compare the specific models you would use, since both providers sell models at very different price points.

What is the cheapest Gemini model compared with the cheapest Grok model?

The cheapest Gemini model is Gemma 3 4B at $0.05 in and $0.10 out per million tokens. The cheapest Grok model is Grok Build 0.1 at $1.00 in and $2.00 out.

Which has the larger context window, Gemini or Grok?

The largest Gemini context on this list is 1.04858M tokens (Gemini 3.8 Flash) and the largest Grok context is 2M tokens (Grok 4.20 Multi-Agent).

How should I choose between Gemini and Grok for a production agent?

Price per token is one input. Run both on a set of your own real cases, count how often each needs a retry or a human check, and compare the total cost of a correct answer rather than the cost of a token.

Choosing a model for a production agent

Price is one input. Quality on your own cases, latency and the cost of retries decide the rest. Tell me what you are building.

shurco.aiGuidesFree toolsSolutionsInsightsRSSllms.txt