xAI
xAI's frontier model for coding and knowledge work.
Knowledge cutoff May 2026. xAI has not published a maximum output length. Reasoning effort is low, medium, high (default) or xhigh. $0.05/$0.10 per M below 200K prompt tokens; cached input $0.05/M.
Latency
0.8s
Context
500K
Input
$0.05/M
Output
$0.10/M
{
"model": "grok-4-7",
"messages": [
{
"role": "user",
"content": "Hello, world."
}
]
}