Claude Sonnet 5.5 vs Grok 4.7: API cost comparison

For a typical chatbot (1,500 input + 400 output tokens, 100,000 requests a month), Grok 4.7 is 33% cheaper: $555 vs $829 for Claude Sonnet 5.5. Paste your own prompt below to compare the exact cost of your workload.

0 characters0 words0 tokens (GPT o200k)

ModelInput tokensPrice / 1M (in → out)Per requestPer month
Claude Sonnet 5.5$2 → $10
Grok 4.7$2 → $6

≈ = estimated token count: only OpenAI publishes its tokenizer. Claude counts use Anthropic’s published ratios; use the count_tokens API for an exact number.

Price per million tokens

USD, standard tier. Prices checked on October 28, 2026.

Claude Sonnet 5.5Grok 4.7
Input$2$2
Output$10$6
Cached input$0.1$0.5
Cache write (5 min)$2.5Not charged separately
Long promptsSame price at any lengthAbove 200K tokens: $4 / $12
Batch API50% off20% off
ProviderAnthropic (Claude)xAI (Grok)

Monthly cost for common workloads

WorkloadClaude Sonnet 5.5Grok 4.7
Chatbot
1,500 input + 400 output tokens, 100,000 requests a month
$829$555
Document Q&A (RAG)
8,000 input + 500 output tokens, half the input cached, 20,000 requests a month
$340$270
Long-document summary
150,000 input + 2,000 output tokens, 1,000 requests a month
$449$327
Bulk classification (Batch API)
500 input + 20 output tokens, 1 million requests a month, Batch API where available
$815$936

Token counts are converted per model: the same text becomes a different number of tokens on each provider (see below). The cheaper option in each row is highlighted.

Frequently asked questions

Is Claude Sonnet 5.5 cheaper than Grok 4.7?

Per million tokens, Claude Sonnet 5.5 costs $2 / $10 (input / output) and Grok 4.7 costs $2 / $6. For a typical chatbot workload (1,500 input + 400 output tokens, 100,000 requests a month), Grok 4.7 is 33% cheaper: $555 vs $829 for Claude Sonnet 5.5. Token counts differ between providers, so compare the cost of the same prompt rather than the price per token.

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

Claude Sonnet 5.5: $2 / $10 for input / output, $0.1 for cached input. Grok 4.7: $2 / $6, $0.5 for cached input. Prices in US dollars, standard tier, checked on October 28, 2026.

Do Claude Sonnet 5.5 and Grok 4.7 count tokens the same way?

Claude Sonnet 5.5 uses Anthropic's newer tokenizer, which produces about 30% more tokens than earlier Claude models. We estimate about 1.43× the GPT o200k count for the same text. Grok 4.7's tokenizer is not published. We estimate about 1.05× the GPT o200k count for the same text.

Do Claude Sonnet 5.5 and Grok 4.7 have a Batch API discount?

Both do: Claude Sonnet 5.5 gets 50% off and Grok 4.7 20% off for requests sent through the Batch API, which may take up to 24 hours.

Related comparisons

More calculators