Gemini 3.1 Pro vs Grok 4.7: pricing and benchmarks
Both charge $2.00 per 1M input tokens. Grok 4.7 is 50% cheaper on output tokens ($6.00 vs $12.00 per 1M). On our document Q&A workload (50,000 questions a month), Grok 4.7 costs $980.00 a month versus $1,160 for Gemini 3.1 Pro, 16% less. Roughly tied. Gemini 3.1 Pro scores 154.7 and Grok 4.7 scores 154.4 on the Epoch Capabilities Index, and their confidence intervals overlap.
Which should you choose?
Roughly tied. Gemini 3.1 Pro scores 154.7 and Grok 4.7 scores 154.4 on the Epoch Capabilities Index, and their confidence intervals overlap.
Gemini 3.1 Pro scores 59.6% on FrontierMath (Tiers 1–3) vs 53.0% for Grok 4.7.
Grok 4.7 costs $3.00 per 1M tokens (3:1 input-to-output mix) vs $4.50 for Gemini 3.1 Pro, 33% less.
Grok 4.7 delivers statistically similar overall capability for 33% less.
Pricing and specs
| Gemini 3.1 Pro | Grok 4.7 | |
|---|---|---|
| Provider | xAI | |
| API model ID | gemini-3.1-pro-preview | grok-4.7 |
| Input / 1M tokens | $2.00 | $2.00 |
| Cached input / 1M tokens | $0.20 | $0.50 |
| Output / 1M tokens | $12.00 | $6.00 |
| Long-context rates | $4.00 in / $18.00 out above 200K prompt tokens | $4.00 in / $12.00 out above 200K prompt tokens |
| Context window | 1.05M tokens | 500K tokens |
| Max output | 66K tokens | — |
| Batch discount | — | — |
Benchmarks
| Gemini 3.1 Pro | Grok 4.7 | |
|---|---|---|
| Epoch Capabilities Index | 154.7 | 154.4 |
| GPQA Diamond· Science reasoning | 94.4% | 92.7% |
| FrontierMath (Tiers 1–3)· Advanced math | 59.6% | 53.0% |
| SimpleQA Verified· Factual accuracy | 73.5% | 56.0% |
| ARC-AGI-2· Abstract reasoning | 77.1% | 61.4% |
| DeepSWE· Coding | 11.7% | — |
| APEX-Agents· Agentic work | 35.3% | 54.6% |
Source: Epoch AI, best recorded result per model (CC BY 4.0). A dash means no published score. See all benchmarks
Monthly cost for real workloads
| Workload | Gemini 3.1 Pro | Grok 4.7 | Difference |
|---|---|---|---|
Support chatbot 100,000 replies a month, ~1,500 input tokens (system prompt + history) and ~400 output tokens each. | $780.00 | $540.00 | Grok 4.7 31% cheaper |
Document Q&A (RAG) 50,000 questions a month with ~8,000 tokens of retrieved context and ~600 output tokens each. | $1,160 | $980.00 | Grok 4.7 16% cheaper |
Coding agent 10,000 agent steps a month, ~40,000 input tokens each (70% read from the prompt cache) and ~2,000 output tokens. | $536.00 | $500.00 | Grok 4.7 7% cheaper |
Cached chatbot The same 100,000-reply support chatbot, but 60% of each prompt (system prompt + conversation history) is served from the prompt cache. | $618.00 | $405.00 | Grok 4.7 34% cheaper |
Meeting notes 10,000 meetings a month summarized from ~12,000-token transcripts, ~1,000 output tokens each. | $360.00 | $300.00 | Grok 4.7 17% cheaper |
Bulk translation 200,000 short translations a month, ~800 input and ~800 output tokens each. | $2,240 | $1,280 | Grok 4.7 43% cheaper |
Content moderation 1,000,000 classifications a month, ~400 input tokens and ~80 output tokens each. | $1,760 | $1,280 | Grok 4.7 27% cheaper |
Article drafting 300 long-form articles a month written from a ~4,000-token brief and outline, ~5,000 output tokens each. | $20.40 | $11.40 | Grok 4.7 44% cheaper |
Code review bot 30,000 pull-request reviews a month, ~5,000 input tokens each (30% cached repository context) and ~700 output tokens. | $471.00 | $358.50 | Grok 4.7 24% cheaper |
Invoice extraction 100,000 documents a month parsed into structured JSON, ~1,200 input and ~250 output tokens each. | $540.00 | $390.00 | Grok 4.7 28% cheaper |
Estimates use standard list prices and ignore cache-write surcharges. Different tokenizers can count the same text differently, so test with your own prompts.
Gemini 3.1 Pro vs Grok 4.7 cost calculator
- $980.00/mo$0.02 / req
- Gemini 3.1 ProGoogle$1,160/mo$0.02 / req
Standard-tier list prices. Long-context rates apply automatically where the provider publishes a threshold. Excludes cache-write surcharges, taxes, batch and volume discounts.
Gemini 3.1 Pro pricing notes
Google’s Gemini 3.1 Pro model, currently offered as a preview.
- Prompts over 200K tokens are billed at $4 input / $18 output per 1M tokens.
- No free tier on the Gemini API.
- Output price includes thinking tokens.
Grok 4.7 pricing notes
xAI’s newest flagship for coding and general use, with agentic tool calling and configurable reasoning.
- Requests with 200K or more prompt tokens are billed at $4 input / $1 cached / $12 output for all tokens.
- Web Search costs $5 per 1,000 calls; X Search is billed per item fetched, at $5 per 1,000 posts and $10 per 1,000 user profiles.
Frequently asked questions
- Is Gemini 3.1 Pro cheaper than Grok 4.7?
- Both charge $2.00 per 1M input tokens. Grok 4.7 is 50% cheaper on output tokens ($6.00 vs $12.00 per 1M). On our document Q&A workload (50,000 questions a month), Grok 4.7 costs $980.00 a month versus $1,160 for Gemini 3.1 Pro, 16% less.
- Which is more capable, Gemini 3.1 Pro or Grok 4.7?
- Roughly tied. Gemini 3.1 Pro scores 154.7 and Grok 4.7 scores 154.4 on the Epoch Capabilities Index, and their confidence intervals overlap.
- How much does Gemini 3.1 Pro cost per 1M tokens?
- Gemini 3.1 Pro costs $2.00 per 1M input tokens and $12.00 per 1M output tokens, and $0.20 per 1M cached input tokens on Google’s standard tier.
- How much does Grok 4.7 cost per 1M tokens?
- Grok 4.7 costs $2.00 per 1M input tokens and $6.00 per 1M output tokens, and $0.50 per 1M cached input tokens on xAI’s standard tier.
- Which has the larger context window, Gemini 3.1 Pro or Grok 4.7?
- Gemini 3.1 Pro has the larger context window: 1.05M tokens versus 500K for Grok 4.7.