Pricing and availability as of
Latest Grok 4 with vision and tool support.
grok-4Compare price, limits and live performance side by side. LLM Gateway routes each request to the best provider that can handle your prompt size and parameters.
1 provider
| Provider | Actions | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| 256k | 256k | $3.00 | $15.00 | $0.75 |
Prices are per provider at standard rates; open a row for regions, tiers and cache pricing. Throughput, latency and uptime come from LLM Gateway traffic over the last 24 hours and are hidden under 1,000 requests.
Grok 4 API pricing starts at $3.00 per 1M input tokens and $15.00 per 1M output tokens through LLM Gateway. Cached input starts at $0.75 per 1M tokens. Some providers charge more above a prompt-size threshold; prices here are base-tier rates, and the Providers tab shows the tiers.
| Provider | Input / 1M tokens | Output / 1M tokens | Cached input / 1M tokens | Context window |
|---|---|---|---|---|
| xAI | $3.00 | $15.00 | $0.75 | 256,000 tokens |
| Monthly usage | Cost on xAI |
|---|---|
| 1M input + 250K output tokens | $6.75 |
| 10M input + 2.5M output tokens | $67.50 |
| 100M input + 25M output tokens | $675.00 |
The estimate uses base-tier prices. Prompts above a provider's size threshold cost more.
Latest Grok 4 with vision and tool support. You can access it through LLM Gateway's OpenAI-compatible API with automatic provider routing, fallback, and cost analytics.
Pricing for Grok 4 on LLM Gateway starts at $3.00 per million input tokens and $15.00 per million output tokens, depending on the provider. The pricing table above always reflects the current per-provider rates.
Grok 4 supports a context window of up to 256,000 tokens on its largest provider deployment.
Grok 4 is served by xAI through LLM Gateway. Requests are automatically routed to the best available provider, with fallback when a provider has issues.
Grok 4 supports tool (function) calling and soft JSON output, but NOT strict JSON output schema (its upstream provider does not enforce it).
Grok 4 was released on July 9, 2025.