xAI · synced 2026-08-11

grok-4-latest

Input / 1M
$3.00
Output / 1M
$15.00
Cached input
Context
256K

A 1,000-token prompt costs $0.00300 to send. Token counts for xAI models are estimated — approximated, because this family has no public tokenizer.

Long-context rate

Past 128K tokens in a single request, grok-4-latest switches to $6.00 input and $30.00 output per million — 2.0× the base input rate. Most calculators quote only the base figure.

Priced closest to this

Model Provider Input Output
claude-3-7-sonnet-20250219 Anthropic $3.00 $15.00
claude-4-sonnet-20250514 Anthropic $3.00 $15.00
claude-sonnet-4-20250514 Anthropic $3.00 $15.00
claude-sonnet-4-5 Anthropic $3.00 $15.00
claude-sonnet-4-6 Anthropic $3.00 $15.00
gpt-3.5-turbo-16k OpenAI $3.00 $4.00