xAI
Grok 4
Grok model for agentic tool use, reasoning, coding, and live assistance
Model facts
- Context window
- 256K tokens
- Maximum output
- 256K tokens
- Cheapest paid input
- $3 per 1M tokens
- Cheapest paid output
- $15 per 1M tokens
- Open weights
- no
- Providers
- 7
Capabilities and modalities
reasoning, tool calling, attachments, temperature control, text, image.
Artificial Analysis benchmarks
Compare this model on the full LLM benchmark leaderboard.
| Configuration | AAI | Coding | Math | Output tokens/s |
|---|---|---|---|---|
| default | 34.1 | not measured | 92.7 | not measured |
Observed price history
- 2026-08-24: $3 input / $15 output per 1M tokens
API providers
- Abacus — model id grok-4-0709; $3 input / $15 output per 1M tokens; provider documentation
- DevPass (LLM Gateway) — model id grok-4; $3 input / $15 output per 1M tokens; provider documentation
- FastRouter — model id x-ai/grok-4; $3 input / $15 output per 1M tokens; provider documentation
- Helicone (xAI) — model id grok-4; $3 input / $15 output per 1M tokens; provider documentation
- LLM Gateway (xAI) — model id xai/grok-4; $3 input / $15 output per 1M tokens; provider documentation
- Poe — model id xai/grok-4; $3 input / $15 output per 1M tokens; provider documentation
- ZenMux — model id x-ai/grok-4; $3 input / $15 output per 1M tokens; provider documentation