xAI: Grok 4
Grok model for agentic tool use, reasoning, coding, and live assistance
Cheapest input
$3
$/MTok · models.dev
Cheapest output
$15
$/MTok
Context
256K
tokens
Sources
2
12 listings
Price changes
Cheapest list input/output only. Rates move rarely, so this is an event log. Down means cheaper. Showing the 8 latest changes.
- ↑ higherOutput $2.50 → $15
- ↑ higherInput $1.25 → $3
- ↓ lowerOutput $15 → $2.50
- ↓ lowerInput $3 → $1.25
Sources
Same model, different sources. Our first-party rate is listed first, then router and aggregator rows stay separate so you can see the spread instead of a single blended number.
| Source | Provider | Input | Output | Cache read | Context |
|---|---|---|---|---|---|
| models.devcheapestx-ai/grok-4 | FastRouter | $3 | $15 | $0.75 | 256K |
| models.devgrok-4 | Helicone | $3 | $15 | $0.75 | 256K |
| models.devgrok-4 | DevPass (LLM Gateway) | $3 | $15 | $0.75 | 256K |
| models.devxai/grok-4 | LLM Gateway | $3 | $15 | $0.75 | 256K |
| models.devxai/grok-4 | Poe | $3 | $15 | $0.75 | 256K |
| LiteLLMgrok-4 | N/A | $3 | $15 | $0.3 | N/A |
| LiteLLMazure_ai/grok-4 | N/A | $3 | $15 | $0.3 | N/A |
| LiteLLMoci/xai.grok-4 | N/A | $3 | $15 | $0.3 | N/A |
| LiteLLMvercel_ai_gateway/xai/grok-4 | N/A | $3 | $15 | $0.3 | N/A |
| LiteLLMxai.grok-4 | N/A | $3 | $15 | $0.3 | N/A |
| LiteLLMxai/grok-4 | N/A | $7.20 | $36 | $0.72 | N/A |
| LiteLLMreplicate/xai/grok-4 | N/A | $7.20 | $36 | $0.72 | N/A |
Capabilities
- Reasoning
- Tool calling
- Attachments
- In: text
- In: image
- Out: text
Knowledge cutoff: 2025-07Released: 2025-07-09Family: grok
See what this model costs you
The app reads the sessions your tools already wrote and prices this model's tokens at the published API rate. Free on your computer.