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

Tool Use

Extended Thinking

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

Cache Miss Cost

$3 per 1M tokens

Non-Reasoning Cost

$15 per 1M tokens

Web Search Cost

$5 per 1K calls

Code Execution Cost

$5 per 1K calls

Image Generation Cost

$20 per 1K calls