Gemini 4 Hydrogen vs Grok 4.7: API pricing
Compare Gemini 4 Hydrogen vs Grok 4.7 API pricing, context windows, and monthly workload costs side by side; via OpenRouter, as of 2026-11-13.
Prices via OpenRouter · as of 13 Nov 2026. USD per million tokens.
| Gemini 4 Hydrogen | Grok 4.7 | |
|---|---|---|
| Lab | SpaceXAI | |
| Input | $1.50 | $2.00 |
| Output | $7.50 | $6.00 |
| Cached input | $0.075 | $0.50 |
| Context window | 1.05M tokens | 500K tokens |
| Maximum output | 944K tokens | 450K tokens |
| Input types | audio, file, image, text, video | text, image, file |
Monthly cost for common workloads
| Workload | Assumptions | Gemini 4 Hydrogen per month | Grok 4.7 per month | Cheaper |
|---|---|---|---|---|
| Chat assistant | 1,000 requests a day, 2,000 input and 500 output tokens each, 30% of input cached | $176.85 | $183.00 | Gemini 4 Hydrogen |
| Support bot | 2,000 requests a day, 3,000 input and 300 output tokens each, 60% of input cached | $251.10 | $306.00 | Gemini 4 Hydrogen |
| Document summaries | 200 requests a day, 20,000 input and 800 output tokens each, 0% of input cached | $216.00 | $268.80 | Gemini 4 Hydrogen |
| Coding agent | 500 requests a day, 60,000 input and 2,000 output tokens each, 85% of input cached | $484.88 | $832.50 | Gemini 4 Hydrogen |
| Bulk classification | 100,000 requests a day, 300 input and 5 output tokens each, 50% of input cached | $821.25 | $1,215.00 | Gemini 4 Hydrogen |
Verdict
Gemini 4 Hydrogen is 1.3x cheaper than Grok 4.7 for input ($1.50 against $2.00 per million tokens). Grok 4.7 is 1.3x cheaper than Gemini 4 Hydrogen for output ($6.00 against $7.50 per million tokens). Gemini 4 Hydrogen has the larger context window, 1.05M tokens against 500K tokens. Gemini 4 Hydrogen works out cheaper for all 5 workloads below. For a chat assistant the bill is about $176.85 a month with Gemini 4 Hydrogen and $183.00 with Grok 4.7.
Keep exploring
- Gemini 4 Hydrogen pricing
- Grok 4.7 pricing
- All AI model prices
- Open ModelCost: search all 363 models, compare any two and run the cost calculator.
- All OnePassApps apps
Enable JavaScript to use the interactive ModelCost app and calculator.