model comparison

vs

Gemini 4 Hydrogen vs Grok 4.7

Google AI against xAI, compared on listed price, real workload cost, context and capabilities.

the short answer

  • Gemini 4 Hydrogen lists the lower input price, while Grok 4.7 lists the lower output price.
  • Gemini 4 Hydrogen offers the larger context window.
  • Gemini 4 Hydrogen reads cached input for less ($0.075/M against Grok 4.7's $0.5/M), which decides the bill for agents that resend long context.

side-by-side specs

specGemini 4 HydrogenGrok 4.7
providerGoogle AIxAI
input price$1.5/M$2/M
output price$7.5/M$6/M
cached input$0.075/M$0.5/M
blended price (3:1)$3/M$3/M
context window1M tokens500k tokens
max output65.536k tokens—
inputtext, images, video, audio, pdftext, images
structured outputyesyes
weightsclosedclosed
releasedNovember 12, 2026September 21, 2026

same work, both models

workloadGemini 4 HydrogenGrok 4.7
one chat reply3,000 tokens in, 500 outGrok 4.7 costs 1.1× as much as Gemini 4 Hydrogen$0.0083$0.009
summarise a 100-page report50,000 tokens in, 1,500 out, one requestGrok 4.7 costs 1.3× as much as Gemini 4 Hydrogen$0.09$0.11
1,000 classification calls500 tokens in, 20 out, per callGrok 4.7 costs 1.2× as much as Gemini 4 Hydrogen$0.90$1.12
coding-agent session2M tokens in across ~60 turns, 60,000 out, no cacheGrok 4.7 costs 1.3× as much as Gemini 4 Hydrogen$3.45$4.36
same session, cached85% of input read from the prompt cache, the rest written to itGrok 4.7 costs 1.8× as much as Gemini 4 Hydrogen$1.03$1.81

at listed rates. token counts are typical sizes, not measurements.

Gemini 4 Hydrogen pricing notes

  • flat rates at every context length; no time-limited rate is listed.
  • implicit caching only; explicit cache creation is not supported.

Grok 4.7 pricing notes

  • once a prompt reaches 200K tokens, every rate doubles for the whole request ($4 input, $12 output, $1 cached); the listed price is the sub-200K rate.

when to pick which

Gemini 4 Hydrogen

Google's Gemini 4 model for everyday coding and agent workflows, adapted from Carbon. Hydrogen offers low, medium, high and xhigh thinking levels and accepts text, images, video, audio and documents.

pick it if

  • want a Gemini 4 model for everyday coding with four thinking levels
  • need video, audio or pdf input alongside images
  • reuse prompt prefixes with implicit caching

skip it if

  • you need downloadable weights
  • you need explicit cache creation

Grok 4.7

xAI's model for coding and knowledge work, launched September 2026 as the successor to Grok 4.6 at the same price and speed. it takes text and images, and reasoning is always on.

pick it if

  • you want xAI's top model for coding and multi-hour terminal tasks
  • your prompts repeat: cached input bills at a quarter of the input rate
  • you need text and image input in one 500K window

skip it if

  • Grok Build 0.1 fits your work: half the input, a third the output price
  • you need a non-reasoning mode: reasoning on Grok 4.7 cannot be disabled

faq

which is cheaper, Gemini 4 Hydrogen or Grok 4.7?

Gemini 4 Hydrogen lists the lower input price, while Grok 4.7 lists the lower output price. on a coding-agent session (2M tokens in, 60,000 out) Gemini 4 Hydrogen costs $3.45 and Grok 4.7 $4.36.

which has the larger context window?

Gemini 4 Hydrogen offers the larger context window. Gemini 4 Hydrogen: 1M tokens; Grok 4.7: 500k tokens.

can i switch between Gemini 4 Hydrogen and Grok 4.7 mid-task?

yes. in an octomind session, /model octohub:gemini-4-hydrogen and /model octohub:grok-4.7 switch models without losing the conversation, so you can draft on one and review on the other.

try either model

switch between models inside the same octomind session.

prices from the catalog of 2026-12-05