Anthropic: Claude Sonnet 5 vs xAI: Grok Latest

They cost about the same for input tokens: Anthropic: Claude Sonnet 5 $2.00 per M, xAI: Grok Latest $2.00 per M. xAI: Grok Latest is 1.7× cheaper for output tokens: Anthropic: Claude Sonnet 5 costs $10.00 per M and xAI: Grok Latest costs $6.00 per M. Anthropic: Claude Sonnet 5 reads more: Anthropic: Claude Sonnet 5 takes up to 1,000,000 tokens of context and xAI: Grok Latest up to 500,000.

Anthropic: Claude Sonnet 5xAI: Grok Latest
Model idanthropic/claude-sonnet-5x-ai/grok-latest
Input$2.00 per M$2.00 per M
Output$10.00 per M$6.00 per M
Context length1,000,000 tokens500,000 tokens
Acceptsfile, image, textfile, image, text
Producestexttext
Served byanthropicxai

Prices are the providers' list prices per million tokens, as of . Both run on your own provider key through one OpenAI-compatible endpoint, with no fee on the tokens.