Grok 4
ReplicateText
Grok 4 is a text model from Replicate. Pricing starts at $7.20 per million input tokens and $36.00 per million output tokens (cheapest at Azure AI).
Specifications
| Model Key | replicate/xai/grok-4 |
| Provider | Replicate |
| LiteLLM Provider | replicate |
| Mode | Text |
| Canonical Name | grok-4 |
| Context Window | N/A tokens |
| Max Output | N/A |
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.0072 | $7.20 |
| Output Tokens | $0.036 | $36.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 |
|---|---|---|---|---|---|---|---|---|
| DeepSeek R1 Distill Llama 8B | Nscale | Text | $0.025 | $0.025 | N/A | N/A | no | no |
| DeepSeek R1 Distill Qwen 14B | Nscale | Text | $0.070 | $0.070 | N/A | N/A | no | no |
| GPT-5 nano | Replicate | Text | $0.050 | $0.400 | N/A | N/A | no | yes |
| Granite 3.3 8B Instruct | Replicate | Text | $0.030 | $0.250 | N/A | N/A | no | yes |
| Llama 3.1 8B Instruct | Nscale | Text | $0.030 | $0.030 | N/A | N/A | no | no |
| Llama 3.3 70B Instruct Turbo Free | Together AI | Text | N/A | N/A | N/A | N/A | no | yes |
| Qwen2.5 Coder 32B Instruct | Nscale | Text | $0.060 | $0.200 | N/A | N/A | no | no |
| Qwen2.5 Coder 3B Instruct | Nscale | Text | $0.010 | $0.030 | N/A | N/A | no | no |
| Qwen2.5 Coder 7B Instruct | Nscale | Text | $0.010 | $0.030 | N/A | N/A | no | no |
| Titan Embed Text V2 | Vercel Ai Gateway | Text | $0.020 | N/A | N/A | N/A | no | no |