Grok 4
Grok 4 is a text model from
Azure AI with a context window of 131K tokens and max output of 131K tokens. Pricing starts at 3.00 per million input tokens and 15.00 per million output tokens (cheapest at Azure AI).
Capabilities
✗ Vision✓ Function Calling✗ Reasoning✓ JSON Schema✗ System Messages✓ Web Search✗ Prompt Caching✗ Audio Input✗ Audio Output
Specifications
| Model Key | azure_ai/grok-4 |
| Provider | |
| Provider ID | azure_ai |
| Mode | Text |
| Canonical Name | grok-4 |
| Context Window | 131K tokens |
| Max Output | 131K tokens |
Pricing
| Type | Per 1K Tokens | Per 1M Tokens |
|---|---|---|
| Input Tokens | 0.0030 | 3.00 |
| Output Tokens | 0.015 | 15.00 |
Price Comparison by Provider
Compare prices for Grok 4 across different providers. The same model may be available through multiple providers at different price points.
Provider | Model Key | Input Price, $ | Output Price, $ |
|---|---|---|---|
| xai/grok-4 | 3.00 | 15.00 | |
| vercel_ai_gateway/xai/grok-4 | 3.00 | 15.00 | |
| replicate/xai/grok-4 | 7.20 | 36.00 | |
| openrouter/x-ai/grok-4 | 3.00 | 15.00 | |
| oci/xai.grok-4 | 3.00 | 15.00 | |
| azure_ai/grok-4 | 3.00 | 15.00 |
All Variants
All available versions, regions, and API endpoints for Grok 4.
Model Key | Provider | Mode | Input Price, $ | Output Price, $ | Context | Max Output | Vision | Functions |
|---|---|---|---|---|---|---|---|---|
| azure_ai/grok-4 | Text | 3.00 | 15.00 | 131K | 131K | no | yes | |
| openrouter/x-ai/grok-4 | Text | 3.00 | 15.00 | 256K | 256K | no | yes | |
| oci/xai.grok-4 | Text | 3.00 | 15.00 | 128K | 128K | no | yes | |
| replicate/xai/grok-4 | Text | 7.20 | 36.00 | N/A | N/A | no | yes | |
| vercel_ai_gateway/xai/grok-4 | Text | 3.00 | 15.00 | 256K | 256K | no | yes | |
| xai/grok-4 | Text | 3.00 | 15.00 | 256K | 256K | no | yes | |
| xai/grok-4-latest | Text | 3.00 | 15.00 | 256K | 256K | no | yes |