- Home
- Models
- Comparisons
- Claude Opus 5 vs Grok 4.7
Claude Opus 5 vs Grok 4.7: API pricing and context window
Grok 4.7 is 60% cheaper than Claude Opus 5 for input ($2.00 vs $5.00 per 1M tokens) and 76% cheaper for output ($6.00 vs $25.00). Context window: 1,000,000 tokens for Claude Opus 5, 500,000 for Grok 4.7. A 10K-input, 1K-output request costs $0.075 on Claude Opus 5 and $0.026 on Grok 4.7.
- Claude Opus 5
- $5.00 / $25.00 Input / Output, per 1M tokens · 1M context window
- Grok 4.7
- $2.00 / $6.00 Input / Output, per 1M tokens · 500K context window
Side by side
| Field | Claude Opus 5 | Grok 4.7 | Claude Opus 5 vs Grok 4.7 |
|---|---|---|---|
| Input | $5.00 | $2.00 | +150% |
| Output | $25.00 | $6.00 | +317% |
| Cached input | $0.50 | $0.50 | |
| Context window | 1,000,000 | 500,000 | +100% |
| Long-context threshold | none | 200,000 | |
| Batch API input | $2.50 | $1.60 | +56% |
| Batch API output | $12.50 | $4.80 | +160% |
| Image input | Yes | Yes | |
| Function calling | Yes | Yes | |
| Reasoning | Yes | Yes | |
| Prompt caching | Yes | Yes | |
| Web search | Yes | Yes | |
| Structured output | Yes | Yes |
Cost per task
| Task | Claude Opus 5 | Grok 4.7 | Cheaper |
|---|---|---|---|
| Chat request (10K in + 1K out) | $0.075 | $0.026 | Grok 4.7 (65% less) |
| Codebase question (100K in + 2K out) | $0.55 | $0.212 | Grok 4.7 (61% less) |
| Same question, context cached (100K cached + 2K out) | $0.10 | $0.062 | Grok 4.7 (38% less) |
| Long document (300K in + 4K out) | $1.60 | $1.25 | Grok 4.7 (22% less) |
| 1M tokens a month (750K in + 250K out) | $10.00 | $3.00 | Grok 4.7 (70% less) |
Estimate your own workload in the calculator
Which one to pick
- Pick Grok 4.7 to spend less: it is cheaper on every task above. A chat request costs $0.026 vs $0.075, and 1M tokens a month $3.00 vs $10.00.
- Pick Claude Opus 5 for prompts over 500K tokens: it accepts up to 1,000,000 input tokens, Grok 4.7 up to 500,000.
- Grok 4.7 bills the whole request at $4.00 input and $12.00 output per 1M once a prompt passes 200K tokens; Claude Opus 5 lists no long-context surcharge.
- Through the Batch API, Grok 4.7 is cheaper for input and output: $1.60 vs $2.50 and $4.80 vs $12.50 per 1M tokens.
Full pages: Claude Opus 5 · Grok 4.7
More comparisons
- Claude Opus 5.5 vs Claude Opus 5
- Claude Opus 5.5 vs Grok 4.7
- Claude Opus 5 vs GPT-6.2 Astra
- Claude Opus 5 vs Gemini 3.1 Pro Preview
- GPT-6.2 Astra vs Grok 4.7
- GPT-5.5 vs Grok 4.7
- Gemini 3.1 Pro Preview vs Grok 4.7
- Claude Opus 5 vs Kimi K3
Questions
Which is cheaper, Claude Opus 5 or Grok 4.7?
Grok 4.7 is 60% cheaper than Claude Opus 5 for input ($2.00 vs $5.00 per 1M tokens) and 76% cheaper for output ($6.00 vs $25.00). A 10K-input, 1K-output request costs $0.075 on Claude Opus 5 and $0.026 on Grok 4.7.
Which has the larger context window, Claude Opus 5 or Grok 4.7?
Claude Opus 5 accepts more: 1,000,000 input tokens, against 500,000 for Grok 4.7.
How much does a typical request cost on Claude Opus 5 and Grok 4.7?
A chat request with 10K input and 1K output tokens costs $0.075 on Claude Opus 5 and $0.026 on Grok 4.7. A 100K-token codebase question with a 2K answer costs $0.55 and $0.212.
What are the differences between Claude Opus 5 and Grok 4.7?
Claude Opus 5 / Grok 4.7: input: $5.00 / $2.00; output: $25.00 / $6.00; context window: 1,000,000 / 500,000; long-context threshold: none / 200,000; Batch API input: $2.50 / $1.60; Batch API output: $12.50 / $4.80.