Skip to main content

xAI

Official API

xAI makes these models and serves them through its own API, at the reference price every other provider is compared with.

Visit x.ai
Models15
Cheapest for
0 models
Serves
4 model types
Monthly visits—
Models by type

xAI's API

ModelInputOutputLowest third-partyContext
Grok 4.7$2/1MFrom$6/1M
from $4.80 at APIMart
$4.80/1MAPIMart-20%500K
Grok Build 0.1$1/1MFrom$2/1M
from $1.60 at APIMart
$1.60/1MAPIMart-20%256K
Grok 4.6$2/1MFrom$6/1M
from $4.80 at APIMart
$4.80/1MAPIMart-20%500K
Grok 4.5$2/1MFrom$6/1M
from $3.20 at APIMart
$3.20/1MAPIMart-47%500K
Grok Voice TTS 1.0—$0.015/1K chars$0.015/1K charsFal—
Grok Imagine Video 1.5—From$0.08/sec
from $0.064 at APIMart
$0.064/secAPIMart-20%—
Grok Imagine Image 2.0—From$0.06/img
from $0.032 at APIMart
$0.032/imgAPIMart-47%—
Grok Imagine Image Quality—From$0.05/img
from $0.04 at APIMart
$0.04/imgAPIMart-20%—
Grok Imagine Video 1.5 Lite—From$0.02/sec$0.02/secAtlas Cloud—
Grok 4.20 (Non-Reasoning)$1.25/1MFrom$2.50/1M
from $2 at APIMart
$2/1MAPIMart-20%1M
Grok 4.20 (Reasoning)$1.25/1MFrom$2.50/1M
from $2 at APIMart
$2/1MAPIMart-20%1M
Grok 4.3$1.25/1MFrom$2.50/1M
from $2 at APIMart
$2/1MAPIMart-20%1M
Grok Imagine—From$0.05/sec
from $0.04 at APIMart
$0.04/secAPIMart-20%—
Grok Imagine Image—From$0.02/img$0.02/imgReplicate—
Grok-4.20-Multi-Agent$1.25/1MFrom$2.50/1M
from $2 at APIMart
$2/1MAPIMart-20%1M

xAI at a glance

15 models in total: 8 text, 3 video, 3 image, 1 audio. The cheapest is Grok Build 0.1 at $2 /1M. Grok 4.20 (Non-Reasoning) has the largest context window, 1M tokens. The most searched is Grok 4.7, with about 221K Google searches a month. The newest is Grok Imagine Video 1.5 Lite, released Oct 1, 2026.