Anthropic: Claude Sonnet 5 vs SpaceXAI: Grok 4.5

They cost about the same for input tokens: Anthropic: Claude Sonnet 5 $2.00 per M, SpaceXAI: Grok 4.5 $2.00 per M. SpaceXAI: Grok 4.5 is 1.7× cheaper for output tokens: Anthropic: Claude Sonnet 5 costs $10.00 per M and SpaceXAI: Grok 4.5 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 SpaceXAI: Grok 4.5 up to 500,000.

Anthropic: Claude Sonnet 5SpaceXAI: Grok 4.5
Model idanthropic/claude-sonnet-5x-ai/grok-4.5
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.