LimitDigest
Home / Compare / AI models / Grok 4.7 vs Claude Sonnet 5.5

Grok 4.7 vs Claude Sonnet 5.5

Official xAI and Anthropic API prices and LMArena scores, checked 2026-11-09. Add up to 2 more models to compare 4.

Verdict

Grok 4.7 costs less; Claude Sonnet 5.5 wins more LMArena tasks.

Same input price ($2 per 1M); Grok 4.7 is 1.7x cheaper on output. Claude Sonnet 5.5 scores 49 points higher for coding. Across 7 shared LMArena tasks, Claude Sonnet 5.5 leads 6 to 0 (1 tied). Claude Sonnet 5.5 has the longer context window (1M vs 500K tokens). A medium month (20M input + 5M output tokens) costs $70 on Grok 4.7 and $90 on Claude Sonnet 5.5.

  • Pick Grok 4.7 if you want the lower bill ($70 vs $90 for a medium month).
  • Pick Claude Sonnet 5.5 if you care most about coding (+49), agent tasks (+44) and reasoning and math (+31), you need the 1M context window or you reuse long prompts (cached input $0.10 vs $0.50).
Sample month

Medium: 20M input + 5M output tokens a month at list price (short-context rate, no caching or batch discounts).

Grok 4.7vsClaude Sonnet 5.5
Price per 1M tokens
Input$2$2
Cached input$0.50$0.10 (better)
Output$6 (better)$10
Sample month, medium$70 (better)$90
Context
Context window500K1M (better)
Quality (LMArena relative score, out of 100)
Coding3584 (better)
Chat07 (better)
Creative writing025 (better)
Roleplay and characters00
Reasoning and math031 (better)
Vision017 (better)
Long documentsn/an/a
Cheap bulk and agents4387 (better)

Marked side is better: lower for prices, higher for context and scores. Bars are scaled to the larger of the two.

Spec
Grok 4.7
Claude Sonnet 5.5
Price per 1M tokens
Input$2$2
Cached input$0.50$0.10
Output$6$10
Blend 3:1$3$4
Sample month, medium$70$90
Context
Context window500K tokens1M tokens
Quality (LMArena, out of 100)
Coding35/100 #16 of 5084/100 #2 of 50
Chat0/100 #37 of 517/100 #20 of 51
Creative writing0/100 #32 of 5125/100 #11 of 51
Roleplay and characters0/100 #42 of 510/100 #24 of 51
Reasoning and math0/100 #36 of 5131/100 #16 of 51
Vision0/100 #21 of 3317/100 #16 of 33
Long documentsNot rankedNot ranked
Cheap bulk and agents43/100 #12 of 3787/100 #2 of 37
Details
ProviderxAIAnthropic
API model idgrok-4.7claude-sonnet-5.5
NotesPrompts under 200K. Longer prompts cost $4 in, $12 out.5-minute cache writes $2.50.
Sources
Last checked2026-11-092026-11-09
Official pricingxAI pricingAnthropic pricing

API prices in USD per 1M tokens from each provider's official pricing page. Blend 3:1 = (3 x input + output) / 4. Sample month = stated input and output tokens at the list price, no caching. Quality: relative score out of 100 on each LMArena leaderboard (100 = top model we price on that board, n/a = not ranked there), data licensed CC BY 4.0. See how we pick.

Where each one ranks on LMArena

Relative score out of 100 on each leaderboard (100 = the top model we price there), with the rank among the models from our API price table that appear on that board.

  • Coding (Code Arena): Grok 4.7 #16 of 50 (35/100), Claude Sonnet 5.5 #2 of 50 (84/100)
  • Chat (Text Arena): Grok 4.7 #37 of 51 (0/100), Claude Sonnet 5.5 #20 of 51 (7/100)
  • Creative writing (Text Arena creative writing): Grok 4.7 #32 of 51 (0/100), Claude Sonnet 5.5 #11 of 51 (25/100)
  • Roleplay and characters (Text Arena multi-turn): Grok 4.7 #42 of 51 (0/100), Claude Sonnet 5.5 #24 of 51 (0/100)
  • Reasoning and math (Text Arena math): Grok 4.7 #36 of 51 (0/100), Claude Sonnet 5.5 #16 of 51 (31/100)
  • Vision (Vision Arena): Grok 4.7 #21 of 33 (0/100), Claude Sonnet 5.5 #16 of 33 (17/100)
  • Long documents (Document Arena): Grok 4.7 not ranked, Claude Sonnet 5.5 not ranked
  • Cheap bulk and agents (Agent Arena): Grok 4.7 #12 of 37 (43/100), Claude Sonnet 5.5 #2 of 37 (87/100)

Pricing details from the official pages

Grok 4.7 lists $2 input, $6 output, $0.50 cached input per 1M tokens on xAI pricing. Claude Sonnet 5.5 lists $2 input, $10 output, $0.10 cached input per 1M tokens on Anthropic pricing. Prices checked 2026-11-09.

  • Grok 4.7: Prompts under 200K. Longer prompts cost $4 in, $12 out.
  • Claude Sonnet 5.5: 5-minute cache writes $2.50.

Sample monthly bill at list price, no caching: Light (2M input + 0.5M output tokens): $7 vs $9. Medium (20M input + 5M output tokens): $70 vs $90. Heavy (200M input + 50M output tokens): $700 vs $900.

FAQ

Is Grok 4.7 cheaper than Claude Sonnet 5.5?

Grok 4.7 costs $2 input and $6 output per 1M tokens; Claude Sonnet 5.5 costs $2 and $10. For a medium month (20M input + 5M output tokens) Grok 4.7 is cheaper: $70 vs $90.

Which is better for coding, Grok 4.7 or Claude Sonnet 5.5?

On LMArena's Code Arena Grok 4.7 scores 35/100 (#16 of 50) and Claude Sonnet 5.5 84/100 (#2 of 50), so Claude Sonnet 5.5 is ahead by 49 points.

Which has the bigger context window?

Grok 4.7: 500K tokens. Claude Sonnet 5.5: 1M tokens. Long prompts can cost more; see the pricing notes above.

How much do Grok 4.7 and Claude Sonnet 5.5 cost per month?

Light (2M input + 0.5M output tokens): $7 vs $9. Medium (20M input + 5M output tokens): $70 vs $90. Heavy (200M input + 50M output tokens): $700 vs $900. Pick your own token counts in the plan vs API calculator.

Where do these numbers come from?

Prices come from each provider's official pricing page, checked daily. Quality is the relative score on the LMArena leaderboard dataset, licensed CC BY 4.0. Where a model is not ranked we show n/a.

Sources

Related