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:

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

This model supports the following features:

Tools Reasoning Structured Outputs Response Format
Performance Summary

Grok 4, xAI's latest reasoning model, generally exhibits longer response times, ranking in the 16th percentile for speed across benchmarks. Its pricing tends to be at premium levels, placing it in the 4th percentile for cost. However, Grok 4 demonstrates exceptional reliability, achieving a perfect 100th percentile, indicating minimal technical failures and consistent usable responses. In terms of performance across categories, Grok 4 shows strong capabilities in Instruction Following (94th percentile accuracy) and Reasoning (89th percentile accuracy). It also excels in Coding (88th percentile accuracy). Notably, Grok 4 achieved perfect 100% accuracy in both Email Classification and General Knowledge, standing out as the most accurate model at its price point and speed in these categories. Its Ethics performance is average at 51st percentile. While its accuracy is generally high, the model's primary weaknesses lie in its slower processing speeds and higher cost structure, particularly as token usage increases beyond 128k. Its strengths are clearly in its robust accuracy across complex tasks and its outstanding operational 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 Free Executions Accuracy Cost Duration
Other Models by x-ai