Claude Sonnet 5 vs Grok 4.7
Compare Claude Sonnet 5 and Grok 4.7 side-by-side.
Compare Claude Sonnet 5 vs Grok 4.7 live
Run the same image across every model that supports a task and compare their outputs side-by-side.
These models don't share enough common tasks for a side-by-side demo. See the comparison table below for their capabilities.
Models in this comparison
Claude Sonnet 5 vs Grok 4.7 on Vision Evals
Grok 4.7 scores higher on 5 of the six Vision Evals tasks.
The widest gap is Reasoning, where Grok 4.7 leads 64.2% to 43.0%.
Overall, Claude Sonnet 5 averages 66.4% (#33 of 54) against 71.9% (#22 of 54) for Grok 4.7.
Claude Sonnet 5 is both cheaper ($0.0064 vs $0.012 per sample) and faster (4.8s vs 23.6s per sample).
Claude Sonnet 5 vs Grok 4.7 Comparison Table
Evals updated September 22, 2026Pricing updated September 22, 2026
| Property | Claude Sonnet 5 | Grok 4.7 |
|---|---|---|
| Organization | Anthropic | SpaceXAI |
| Category | closed | closed |
| Modality | multimodal | — |
| Release Date | Jun 2026 | Sep 2026 |
| Context Window | 1.0M | 500K |
| Parameters | ||
| License | Proprietary | Proprietary |
| Pricing per 1M tokens | ||
| Input $/1M | $2.00 | $1.60 |
| Output $/1M | $10.00 | $4.80 |
| Vision Tasks | ||
| Captioning | Demo | |
| Chart Question Answering | ||
| Classification | Demo | |
| Document Question Answering | ||
| Image Tagging | ||
| Multi-Label Classification | ||
| Object Detection | Demo | |
| OCR | Demo | |
| Vision Language | ||
| Visual Question Answering | Demo | |
| Model Features | ||
| Foundation Vision | ||
| LLMs with Vision Capabilities | ||
| Multimodal Vision | ||
Vision Evalsground-truth scores across 6 vision tasks, pooled at low effort | ||
| Overall | 66.4% | 71.9% |
| Avg cost / sample | $0.0064 | $0.012 |
| Avg speed / sample | 4.84s | 23.55s |
| By task | ||
| Object Detection (low) | 36.1% | 40.4% ±0.6, Mean of 3 runs, range 39.8 to 41.0 |
| Object Detection (high) | – | 41.2% ±1.6, Mean of 3 runs, range 39.6 to 42.8 |
| Counting (low) | 56.8% | 61.7% ±1.3, Mean of 3 runs, range 60.8 to 63.5 |
| Counting (high) | – | 60.8% ±1.3, Mean of 3 runs, range 59.5 to 62.2 |
| Identification (low) | 81.3% | 87.5% ±3.1, Mean of 3 runs, range 84.4 to 90.6 |
| Identification (high) | – | 80.2% ±1.6, Mean of 3 runs, range 78.1 to 81.3 |
| OCR (low) | 91.7% | 92.6% ±0.7, Mean of 3 runs, range 92.1 to 93.4 |
| OCR (high) | – | 93.5% ±0.3, Mean of 3 runs, range 93.1 to 93.8 |
| Data Extraction (low) | 89.7% | 84.9% ±2.6, Mean of 3 runs, range 82.5 to 87.6 |
| Data Extraction (high) | – | 87.6% ±1.5, Mean of 3 runs, range 86.6 to 89.7 |
| Reasoning (low) | 43.0% | 64.2% ±2.3, Mean of 3 runs, range 62.3 to 66.9 |
| Reasoning (high) | 43.0% | 66.9% ±1.3, Mean of 3 runs, range 65.6 to 68.2 |
Claude Sonnet 5 vs Grok 4.7: Overview
Claude Sonnet 5 is a mid-tier large language model from Anthropic, released on June 30, 2026, as the latest model in the Sonnet series and a direct successor to Claude Sonnet 4.6. It is a hybrid reasoning model designed primarily for agentic workflows, software coding, and professional tasks. The model features a 1 million token context window, a 128k maximum output token limit, and runs adaptive thinking by default, giving API users fine-grained control over reasoning effort across five levels (low, medium, high, max, and extra-high). It uses an updated tokenizer shared with Opus 4.7 and later models, which produces approximately 30% more tokens for equivalent text compared to earlier Claude models. On benchmarks, Sonnet 5 scores 63.2% on agentic coding and 81.2% on OSWorld, narrowing the gap with Opus 4.8 while remaining at Sonnet-tier pricing.
The model supports text and image input with text output, and accepts tools including browsers and terminals for autonomous multi-step task execution. Anthropic's safety evaluations report that Sonnet 5 shows a lower rate of undesirable behaviors than Sonnet 4.6 and is generally safer in agentic contexts, with improved resistance to prompt injection and reduced sycophancy. Cybersecurity safeguards equivalent to those on Opus 4.7 and 4.8 are active, though Anthropic notes the model was not deliberately trained on cybersecurity tasks. The model is proprietary and API-only, with no open weights.
Grok 4.7 is a proprietary model from SpaceXAI, released on September 21, 2026. It accepts text and images as input and returns text. It extends Grok 4.6 and is listed at the same API price.
Its Vision Evals scores are on the leaderboard. Running it in the Playground is not available yet, because the inference workflow is not ready.
Frequently Asked Questions
On Roboflow's Vision Evals, Grok 4.7 performed better. It scores higher on 5 of the six vision tasks and averages 71.9% (#22 of 54) against 66.4% (#33 of 54) for Claude Sonnet 5. These scores measure vision capabilities only; either model may perform differently on work outside this benchmark's tasks.
No. On the Vision Evals Reasoning benchmark at low effort, Grok 4.7 leads with 64.2% against 43.0%. This is the widest gap between the two models across the benchmark's tasks.
Claude Sonnet 5 is cheaper to run. Across Roboflow's Vision Evals task mix it averaged $0.0064 per sample against $0.012. Claude Sonnet 5 is priced at $2.00 per 1M input tokens and $10.00 per 1M output; Grok 4.7 is priced at $1.60 per 1M input tokens and $4.80 per 1M output. Actual costs depend on your image sizes, prompts, and output length.
Claude Sonnet 5 is faster. Across Roboflow's Vision Evals it averaged 4.8s per inference against 23.6s. Latency varies with image size, prompt length, and provider load, so treat these as relative rather than guaranteed figures.