Grok 4

xAI

xAI flagship model with first-principles reasoning, enhanced logical consistency, and multimodal support. Features 256K context window with extended context billing above 128K tokens.

Text Generation API Grok Family
Parameters
-
params
Context Window
256K
tokens
Max Output
-
tokens
Input Price
$3.0000
per 1M tokens
Output Price
$15.0000
per 1M tokens

Capabilities

👁️
Vision
Function Calling
📋
JSON Mode
🌊
Streaming
💬
System Prompt
🖥️
Code Execution
🔍
Web Search
🔌
MCP Support

Extended Pricing

Input
$3.0000/1M
Output
$15.0000/1M
Cache Read
$0.7500/1M

Details

Release Date
July 10, 2025
Knowledge Cutoff
November 1, 2024
Source
API
API Key Required
Yes
License
Proprietary
Model ID
grok-4
Last updated: March 13, 2026