xAI
Grok 4
Released Jul 9, 2025 · 137B tokens this week · 2 providers
Overview
xAI's flagship, built around long reasoning traces and live tool use. Competitive at the top of mathematics and science evaluations and comfortable with images. Its search integration makes it useful for questions about very recent events.
Providers
Reference data — not yet measured from live traffic
| PROVIDER | MAX OUT | OUTPUT /M | QUANT | |||||
|---|---|---|---|---|---|---|---|---|
xAICheapest | 256K | 64K | $3.00 | $15.00 | 187ms | 66 | 99.70% | Full |
Azure AI Foundry | 131K | 64K | $3.36 | $16.80 | 1,080ms | 58 | 99.60% | Full |
Latency p50 reflects a provider’s API endpoint responsiveness — the round-trip to its API, not per-token inference time. These figures, with throughput and uptime, are reference data until the gateway aggregates its own traffic.
Price comparison
Blended $ per 1M tokens
Blended rate per 1M tokens, weighted one part prompt to three parts completion — roughly the shape of a chat workload. Your mix will move the number.
Call it
OpenAI-compatible — swap the base URL and go
curl https://model.cards/api/v1/chat/completions \
-H "Authorization: Bearer $MODELCARDS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "x-ai/grok-4",
"messages": [
{ "role": "user", "content": "Summarize the tradeoffs of speculative decoding." }
]
}'