Skip to main content
Prices per 1M tokens unless noted. All prices in USD. 1 Diem = $1/day of compute.

Text Models

Chat Completions

Prices per 1M tokens. View all models →

Embeddings

Media Models

Image Generation

Generation

Upscaling

Editing

Editing with multiple input images: The Per Edit price includes the first input image. Models that list an Extra Input Image price charge that fee for each additional input image beyond the first. Example: editing with 3 input images on a model priced at 0.11pereditwitha0.11 per edit with a 0.0035 extra-image fee costs 0.11+2×0.11 + 2 × 0.0035 = $0.117.

Audio

Text-to-Speech

Speech-to-Text

Music

Song Generation (Duration-Based)

Song Generation (Per-Generation)

Sound Effects (Per-Second)

For exact pricing before generation, use the Audio Quote API. Duration-based models have fixed price tiers, while per-second models charge based on output length.

Video

Video pricing varies by resolution and duration. Visit the Video Models page for exact quotes, or use the Video Quote API.

Additional Features

Web Search and Scraping

Web Scraping automatically detects up to 5 URLs per request, scrapes and converts content into structured markdown, and adds the extracted text into model context. Only successfully scraped URLs are billed.X Search enables xAI’s native search for supported Grok models (e.g., grok-4-20-beta). This searches both the web and X/Twitter for real-time information. Billed per search result returned by the model (e.g., if the model returns 10 search results, you are charged for 10 results at 0.01each=0.01 each = 0.10).These charges apply in addition to standard model token pricing.

Payment Options

USD

Buy API credits with credit card. Credits never expire.

Crypto

Buy API credits with cryptocurrency. Same rates as USD.

Stake DIEM

Each Diem = $1/day of credits that refresh daily.

Pro Users

Pro subscribers receive a one-time $10 API credit when upgrading to Pro. Use it to test and build small apps.