Grok 4
Azure AIText
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).
Specifications
| Model Key | azure_ai/grok-4 |
| Provider | Azure AI |
| LiteLLM Provider | azure_ai |
| Mode | Text |
| Canonical Name | grok-4 |
| Context Window | 131K tokens |
| Max Output | 131K tokens |
Capabilities
✗ Vision✓ Function Calling✗ Reasoning✓ JSON Schema✗ System Messages✓ Web Search✗ Prompt Caching✗ Audio Input✗ Audio Output
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 |
|---|---|---|---|
| Azure AI | azure_ai/grok-4 | $3.00 | $15.00 |
| OpenRouter | openrouter/x-ai/grok-4 | $3.00 | $15.00 |
| Replicate | replicate/xai/grok-4 | $7.20 | $36.00 |
| Vercel Ai Gateway | vercel_ai_gateway/xai/grok-4 | $3.00 | $15.00 |
| xAI | xai/grok-4 | $3.00 | $15.00 |
| Oci | oci/xai.grok-4 | $3.00 | $0.150 |
Similar Models
Models with similar capabilities and context window size.
Model | Provider | Mode | Input Price | Output Price | Context | Max Output | Vision | Functions |
|---|---|---|---|---|---|---|---|---|
| Gemma 3 27B It | Google Gemini | Text | N/A | N/A | 131K | 8K | yes | yes |
| GPT-oss-120b-mxfp-GGUF | Lemonade | Text | N/A | N/A | 131K | 33K | no | yes |
| GPT-oss-20b | OpenRouter | Text | $0.020 | $0.100 | 131K | 33K | no | yes |
| GPT-oss-20b-mxfp4-GGUF | Lemonade | Text | N/A | N/A | 131K | 33K | no | yes |
| GPT-oss:120b-cloud | Ollama | Text | N/A | N/A | 131K | 131K | no | yes |
| GPT-oss:20b-cloud | Ollama | Text | N/A | N/A | 131K | 131K | no | yes |
| Llama 3.2 3B Instruct | Deepinfra | Text | $0.020 | $0.020 | 131K | 131K | no | no |
| Llama3.2 11B Vision Instruct | Lambda Ai | Text | $0.015 | $0.025 | 131K | 131K | yes | yes |
| Llama3.2 3B Instruct | Lambda Ai | Text | $0.015 | $0.025 | 131K | 131K | no | yes |
| Mistral Nemo Instruct 2407 | Deepinfra | Text | $0.020 | $0.040 | 131K | 131K | no | no |