x-ai

xAI: Grok 4

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)

Input Cost
$3.00
per 1M tokens
Output Cost
$15.00
per 1M tokens
Context Window
256,000
tokens
Compare vs GPT-4o
Developer ID: x-ai/grok-4

Related Models

x-ai
$0.30/1M

xAI: Grok 3 Mini

A lightweight model that thinks before responding. Fast, smart, and great for logic-based ...

📝 131,072 ctx Compare →
x-ai
$0.30/1M

xAI: Grok 3 Mini Beta

Grok 3 Mini is a lightweight, smaller thinking model. Unlike traditional models that gener...

📝 131,072 ctx Compare →
x-ai
$0.20/1M

xAI: Grok 4.1 Fast

Grok 4.1 Fast is xAI's best agentic tool calling model that shines in real-world use cases...

📝 2,000,000 ctx Compare →