xAI API pricing

Official27 language, 2 image, 3 video, 1 speech models

As of Nov 29, 2026, xAI lists 33 language, image, video, and speech models through its API. Its cheapest language model is Grok 4.20 Beta 0309 Reasoning at $1.25 input / $2.50 output per million tokens.

Language models (27)

Prices per million tokens.

Image models (2)

Video models (3)

Speech models (1)

About this data

Prices come from LiteLLM's model cost map, with more providers from models.dev (both MIT licence); confirm on the provider's pricing page before you rely on a number.