Grok 4

Latest Grok 4 with vision and tool support.

256,000 context
Released July 9, 2025
Starting at $3.00/M input tokens (tiered)
Starting at $15.00/M output tokens (tiered)
Streaming
Vision
Tools
Reasoning
JSON Output
No ratings yetSign in to rate

Select Provider

All Providers for Grok 4

LLM Gateway routes requests to the best providers that are able to handle your prompt size and parameters.

xAI
Context: 256k
Input
$3
/M tokens
Cache Read
$0.75
/M tokens
Output
$15
/M tokens
Tiered Pricing
IN
CACHED
OUT
≤128K tokens
$3
$0.75
$15
>128K tokens
$6
$0
$30
Get Started

Frequently asked questions

What is Grok 4?

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.

How much does Grok 4 cost?

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.

What is the context length of Grok 4?

Grok 4 supports a context window of up to 256,000 tokens on its largest provider deployment.

Which providers serve Grok 4?

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.

Does Grok 4 support tool calling and structured outputs?

Yes. Grok 4 supports both tool (function) calling and structured JSON outputs through LLM Gateway.

When was Grok 4 released?

Grok 4 was released on July 9, 2025.