xAI

Grok 4 API Pricing 2026

Compare pricing, benchmarks, and providers for Grok 4. Find the best value for your use case.

8 Ways to Use Fewer Tokens
Last updated: November 21, 2026 at 08:43 AM

Overview

Grok 4 was released on July 9, 2025. Pricing starts at $3.00 per million input tokens and $15.00 per million output tokens. The model supports a context window of up to 256K tokens. API access is available through xAI.

Context Window
256K
tokens
Pricing
Input$3.00
Output$15.00
per 1M tokens
Speed
Output-
TTFT-
median latency
Capabilities
VisionReasoningToolsCaching

Grok 4 is priced at $3.00 per million input tokens and $15.00 per million output tokens. It has a context window of 256,000 tokens. It is available from 2 providers, with Vercel the cheapest at $3.00 per million input tokens. On benchmarks, Grok 4 scores Aider 79.6 (88th percentile).

Pricing Comparison

Compare Grok 4 with 10 similar models by price.

Current Pricing (per 1M tokens)

11 models

Sponsored The Grid | Spot Priced LLM API
The Grid | Spot Priced LLM API — Why pay list price when providers will bid for your API usage? Up to 80% off.
View spot prices
Provider
Model
Input $/M
Output $/M
Coding
MMLU
GPQA
Context
Actions
$3.000
$15.000
—
—
—
256,000
Try
$2.500
$10.000
—
—
—
8,000
Try
$2.500
$12.500
—
—
—
1,000,000
Try
$2.500
$10.000
—
—
—
128,000
Try
$2.500
$10.000
—
—
—
128,000
Try
$3.000
$15.000
—
—
—
-
Try
$3.000
$15.000
—
—
—
131,072
Try
$3.000
$6.000
—
—
—
131,072
Try
$3.000
$15.000
—
—
—
1,000,000
Try
$3.000
$15.000
—
—
—
200,000
Try
$3.000
$15.000
—
—
—
1,000,000
Try

* Some models use tiered pricing based on prompt length. Displayed prices are for prompts ≤ 200k tokens.

Compare Providers

Grok 4 is available from multiple providers with different pricing and availability.

2
Providers
$3.000
Cheapest Input/M
$15.000
Cheapest Output/M
Vercel
Best Price

Provider Pricing

2 models

Sponsored The Grid | Spot Priced LLM API
The Grid | Spot Priced LLM API — Why pay list price when providers will bid for your API usage? Up to 80% off.
View spot prices
Provider
Input $/M
Output $/M
Cache Read $/M
Cache Write $/M
Uptime
V
Vercel
Best Price
$3.000
$15.000
-
-
-
xAI
xAI
Best Price
$3.000
$15.000
-
-
-
Provider pricing data sourced from OpenRouter and Helicone

Community Rankings

How does Grok 4 perform? Vote based on your experience.

Cost vs. Quality

Compare Grok 4's benchmark performance against all models.

X-axis:
Y-axis:
Loading chart...
Other models

Try Grok 4

Use our Calculator

Estimate your costs based on expected token usage.

Open Cost Calculator

Try in Playground

Test Grok 4 directly in your browser.

Open Playground

Frequently Asked Questions

Grok 4 costs $0.003000 per 1,000 input tokens and $0.015000 per 1,000 output tokens.
Grok 4 is available from 2 providers. Vercel offers the best price.
Vercel offers Grok 4 at $3.00 per million input tokens.
Grok 4 scores Aider 79.6 (88th percentile). Only benchmarks with published data for this model are shown.
We compare Grok 4 with 10 similarly-priced models. See the benchmark scatter plot above to compare quality vs cost.

All xAI Models

See pricing for all xAI models.

View all xAI models →