easiapiaiLLM API prices

Home / xAI

Grok 4 API price

xAI · 2M token context · 4 sellers, checked 21 Oct, 00:17 UTC

Other versions: newer: Grok 4.20 from $1.25 / $2.50. Compare versions

Input, per 1M tokens
$1.70
Output, per 1M tokens
$5.10

Cheapest at Cheaper Inference; 4 sellers compared below.

The only price here comes from Cheaper Inference, a seller we have not verified (our read). Test it on your own prompts before you rely on it.

Versions

VersionWhat it isSellersFrom, in / out per 1M
Grok 4 this pagegrok-4Main listing4$1.70 / $5.10
Grok 4.20xai/grok-4.20Newer generation7$1.25 / $2.50

Why there are several: the undated name can move to a newer build when the developer updates it, while a dated snapshot is meant to stay fixed, which can suit pipelines that need repeatable behaviour; an experimental build tests new features. Sellers price each version separately and not every seller offers every version, so check a seller's own docs for the build it serves.

Cost calculator: where to buy, and what it costs you

Pick a use case, a volume and a provider. Monthly figures assume 30 days.

1,500 input and 400 output tokens per request, 30% of input cached.

Provider, with its monthly cost for this workload

Spotted a wrong or outdated price? Report it and we fix it at the next update.

Test a seller of this model with your own key, on your own machine.

Embed this price in your README or site

A badge with the cheapest price, the seller and the date. It updates every 6 hours and links here.

Markdown[![Grok 4 API: from $1.70 in / $5.10 out per 1M · Cheaper Inference · 21 Oct 2026](https://easiapiai.com/badge/xai--grok-4.svg)](https://easiapiai.com/m/xai--grok-4.html)HTML<a href="https://easiapiai.com/m/xai--grok-4.html"><img src="https://easiapiai.com/badge/xai--grok-4.svg" alt="Grok 4 API: from $1.70 in / $5.10 out per 1M · Cheaper Inference · 21 Oct 2026" height="40"></a>
Context window
2M2,000,000 tokens
Cached input
from $0.17per 1M tokens
Last checked
21 Oct, 00:17 UTC

Price history

Cheapest standard price per 1M tokens, recorded every 6 hours since 16 Oct 2026.

$0.00$2.86$5.7116 Oct21 Oct
OutputInput

No price change has held for 12 hours since 16 Oct 2026.

Every price change this month →

More from xAI: Grok 4.7 $1.60 · Grok 4.20 $1.25 · Grok 4.3 $1.25