All Models

Grok 4

Reasoning Tool Calling Attachments Structured Output

Grok 4 is xAI's latest reasoning model with a 256k context window. It supports parallel tool calling, structured outputs, and both image and text inputs. Note that reasoning is not exposed, reasoning cannot be disabled, and the reasoning effort cannot be specified. Pricing increases once the total tokens in a given request is greater than 128k tokens. See more details on the [xAI docs](https://docs.x.ai/docs/models/grok-4-0709)

Providers 11
Released Jul 9, 2025
Input Modalities image, text
Output Modalities text
Tarsk Use coding

Available Providers (11)

Provider Model ID Input Cost Output Cost Context Max Output Docs
ZenMux x-ai/grok-4 $3.00/MTok $15.00/MTok 256K 64K
FastRouter x-ai/grok-4 $3.00/MTok $15.00/MTok 256K 64K
Poe xai/grok-4 $3.00/MTok $15.00/MTok 256K 128K
Azure Cognitive Services grok-4 $3.00/MTok $15.00/MTok 256K 64K
Abacus grok-4-0709 $3.00/MTok $15.00/MTok 256K 16.4K
OpenRouter x-ai/grok-4 $3.00/MTok $15.00/MTok 256K 64K
Requesty xai/grok-4 $3.00/MTok $15.00/MTok 256K 64K
Vercel AI Gateway xai/grok-4 $3.00/MTok $15.00/MTok 256K 64K
NanoGPT x-ai/grok-4-07-09 $3.00/MTok $15.00/MTok 256K 131.1K
Azure grok-4 $3.00/MTok $15.00/MTok 256K 64K
xAI grok-4 $3.00/MTok $15.00/MTok 256K 64K

Capabilities

Reasoning
Tool Calling
Attachments
Open Weights
Structured Output