Gemini 4 Hydrogen vs Grok 4.7

Gemini 4 Hydrogen runs our sample agent task 1.3x cheaper than Grok 4.7 at list prices.

The short version

Gemini 4 Hydrogen is #10 on our price list and Grok 4.7 is #16, from Google and xAI. On our sample agent run, Gemini 4 Hydrogen costs $0.593 and Grok 4.7 $0.766, 1.3x apart. Gemini 4 Hydrogen also leads the Intelligence Index, 54 to 35, so on our numbers it wins on both price and measured quality. LMArena's human votes agree, 1490 to 1443 for Gemini 4 Hydrogen.

Side by side

MeasureGemini 4 HydrogenGrok 4.7
ProviderGooglexAI
Input / 1M tokens$1.50$2.00
Output / 1M tokens$7.50$6.00
Output price ÷ input price5.0x3.0x
Blended / 1M (3:1)$3.00$3.00
Context window1M500K
Sample agent run$0.593$0.766
AA Intelligence Index5435
LMArena Text1490 (high)1443 (xhigh)
Blended $ per index point$0.056$0.086

Prices from Google and xAI, verified 2026-11-21. Scores from Artificial Analysis and LMArena. How to read this page.

A sample agent run

20 steps, 365,000 input and 6,000 output tokens in total, largest single prompt 32,500 tokens.

VolumeGemini 4 HydrogenGrok 4.7
One run$0.593$0.766
1,000 runs$592.50$766.00
10,000 runs$5,925.00$7,660.00
100,000 runs$59,250.00$76,600.00

Input makes up 92% of the Gemini 4 Hydrogen bill and 95% of the Grok 4.7 bill. With both bills that input-heavy, trimming or caching the context each step saves more than shortening the replies. On Gemini 4 Hydrogen, step 1 costs $0.0083 and step 20 $0.051; on Grok 4.7, $0.0098 and $0.067. Each step re-reads the growing history, so the late steps carry most of the bill. A $500 monthly budget covers about 843 runs on Gemini 4 Hydrogen and 652 on Grok 4.7. At 10,000 runs a month the difference is $1,735.00.

Four everyday workloads

WorkloadGemini 4 HydrogenGrok 4.7Gap
Support chat reply
a short system prompt, recent chat history and a reply
$0.0067$0.00701.0x
RAG answer
a question plus about 20K tokens of retrieved documents, and a cited answer
$0.036$0.0451.2x
10-step agent task
10 model calls, each re-reading about 8K tokens of context and emitting a 400-token tool call
$0.150$0.1841.2x
Long-report summary
one 200K-token document summarized into about 2K tokens
$0.315$0.8242.6x

The gap is widest on the long-report summary (2.6x, Gemini 4 Hydrogen cheaper) and narrowest on the support chat reply (1.0x). Gemini 4 Hydrogen is cheaper per input token and Grok 4.7 per output token; they break even when output is 25% of the tokens, so read-heavy jobs favor Gemini 4 Hydrogen and write-heavy ones Grok 4.7. Grok 4.7's long-prompt rate ($4.00/$12.00 from 200K tokens) applies to the long-report summary row.

Per 1M tokens of mixed traffic, Gemini 4 Hydrogen costs $2.10, $3.00, $4.50 and Grok 4.7 $2.40, $3.00, $4.00 at 10%, 25% and 50% output. The gap narrows as jobs write more, from 1.1x to 1.1x.

  • Support chat reply at 100,000 a month: $675.00 on Gemini 4 Hydrogen, $700.00 on Grok 4.7, so Gemini 4 Hydrogen saves $25.00.
  • RAG answer at 100,000 a month: $3,600.00 on Gemini 4 Hydrogen, $4,480.00 on Grok 4.7, so Gemini 4 Hydrogen saves $880.00.
  • 10-step agent task at 100,000 a month: $15,000.00 on Gemini 4 Hydrogen, $18,400.00 on Grok 4.7, so Gemini 4 Hydrogen saves $3,400.00.
  • Long-report summary at 100,000 a month: $31,500.00 on Gemini 4 Hydrogen, $82,400.00 on Grok 4.7, so Gemini 4 Hydrogen saves $50,900.00.

Where each one fits

Gemini 4 Hydrogen

  • High-volume agent work: $592.50 per 1,000 sample runs against $766.00, a saving of $17,350.00 per 100,000 runs.
  • Harder multi-step reasoning, where a 19-point Intelligence Index lead (54 vs 35) is most likely to show.
  • User-facing chat and writing: LMArena voters prefer it 1490 to 1443, about 57% of head-to-head votes.
  • Read-heavy jobs such as RAG over long documents, at $1.50 per 1M input tokens against $2.00.
  • Single prompts beyond 500K tokens, up to its 1M limit.
  • Prompts of 200K tokens or more, where Grok 4.7 switches to its higher long-prompt rate.

Grok 4.7

  • Long generations such as reports or code, at $6.00 per 1M output tokens against $7.50.

What you trade

On our numbers there's little to trade: Gemini 4 Hydrogen is 23% cheaper per run and 19 points higher. The case for Grok 4.7 rests on things we don't score, like tool-calling style on your prompts or features only xAI offers. Per index point, Gemini 4 Hydrogen is the better value at $0.056 blended per 1M tokens against $0.086. Gemini 4 Hydrogen charges 5.0x its input rate for output and Grok 4.7 3.0x, so the more a job writes, the better Grok 4.7 looks.

Using both

Across all 20 models we track, 6 models run our sample task for less than Gemini 4 Hydrogen, and 7 undercut Grok 4.7. Routing between them doesn't pay on these numbers: Gemini 4 Hydrogen is both cheaper and higher scoring, so sending work to Grok 4.7 adds $0.173 per run without a measured gain. Keep Grok 4.7 as a fallback if Google has an outage.

Running both means two API keys and two tool-call formats. Our schema converter writes both from one JSON Schema.

Context window

Gemini 4 Hydrogen takes 1M tokens (about 750,000 English words) and Grok 4.7 500K. That 2.0x difference matters for whole-codebase or book-length prompts, and our 32,500-token agent peak fits either one easily.

Grok 4.7's base price covers prompts below 200K tokens. Longer ones cost $4.00/$12.00.

Reasoning settings

SettingGemini 4 HydrogenGrok 4.7
xhigh54not published
high5135
medium41not published
low27not published

Our headline scores use each model's top published setting: xhigh for Gemini 4 Hydrogen, high for Grok 4.7. Gemini 4 Hydrogen still matches or beats Grok 4.7's 35 at high and medium (51, 41).

Other options at this level

10 other models score between 32 and 57 on the Index: Claude Haiku 5.5 (36, $0.040 per run), DeepSeek V4.1 Flash (1017) (33, $0.117 per run), GPT-6.1 Terra (51, $0.395 per run), GPT-6.2 Sol (57, $0.790 per run), GPT-6.1 Sol (55, $0.790 per run), Claude Sonnet 5.5 (55, $0.790 per run), Gemini 4 Argon (50, $0.790 per run), Muse Wonder (44, $1.58 per run), GPT-6 Astra (57, $3.95 per run), Claude Fable 5.1 (50, $3.95 per run). Claude Haiku 5.5 undercuts both at $0.040 per run, so it's worth a test before you settle. GPT-6.2 Sol scores highest of the group at 57.

Within Google, the strongest option cheaper than Gemini 4 Hydrogen is Gemini 3.8 Flash: 31 on the Index at $0.296 per run, against 54 and $0.593.

Artificial Analysis vs LMArena

On the Intelligence Index, Gemini 4 Hydrogen places 10th and Grok 4.7 16th of the 20 models on our list. On LMArena Text they place 9th and 18th of the 20 we track there (1490 vs 1443). Both boards put Gemini 4 Hydrogen ahead, so you can lean on that order with more confidence than either board gives alone. A 47-point LMArena gap means Gemini 4 Hydrogen would win about 57% of blind votes against Grok 4.7. LMArena tested Gemini 4 Hydrogen at high and Grok 4.7 at xhigh.

FAQ

Is Gemini 4 Hydrogen cheaper than Grok 4.7?

Yes. Per sample run it costs $0.593 against $0.766, and per 1M blended tokens $3.00 against $3.00.

Which has the larger context window?

Gemini 4 Hydrogen, at 1M tokens.

Which should I use for an AI agent?

Gemini 4 Hydrogen, on our numbers: it is cheaper per run ($0.593 vs $0.766) and scores 54 to 35.

Which scores higher?

Gemini 4 Hydrogen on the Artificial Analysis Intelligence Index, 54 to 35. On LMArena Text, Gemini 4 Hydrogen is 1490 (high) and Grok 4.7 is 1443 (xhigh).

Run your own numbers in the token cost estimator · Gemini 4 Hydrogen pricing · Grok 4.7 pricing · All comparisons