Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Model comparison - Similar price, same tier

Claude Sonnet 5.5 vs Grok 4.7

Claude Sonnet 5.5 is from Anthropic and Grok 4.7 is from xAI. On list price, both charge $2 per 1M input tokens, and Claude Sonnet 5.5 charges 1.7x Grok 4.7's output price ($10 vs $6 per 1M tokens). Claude Sonnet 5.5 has a 1,000,000-token context window and Grok 4.7 500,000 tokens; Claude Sonnet 5.5 returns up to 128,000 output tokens per response, and no primary source states a max output for Grok 4.7. Claude Sonnet 5.5 was released on September 28, 2026 and Grok 4.7 on September 21, 2026. Both are closed-weights models, available only through an API.

Last verified from each provider's pricing page. All sources

Anthropic - Closed

Claude Sonnet 5.5
Input / 1M
$2
Output / 1M
$10
Context
1M

xAI - Closed

Grok 4.7
Input / 1M
$2
Output / 1M
$6
Context
500K

Side-by-side specs

SpecClaude Sonnet 5.5Grok 4.7
ProviderAnthropicxAI
Input / 1M tokens$2$2
Output / 1M tokens$10$6
Cache read / 1M$0.10$0.50
Cache write / 1M$2.50-
Batch input / 1M$1-
Batch output / 1M$5-
Long-context rates above-200,000 tokens
Context window1,000,000500,000
Max output128,000-
Release date
WeightsClosedClosed
API model idclaude-sonnet-5-5grok-4.7
AI Gateway idanthropic/claude-sonnet-5.5spacexai/grok-4.7
Last verified

Prices in USD per 1M tokens at each provider's standard first-party rate. A dash means the provider does not bill that item separately or no primary page states it.

What each costs in practice

The same three workloads every model page uses, worked from each model's standard list rates. Swap in your own token counts with the math on each model's page.

WorkloadClaude Sonnet 5.5Grok 4.7
One agent session1M input tokens and 100K output tokens, no caching.$3.00$2.60
A chat app10,000 requests a day at 2K input and 500 output tokens each.$90.00$2,700.00 per 30-day month$70.00$2,100.00 per 30-day month
The same session at a 90% cache hit90% of the input is read from the prompt cache. The one-time cache write premium is not included.$1.29$1.25
Show the math

Claude Sonnet 5.5

  • One agent sessionInput: 1M x $2 = $2.00Output: 0.1M x $10 = $1.00
  • A chat appInput: 20M x $2 = $40.00Output: 5M x $10 = $50.00
  • The same session at a 90% cache hitCached input: 0.9M x $0.10 = $0.09Uncached input: 0.1M x $2 = $0.20Output: 0.1M x $10 = $1.00

Grok 4.7

  • One agent sessionInput: 1M x $2 = $2.00Output: 0.1M x $6 = $0.60
  • A chat appInput: 20M x $2 = $40.00Output: 5M x $6 = $30.00
  • The same session at a 90% cache hitCached input: 0.9M x $0.50 = $0.45Uncached input: 0.1M x $2 = $0.20Output: 0.1M x $6 = $0.60

Benchmarks under the same setting

No board in the benchmark directory lists both Claude Sonnet 5.5 and Grok 4.7 under the same setting, so there is no like-for-like score to show here.

Set them up in your tools

Step-by-step guides whose official docs list Claude Sonnet 5.5 or Grok 4.7 by model id.

Model pages

FAQ

How do Claude Sonnet 5.5 and Grok 4.7 compare on price?

On list price, both charge $2 per 1M input tokens, and Claude Sonnet 5.5 charges 1.7x Grok 4.7's output price ($10 vs $6 per 1M tokens). For one agent session of 1M input and 100K output tokens with no caching, that is $3.00 on Claude Sonnet 5.5 and $2.60 on Grok 4.7. Prices are each provider's first-party list rates, verified October 17, 2026 and October 17, 2026.

What are the context windows of Claude Sonnet 5.5 and Grok 4.7?

Claude Sonnet 5.5 has a 1,000,000-token context window and Grok 4.7 500,000 tokens; Claude Sonnet 5.5 returns up to 128,000 output tokens per response, and no primary source states a max output for Grok 4.7.

Are Claude Sonnet 5.5 and Grok 4.7 open weights?

Claude Sonnet 5.5 is closed-weights and is called through Anthropic's API as claude-sonnet-5-5. Grok 4.7 is closed-weights and is called through xAI's API as grok-4.7.

More comparisons

Sources

Claude Sonnet 5.5 verified from platform.claude.com; Grok 4.7 verified from docs.x.ai. This page is as current as the older of the two: .

Newsletter

Get model price changes as they ship

One email per week. New model releases, price cuts and what they mean for your bill.