Skip to content
AI ShengJia

xAI API pricing: official rates per 1M tokens

Subscription and API prices published by each vendor, used as the baseline for every other channel. Converted prices use the day's rate, excluding tax and payment fees.

Rate 1 USD = $1.00

API

Text models 8

ModelContextInput $/1MOutput $/1MCached readOutput $/1MCheckedSource
500K$2.00 $6.00 $0.50 $6.00
1M$1.25 $2.50 $0.20 $2.50
256K$1.00 $2.00 $0.20 $2.00
1M$1.25 $2.50 $0.20 $2.50
1M$1.25 $2.50 $0.20 $2.50
1M$1.25 $2.50 $0.20 $2.50
500K$2.00 $6.00 $0.30 $6.00
500K$2.00 $6.00 $0.50 $6.00

Image models 2

ModelContextInput $/1MOutput $/1MCached readOutput $/1MCheckedSource
โ€”$0.002 / image$0.02 / imageโ€” $0.02/ image
โ€”$0.01 / image$0.04โ€“$0.08 / imageโ€” $0.04/ image

Video models 3

ModelContextInput $/1MOutput $/1MCached readOutput $/1MCheckedSource
โ€”$0.002 / image$0.01 / second ยท video$0.05โ€“$0.07 / second ยท videoโ€” $0.05/ second
โ€”$0.01 / image$0.08โ€“$0.25 / second ยท videoโ€” $0.08/ second
โ€”$0.01 / image$0.02โ€“$0.14 / second ยท videoโ€” $0.02/ second

Speech and audio models 4

ModelContextInput $/1MOutput $/1MCached readOutput $/1MCheckedSource
โ€”$15.00 / 1M charactersโ€” โ€” โ€”
โ€”$0.10โ€“$0.20 / hourโ€” โ€” โ€”
โ€”$0.004 / request ยท text$0.08 / minuteโ€” โ€” โ€”
Grok Voice 2.0 Deprecated
xAI
โ€”$0.004 / request ยท text$0.08 / minuteโ€” โ€” โ€”

Standard tier pricing in US dollars per million tokens unless noted otherwise. Batch, long-context and priority tiers are priced separately; deprecated models are listed last in each group.