xAI: Grok 4, xAI — route, pricing & source
xAI flagship reasoning model for natural language, math, and reasoning.
xAI APIhighLast checked: May 13, 2026
Input
$3.00 / 1M
/ 1M tokens
Output
$15.00 / 1M
/ 1M tokens
Cached input
$0.7500 / 1M
/ 1M tokens
Cache write
Not available
Not available
Context and limits
Context window
256K
Max output
Unknown
Input modalities
text
Output modalities
text
Weight access
Closed
Availability
Official API
Capability flags
ToolsJSONReasoningLong context
From source metadata + verification fields — confirm provider docs before production.
Access and license
Official API
Yes
Open weights
No
Self-hostable
No
License
Closed · API onlyNo public weights: use through a vendor’s cloud API or product. “Proprietary” means the creator does not distribute the trained model weights for self-hosting.
Example costs
Scenario: 1K input + 300 output tokens / request
10,000 requests
$75.00
100,000 requests
$750.00
1,000,000 requests
$7,500.00
Cheaper alternatives
Lower-cost models for the same scenario
Source
Source
xAI public model docs
Confidence
high
Route
xAI API
Last checked
May 13, 2026
Source notes
- Official xAI model docs include price, context, capabilities, and aliases.
- No independent benchmark score has been merged yet for this model.
- Includes Hugging Face benchmark data only when the dataset is public, ungated, allowlisted, and matched by reviewed aliases.
