Grok 4.7 vs Claude Sonnet 5.5: pricing compared
For a 30-step coding agent run, Claude Sonnet 5.5 is 1.8x cheaper ($0.83 vs $1.45). Prices verified 2026-11-17.
| Grok 4.7 | Claude Sonnet 5.5 | |
|---|---|---|
| Provider | xAI | Anthropic |
| Input / 1M | $2.00 | $2.00 |
| Cached input / 1M | $0.50 | $0.10 |
| Output / 1M | $6.00 | $10.00 |
| Batch discount | 20% | 50% |
| Context window | 500K | 1M |
| Long-context tier | above 200K | none |
Cost on real workloads
| Workload | Grok 4.7 | Claude Sonnet 5.5 |
|---|---|---|
| 10,000 chatbot replies 2,000 input + 400 output tokens each, 50% of the prompt cached | $49.00 | $61.00 |
| One 30-step coding agent run 12K system + tools prompt, 1K output and 3K tool result per step, caching on | $1.45 | $0.83 |
| 1M documents classified (batch) 600 input + 20 output tokens each, batch API where available | $1,056 | $700 |
Price is only half the decision: a cheaper model that needs more steps or retries can cost more per finished task. Run your own numbers in the calculator (both models pinned), or see how both rank in the use-case guides. Every other model is in the pricing comparison, and the token counter shows how many tokens your prompt is on each.
FAQ
Is Grok 4.7 cheaper than Claude Sonnet 5.5?
For a typical 30-step coding agent run with caching, Claude Sonnet 5.5 costs $0.83 and Grok 4.7 costs $1.45, so Claude Sonnet 5.5 is 1.8x cheaper. Per 1M tokens, Grok 4.7 is $2.00 / $6.00 and Claude Sonnet 5.5 is $2.00 / $10.00.
Which has the bigger context window?
Grok 4.7: 500,000 tokens. Claude Sonnet 5.5: 1,000,000 tokens.