xAI: Grok 4
xAI Mid-tier
Model ID: grok-4
Pricing
Input $3.00 / 1M tokens
Output $15.00 / 1M tokens
Cache Read $0.75 / 1M tokens
Specifications
Context Window 256K tokens
Max Output 4K tokens
Family grok-4
Mode chat
Capabilities
StreamingSystem PromptsVisionFunction CallingReasoningJSON Mode