xAI API pricing calculator
Grok Build 0.1 Pricing Calculator: Input and Output Token Costs
Estimate prompt, response, cached input, and volume costs for Grok Build 0.1. Pricing verified 2026-06-25 from the provider source.
Quick estimate
No API key needed. Pick a model, paste your question, choose the answer length, and get a close cost estimate.
3. How long will the AI answer be?
Your estimate will appear here.
Paste a prompt, choose an answer length, and calculate.
Pricing table
Input: $1 per 1M tokens
Output: $2 per 1M tokens
Cached input: $0.2 per 1M tokens
Context window: 256,000 tokens
Source: https://docs.x.ai/docs/models
Example prompt costs
A 2,000 token prompt and 1,000 token answer costs about $0.004000 before tool add-ons.
xAI coding-focused model seed.
How much does Grok Build 0.1 cost per 1M input tokens?
Grok Build 0.1 is seeded at $1 per 1M input tokens for the standard tier.
How much does Grok Build 0.1 cost per 1M output tokens?
Grok Build 0.1 is seeded at $2 per 1M output tokens.
Does Grok Build 0.1 support cached input pricing?
Yes. The cached input seed price is $0.2 per 1M tokens.