Claude Sonnet 5.5 vs Grok 4.7 API pricing
Updated
Claude Sonnet 5.5: USD 2 input, USD 10 output per 1M tokens (Anthropic and 4 others). Grok 4.7: USD 2 input, USD 6 output per 1M tokens (xAI and 4 others). At 3 input tokens per output token, Claude Sonnet 5.5 costs 33% more than Grok 4.7 (USD 4 vs USD 3 per 1M).
How do Claude Sonnet 5.5 and Grok 4.7 differ on price?
- Cheapest input price: both USD 2 per 1M tokens.
- Cheapest output price: Grok 4.7 USD 6 against USD 10 per 1M tokens, so Claude Sonnet 5.5 costs 1.67× as much (67% more).
- Among the 201 indexed models, Claude Sonnet 5.5 ranks 172nd cheapest and Grok 4.7 160th on the 3:1 blend.
- No input:output mix changes the answer: Grok 4.7 is cheaper at every mix before cache discounts.
- Both list cached-input discounts: Claude Sonnet 5.5 at 5 standard prices of 6, from USD 0.10 (Anthropic, 95% below that provider's input price); Grok 4.7 at 6 standard prices of 6, from USD 0.50 (xAI, 75% below that provider's input price).
- Claude Sonnet 5.5 states up to 1,000,000 tokens of context, 1.91× the 524,288 of Grok 4.7.
- Both have 6 providers with a standard price; 3 providers sell both (Google Vertex AI, Perplexity and Amazon Bedrock).
- On one account, Google Vertex AI charges USD 4 for Claude Sonnet 5.5 (its cheapest price) and USD 3 for Grok 4.7 (its cheapest price) at 3:1, tied with 1 other provider for the lowest combined price among the providers that sell both.
- Shopping around matters equally: on both, the dearest standard price is 1.1× the cheapest.
- Anthropic's own API is one of 5 providers tied for the lowest standard price we found for Claude Sonnet 5.5, USD 4 at 3:1.
- xAI's own API is one of 5 providers tied for the lowest standard price we found for Grok 4.7, USD 3 at 3:1.
- Claude Sonnet 5.5 has a batch price at 2 providers, from USD 2 at 3:1 (Anthropic); Grok 4.7 has no batch price on file.
- For the one-developer coding agent preset, the gap is USD 3,024 a year in Claude Sonnet 5.5's favour (Claude Sonnet 5.5 USD 1,593 a month, Grok 4.7 USD 1,845).
Claude Sonnet 5.5 and Grok 4.7 prices side by side
USD per 1M tokens, standard tier. "Cheapest" is the lowest price at 3 input tokens to 1 output token; each line can come from a different provider.
| Price | Claude Sonnet 5.5 | Grok 4.7 |
|---|---|---|
| Model page | Claude Sonnet 5.5 Anthropic · 6 providers | Grok 4.7 xAI · 6 providers |
| Cheapest standard price, blended 3:1 | USD 4 USD 2 in / USD 10 out at Anthropic and 4 others Anthropic page checked 2026-11-14 | USD 3 lower USD 2 in / USD 6 out at xAI and 4 others xAI page checked 2026-11-14 |
| Cheapest input | USD 2 tie Anthropic source | USD 2 tie xAI source |
| Cheapest cached input | USD 0.10 lower Anthropic source | USD 0.50 xAI source |
| Cheapest output | USD 10 Anthropic source | USD 6 lower xAI source |
| Maker's own API | USD 2 / USD 10 Anthropic source | USD 2 / USD 6 xAI source |
| Median standard price | USD 2 / USD 10 input / output, 6 prices | USD 2 / USD 6 input / output, 6 prices |
| Context window | 1,000,000 tokens, largest stated | 524,288 tokens, largest stated; from 500,000 at some providers |
| Providers with a standard price | 6 | 6 |
- Lower marks the lower price on a line; tie, equal prices. Other tiers and free rows are on the model pages.
Report a wrong price or number (email to info@broadnet.ai, with this page's link filled in).
What do Claude Sonnet 5.5 and Grok 4.7 cost for a real workload?
30 days at each model's cheapest standard price for the workload (presets of the cost calculator; cached input at the cached price where listed).
| Workload | Claude Sonnet 5.5 | Grok 4.7 | Difference |
|---|---|---|---|
| Support chatbot 2,000 requests a day, 1,500 input tokens (60% cached), 300 output | USD 257.40 Anthropic | USD 207.00 xAI | USD 50.40 Grok 4.7 lower |
| RAG over documents 1,000 requests a day, 8,000 input tokens (30% cached), 500 output | USD 493.20 Anthropic | USD 462.00 xAI | USD 31.20 Grok 4.7 lower |
| Coding agent (one developer) 1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning | USD 1,593 Anthropic | USD 1,845 xAI | USD 252.00 Claude Sonnet 5.5 lower |
The cheaper model depends on the workload: Grok 4.7 for Support chatbot, Grok 4.7 for RAG over documents, Claude Sonnet 5.5 for Coding agent (one developer). Cache-heavy work rewards a low cached-input price. The widest gap is on Support chatbot: the dearer model costs 24% more than the cheaper one.
Does the cheaper model change with your input:output ratio?
Grok 4.7 is cheaper at every mix of input and output tokens, before cache discounts: its cheapest input price and its cheapest output price are both at or below Claude Sonnet 5.5's, so the input:output ratio never changes the answer. On input price alone they tie.
| Input : output tokens | Claude Sonnet 5.5 | Grok 4.7 |
|---|---|---|
| 1 : 3 (long answers) | USD 8 Anthropic | USD 5 lower xAI |
| 1 : 1 | USD 6 Anthropic | USD 4 lower xAI |
| 3 : 1 (the site’s blend) | USD 4 Anthropic | USD 3 lower xAI |
| 10 : 1 (retrieval, long prompts) | USD 2.727 Anthropic | USD 2.364 lower xAI |
| 30 : 1 (agents, big contexts) | USD 2.258 Anthropic | USD 2.129 lower xAI |
USD per 1M tokens at the cheapest standard provider for each mix, before cache discounts. Thinking tokens bill as output.
What do Claude Sonnet 5.5 and Grok 4.7 cost per character in other languages?
Not measured: the real cost by language dataset covers only tokenizers we could measure from published files, and Claude Sonnet 5.5 and Grok 4.7 are not among them. Count tokens on your own text with the counters below.
Check it on your own traffic
- Claude Sonnet 5.5 API pricing: all 6 providers and other tiers.
- Grok 4.7 API pricing: all 6 providers and other tiers.
- Cost calculator with Claude Sonnet 5.5 and Grok 4.7 preloaded
- Token counter
- Prompt caching calculator
More comparisons: Claude Sonnet 5.5 vs Claude Sonnet 5 · GPT-6 Sol vs Claude Sonnet 5.5 · Claude Sonnet 5.5 vs Kimi K3 · Claude Sonnet 5.5 vs Gemini 4 Hydrogen · Claude Opus 5.5 vs Claude Sonnet 5.5 · Claude Sonnet 5.5 vs GLM 5.3 · Grok 4.7 vs Grok 4.6 · GPT-6 Sol vs Grok 4.7 · Grok 4.7 vs Grok 4.5 · every Claude Sonnet 5.5 comparison · every Grok 4.7 comparison · all 662 price comparisons
Questions
Is Claude Sonnet 5.5 cheaper than Grok 4.7?
No. On a blend of 3 input tokens to 1 output token, Grok 4.7 costs USD 3 per 1M tokens and Claude Sonnet 5.5 USD 4, at each model's cheapest standard price. For input alone, both start at USD 2 per 1M; for output alone, Grok 4.7 is (USD 6 against USD 10). This compares price only, not quality.
What do Claude Sonnet 5.5 and Grok 4.7 cost per 1M tokens?
Claude Sonnet 5.5: from USD 2 input and USD 10 output at Anthropic and 4 others; Anthropic's own API charges USD 2 / USD 10; median of 6 standard prices USD 2 / USD 10. Grok 4.7: from USD 2 input and USD 6 output at xAI and 4 others; xAI's own API charges USD 2 / USD 6; median of 6 standard prices USD 2 / USD 6. Each price is read from the provider's own pricing page; the source is linked in the table.
Which providers sell both Claude Sonnet 5.5 and Grok 4.7?
3 providers have a standard price for both: Google Vertex AI (USD 4 and USD 3 at 3:1), Perplexity (USD 4 and USD 3 at 3:1), Amazon Bedrock (USD 4.40 and USD 3.30 at 3:1). The first 2 tie for the lowest combined price. Buying each model from its own cheapest provider costs USD 4 and USD 3.
Which is cheaper for a coding agent or a chatbot, Claude Sonnet 5.5 or Grok 4.7?
For a coding agent (1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning): USD 1,593 a month on Claude Sonnet 5.5 (Anthropic) against USD 1,845 on Grok 4.7 (xAI), a difference of USD 252.00. For a support chatbot (2,000 requests a day, 1,500 input tokens (60% cached), 300 output): USD 257.40 a month on Claude Sonnet 5.5 (Anthropic) against USD 207.00 on Grok 4.7 (xAI), a difference of USD 50.40. Each uses the cheapest standard price for that workload, cached input included. Try your own numbers.
At what input:output ratio does the cheaper of Claude Sonnet 5.5 and Grok 4.7 change?
Grok 4.7 is cheaper at every mix of input and output tokens, before cache discounts: its cheapest input price and its cheapest output price are both at or below Claude Sonnet 5.5's, so the input:output ratio never changes the answer. On input price alone they tie.
Do Claude Sonnet 5.5 and Grok 4.7 have cached input pricing?
Claude Sonnet 5.5 from USD 0.10 per 1M cached input tokens (Anthropic; 5 of 6 standard prices list a discount). Grok 4.7 from USD 0.50 per 1M cached input tokens (xAI; 6 of 6 standard prices list a discount). Cached tokens are billed at the input price where no cache price is published.
Which has the larger context window, Claude Sonnet 5.5 or Grok 4.7?
Claude Sonnet 5.5: up to 1,000,000 tokens, against 524,288 for Grok 4.7, as stated on providers' pricing pages. Some providers offer less than the maximum; check the model pages before you pick the cheapest row for long prompts.
Read as MarkdownAsk ChatGPTAsk ClaudeAsk Perplexity
Sources
- Anthropic: own API pricing (checked 2026-11-14)
- DeepInfra: pricing (checked 2026-11-14)
- DigitalOcean: pricing (checked 2026-11-14)
- Google Vertex AI: pricing (checked 2026-11-14)
- Perplexity: pricing (checked 2026-11-15)
- xAI: own API pricing (checked 2026-11-14)
- GMI Cloud: pricing (checked 2026-11-15)
- Microsoft Azure: pricing (checked 2026-11-14)
- Amazon Bedrock: pricing (checked 2026-11-14)
- Amazon Bedrock: pricing (checked 2026-11-14)