Grok 4

xAI

xAI's premier flagship model combining exceptional natural language understanding, mathematical prowess, and sophisticated reasoning. This well-rounded model excels across diverse domains?from creative writing to complex calculations to logical problem-solving. With 256K context for both input and output, thinking capabilities, and vision support, it handles virtually any task with intelligence and nuance. The true jack-of-all-trades that masters most of them. Perfect when you need a single model that performs excellently across the board.

Try Now

Capabilities

Thinking

Tool Use

Image Input

Image Generation

Example Use Cases

Mathematical problem-solving

Need versatile flagship performance

Balanced task with xai

Technical Specifications

Context Window

256,000 tokens

Max Output

256,000 tokens

Pricing

Token Costs (per 1M tokens)

Cache Miss Input

$3

Non-Reasoning Output

$15

Tool Costs (per 1K calls)

Web Search

$5

Code Execution

$5

Image Generation

$70

Legacy

Made legacy on

Reason

Outdated model

Recommended Replacement

Grok 4.20 Reasoning