xAI
xAI's Grok models are designed for coding, agentic tool use and efficient large-context processing.
Grok 4.6
xAI's current flagship model for coding, agentic tasks, tool use and general knowledge work.
- Input / 1M
- $2.00
- Output / 1M
- $6.00
- Context
- 500K
- Generation
- 4.6
Function calling · Structured outputs · Vision
Grok 4.6 API pricingGrok 4.5
Previous-generation xAI model with a 500K context window for coding and agentic tasks.
- Input / 1M
- $2.00
- Output / 1M
- $6.00
- Context
- 500K
- Generation
- 4.5
Function calling · Structured outputs · Vision
Grok 4.5 API pricingGrok 4.3
xAI model with a 1M-token context window for long-context coding and agentic workloads.
- Input / 1M
- $1.25
- Output / 1M
- $2.50
- Context
- 1M
- Generation
- 4.3
Function calling · Structured outputs · Vision
Grok 4.3 API pricingGrok 2
Earlier xAI chat model, kept for historical API pricing and specification reference.
- Input / 1M
- $5.00
- Output / 1M
- $15.00
- Context
- 131K
- Generation
- 2
Historical pricing
Streaming · Function calling · Vision
Grok 2 API pricingGrok 2 Mini
Smaller earlier xAI model, kept for historical API pricing and specification reference.
- Input / 1M
- $0.60
- Output / 1M
- $2.00
- Context
- 131K
- Generation
- 2
Historical pricing
Streaming · Function calling · Vision
Grok 2 Mini API pricing