xAI's model for coding and knowledge work, launched September 2026 as the successor to Grok 4.6 at the same price and speed. it takes text and images, and reasoning is always on.
pick it if
you want xAI's top model for coding and multi-hour terminal tasks
your prompts repeat: cached input bills at a quarter of the input rate
you need text and image input in one 500K window
skip it if
Grok Build 0.1 fits your work: half the input, a third the output price
you need a non-reasoning mode: reasoning on Grok 4.7 cannot be disabled
Claude Sonnet 5 was Anthropic's mid-tier Sonnet model, released June 2026 with adaptive thinking and text plus image input. it was retired in favour of Claude Sonnet 5.5, which kept the same $2 / $10 price.
pick it if
you wanted agentic work Anthropic placed close to Opus 4.8, at lower prices
you reused long prompts: cache reads billed at a tenth of input
you needed image input alongside adaptive thinking
skip it if
you are choosing today; Sonnet 5.5 replaced it at the same $2 / $10
faq
which is cheaper, Grok 4.7 or Claude Sonnet 5?
Grok 4.7 lists the lower output price; input prices match. on a coding-agent session (2M tokens in, 60,000 out) Grok 4.7 costs $4.36 and Claude Sonnet 5 $4.60.
which has the larger context window?
Grok 4.7 offers the larger context window. Grok 4.7: 500k tokens; Claude Sonnet 5: 200k tokens.
try either model
switch between models inside the same octomind session.