47 model prices
  1. Home
  2. Models
  3. Comparisons
  4. Claude Sonnet 5.5 vs Grok 4.7

Claude Sonnet 5.5 vs Grok 4.7: API pricing and context window

Grok 4.7 and Claude Sonnet 5.5 cost the same for input ($2.00 per 1M tokens); Grok 4.7 is 40% cheaper for output ($6.00 vs $10.00). Context window: 1,000,000 tokens for Claude Sonnet 5.5, 500,000 for Grok 4.7. A 10K-input, 1K-output request costs $0.03 on Claude Sonnet 5.5 and $0.026 on Grok 4.7.

Last updated: Pricing data: LiteLLM (MIT)

Claude Sonnet 5.5
$2.00 / $10.00
Input / Output, per 1M tokens · 1M context window
Grok 4.7
$2.00 / $6.00
Input / Output, per 1M tokens · 500K context window

Side by side

FieldClaude Sonnet 5.5Grok 4.7Claude Sonnet 5.5 vs Grok 4.7
Input$2.00$2.00
Output$10.00$6.00+67%
Cached input$0.10$0.50-80%
Context window1,000,000500,000+100%
Long-context thresholdnone200,000
Batch API input$1.00$1.60-38%
Batch API output$5.00$4.80+4%
Image inputYesYes
Function callingYesYes
ReasoningYesYes
Prompt cachingYesYes
Web searchYesYes
Structured outputYesYes

Cost per task

TaskClaude Sonnet 5.5Grok 4.7Cheaper
Chat request (10K in + 1K out)$0.03$0.026Grok 4.7 (13% less)
Codebase question (100K in + 2K out)$0.22$0.212Grok 4.7 (4% less)
Same question, context cached (100K cached + 2K out)$0.03$0.062Claude Sonnet 5.5 (52% less)
Long document (300K in + 4K out)$0.64$1.25Claude Sonnet 5.5 (49% less)
1M tokens a month (750K in + 250K out)$4.00$3.00Grok 4.7 (25% less)

Estimate your own workload in the calculator

Which one to pick

Full pages: Claude Sonnet 5.5 · Grok 4.7

More comparisons

Questions

Which is cheaper, Claude Sonnet 5.5 or Grok 4.7?

Grok 4.7 and Claude Sonnet 5.5 cost the same for input ($2.00 per 1M tokens); Grok 4.7 is 40% cheaper for output ($6.00 vs $10.00). A 10K-input, 1K-output request costs $0.03 on Claude Sonnet 5.5 and $0.026 on Grok 4.7.

Which has the larger context window, Claude Sonnet 5.5 or Grok 4.7?

Claude Sonnet 5.5 accepts more: 1,000,000 input tokens, against 500,000 for Grok 4.7.

How much does a typical request cost on Claude Sonnet 5.5 and Grok 4.7?

A chat request with 10K input and 1K output tokens costs $0.03 on Claude Sonnet 5.5 and $0.026 on Grok 4.7. A 100K-token codebase question with a 2K answer costs $0.22 and $0.212.

What are the differences between Claude Sonnet 5.5 and Grok 4.7?

Claude Sonnet 5.5 / Grok 4.7: output: $10.00 / $6.00; cached input: $0.10 / $0.50; context window: 1,000,000 / 500,000; long-context threshold: none / 200,000; Batch API input: $1.00 / $1.60; Batch API output: $5.00 / $4.80.