跳到主要内容
旗舰 · 免费VRAM 计算器,哪款 GPU 能运行哪个模型? →
精选 AI 模型与时尚提示词包 →
Vantaige

Free Tool

xAI API Cost Calculator

Estimate your monthly and annual xAI Grok API cost from your request volume and average token counts. See the full xAI listing.

不确定你的提示词用了多少个 token?先把文本粘贴到Token 计算器获取精确计数。

公式: 月度成本 = 月度请求数 × ((平均输入 token 数 × 输入单价) + (平均输出 token 数 × 输出单价)) / 1,000,000

最便宜

grok-4.3

$1.25/M 输入 · $2.5/M 输出

月度成本$20.00
年度成本$240.00
每次请求成本$0.002

grok-4.7

$2/M 输入 · $6/M 输出

月度成本$40.00
年度成本$480.00
每次请求成本$0.004

grok-4.6

$2/M 输入 · $6/M 输出

月度成本$40.00
年度成本$480.00
每次请求成本$0.004

grok-4.5

$2/M 输入 · $6/M 输出

月度成本$40.00
年度成本$480.00
每次请求成本$0.004

xAI Grok pricing

Published list price per million tokens for xAI's current Grok models.

ModelInput $/M tokensOutput $/M tokens
grok-4.3$1.25$2.5
grok-4.7$2$6
grok-4.6$2$6
grok-4.5$2$6
grok-4.20$2$6
grok-4.20-beta$2$6
grok-4.20-beta-non-reasoning$2$6
grok-4.20-beta-reasoning$2$6

Frequently asked questions

How much does xAI's grok-4.3 cost?

grok-4.3 costs $1.25 per million input tokens and $2.5 per million output tokens. Use the calculator above to estimate your own monthly cost from your expected request volume and average token counts.

What is the cheapest xAI model?

grok-4.3 is xAI's most affordable current model, priced at $1.25 per million input tokens and $2.5 per million output tokens.

How does xAI API pricing work?

xAI bills per token, separately for input tokens (what you send) and output tokens (what the model generates), priced per million tokens. Output tokens typically cost more than input tokens because generation is more compute-intensive. Total request cost is (input tokens × input price + output tokens × output price) / 1,000,000, multiplied by your request volume.

How do I estimate my monthly xAI API cost?

Enter your expected monthly request volume and average input/output tokens per request into the calculator above, pick one or more Grok models to compare, and it computes monthly cost, annual cost, cost per request, and cost per user instantly. Add an optional monthly growth rate to see a 12-month cost projection.

Compare across providers

Want to compare xAI against other providers side by side? Use the full AI Cost Calculator.