Claude Sonnet 5 vs Grok 4.7
Price and specs side by side · USD per 1M tokens · verified 2026-11-22
// side by side
| metric | Claude Sonnet 5 | Grok 4.7 |
|---|
| input / 1M | $2.00 | $2.00 |
| output / 1M | $10.00 | $6.00 |
| blended (3:1) | $4.00 | $3.00 |
| cache read / 1M | $0.20 | $0.50 |
| context | 1M | 500K |
| max output | 128K | 500K |
| input types | text · image · pdf | text · image · pdf |
| reasoning | yes | yes |
| tool calling | yes | yes |
| structured output | yes | yes |
| open weights | no | no |
| released | 2026-06-29 | 2026-09-21 |
| knowledge cutoff | 2026-01-31 | 2026-05 |
| lab | Anthropic | xAI |
// monthly cost scenarios
| workload | tokens in / out | Claude Sonnet 5 | Grok 4.7 |
|---|
| Chatbot | 10M / 2M | $40.00 | $32.00 |
| RAG app | 50M / 5M | $150 | $130 |
| Coding agent | 20M / 10M | $140 | $100 |
// verdict
- Grok 4.7 is 25% cheaper than Claude Sonnet 5 on a blended 3:1 input/output basis.
- Claude Sonnet 5 has the larger context window (1M vs 500K tokens).
- Chatbot (10M input / 2M output tokens per month): Grok 4.7 costs $32.00 vs $40.00 for Claude Sonnet 5, saving $8.00 per month.
- RAG app (50M input / 5M output tokens per month): Grok 4.7 costs $130 vs $150 for Claude Sonnet 5, saving $20.00 per month.
- Coding agent (20M input / 10M output tokens per month): Grok 4.7 costs $100 vs $140 for Claude Sonnet 5, saving $40.00 per month.
// Claude Sonnet 5 or Grok 4.7: which one to choose
- Choose Grok 4.7 for cost-sensitive, high-volume workloads.
- Choose Claude Sonnet 5 for long documents and large codebases (1M-token context).