xAI: Grok 4

Text input Image input Text output
Author's Description

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)

Key Specifications
Cost
$$$$$
Context
256K
Released
Jul 09, 2025
Speed
Ability
Reliability
Supported Parameters

This model supports the following parameters:

Top Logprobs Tools Structured Outputs Logprobs Tool Choice Reasoning Include Reasoning Response Format Seed Top P Max Tokens Temperature
Features

This model supports the following features:

Tools Reasoning Response Format Structured Outputs
Performance Summary

xAI's Grok 4, released July 9, 2025, is a powerful reasoning model featuring a 256k context window, parallel tool calling, and multimodal input capabilities. While it demonstrates exceptional reliability with a 100% success rate across all benchmarks, its performance is characterized by longer response times, ranking in the 13th percentile for speed, and premium pricing, placing it in the 3rd percentile for cost. Grok 4 excels in several critical areas, achieving perfect accuracy in Hallucinations, General Knowledge, Email Classification, and Reasoning benchmarks. Notably, it is the most accurate model at its price point and speed for these categories. It also shows strong performance in Mathematics (94.5% accuracy, 93rd percentile) and Coding (93.0% accuracy, 83rd percentile). Its primary weakness appears in Instruction Following, where it achieved 78.0% accuracy, placing it in the 91st percentile but still indicating room for improvement compared to its other high-performing categories. The model's high accuracy across core reasoning and knowledge tasks, despite its higher cost and slower speed, positions it as a robust choice for applications prioritizing precision and reliability.

Model Pricing

Current Pricing

Feature Price (per 1M tokens)
Prompt $3
Completion $15
Input Cache Read $0.75

Price History

Available Endpoints
Provider Endpoint Name Context Length Pricing (Input) Pricing (Output)
xAI
xAI | x-ai/grok-4-07-09 256K $3 / 1M tokens $15 / 1M tokens
Benchmark Results
Benchmark Category Reasoning Strategy Free Executions Accuracy Cost Duration
Other Models by x-ai