Claude Sonnet 5 vs Grok 4.7
anthropic/claude-sonnet-5 · x-ai/grok-4.7
As of October 26, 2026, Grok 4.7 is the cheaper API on UberLLM: $0.0400 per million input tokens and $0.1200 per million output, versus $0.3400 / $1.70 for Claude Sonnet 5 — about 93% less on a blended 3:1 token mix. Both are reached through one OpenAI-compatible key and routed to the cheapest healthy seller, with no UberLLM fee added, so the price you see is the price you pay. Choose Grok 4.7 to cut cost; choose Claude Sonnet 5 when context size wins — Claude Sonnet 5 carries the larger context window (1,000,000 vs 500,000 tokens), which can matter for long-document work.
Claude Sonnet 5 vs Grok 4.7, side by side
| Spec | Claude Sonnet 5 | Grok 4.7 |
|---|---|---|
| Price · input / 1M | $0.3400 | $0.0400 |
| Price · output / 1M | $1.70 | $0.1200 |
| Context length | 1,000,000 | 500,000 |
| Max output tokens | 64,000 | 450,000 |
| Input modalities | text | text, image, file |
| Output modalities | text | text |
| Tools / functions | Yes | Yes |
| Vision (image input) | — | Yes |
| Reasoning | Yes | Yes |
| Cheapest seller | UberLLM | pyro |
| % off list | 83% off | 98% off |
Live prices via UberLLM, routed to the cheapest healthy seller. The price shown has no UberLLM fee added. Updated October 26, 2026.
Claude Sonnet 5 vs Grok 4.7 — FAQ
Is Claude Sonnet 5 or Grok 4.7 cheaper?
Grok 4.7 is cheaper on a blended token mix, by about 93%. UberLLM routes every request to the cheapest healthy seller and bills the price shown, with no fee added.
What's the price difference between Claude Sonnet 5 and Grok 4.7?
Claude Sonnet 5: $0.3400 in / $1.70 out per 1M tokens. Grok 4.7: $0.0400 in / $0.1200 out per 1M tokens. That's roughly a 93% blended difference. Prices are live; UberLLM adds no fee.
Can I use both Claude Sonnet 5 and Grok 4.7 with one API?
Yes. Both are served through a single OpenAI-compatible endpoint — set the base URL to https://api.uberllm.dev/v1 and your UberLLM key, then switch between them by changing the model id. Anthropic SDKs work via https://api.uberllm.dev/v1/messages.