AI Daily Roundup
🌐 English

Today › AI API prices › xAI

grok-4.20-beta API pricing (xAI)

Input / 1M tokens$1.25
Output / 1M tokens$2.502.0× input
Context window1Mmax output 1M
Rank within xAI5 / 31
Among all modelscheaper than 28%of 725 models

Cost for typical workloads

WorkloadThis modelMedian of all models
10,000 chats (2,000 in / 500 out tokens)$37.50$20.50
100 long summaries (50,000 in / 1,000 out)$6.50$2.97
1,000 articles (500 in / 2,000 out)$5.62$2.50

Similarly priced models from other providers

ModelProviderInputOutputContext
zai-org/GLM-5Together AI$1.00$3.20203K
glm-5Z.ai$1.00$3.20200K
qwen/qwen3.8-27bGroq$0.8$4.00131K
accounts/fireworks/routers/glm-5p3-spotFireworks AI$0.98$3.081M
gemini-flash-latestGoogle Gemini$0.75$3.751M
gemini-3.6-flashGoogle Gemini$0.75$3.751M

Price history

DateInputOutput
2026-10-03$1.25$2.50

Only dates with a change are listed (17 snapshots from 2026-10-03 to 2026-11-10).

Prices come from the open-source LiteLLM price table (MIT), fetched daily, and may differ from the official pricing pages; always check the provider before you buy. US dollars.

About this page

grok-4.20-beta on xAI costs $1.25 per million input tokens and $2.50 per million output tokens; it ranks 5 of 31 xAI models by price, with a 1M context window.