All Models

xAI Grok 4

grok Reasoning Tool Calling Attachments

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 2
Released Jul 9, 2024
Input Modalities text, image
Output Modalities text
Tarsk Use coding

Available Providers (2)

Provider Model ID Input Cost Output Cost Context Max Output Docs
Helicone grok-4 $3.00/MTok $15.00/MTok 256K 256K
Kilo Gateway x-ai/grok-4 $3.00/MTok $15.00/MTok 256K 51.2K

Capabilities

Reasoning
Tool Calling
Attachments
Open Weights
Structured Output