Anthropic Claude Sonnet Latest vs xAI: Grok Latest

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

Anthropic Claude Sonnet LatestxAI: Grok Latest
Model idanthropic/claude-sonnet-latestx-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.