Grok 3 API Cost Calculator
Estimate your monthly API costs for Grok 3 from X Ai.
Pricing per 1M tokens
Pricing last verified: Mar 21, 2026
30-Day Price History
Solid line: input price · Dashed line: output price
Estimate Your Costs
What are you building?
Cost Breakdown
Compare with Similar Models
| Model | Input/1M | Output/1M |
|---|---|---|
| Grok 3 Beta X Ai | $3.00 | $15.00 |
| Grok 4 X Ai | $3.00 | $15.00 |
| Grok 4.20 Beta X Ai | $2.00 | $6.00 |
| Grok 4.20 Multi-Agent Beta X Ai | $2.00 | $6.00 |
| Grok Code Fast 1 X Ai | $0.2000 | $1.50 |
Frequently Asked Questions
How much does Grok 3 cost per token?
Grok 3 is priced at $3.00 per 1M input tokens and $15.00 per 1M output tokens. Use the calculator above to estimate your monthly costs based on your usage volume.
What is the context window for Grok 3?
Grok 3 has a context window of 131.1K tokens (131,072 tokens).
Does Grok 3 support function calling (tool use)?
Yes, Grok 3 supports function calling (also called tool use). You can define custom functions that the model can invoke as part of its responses.
How does Grok 3 compare to similar models?
Grok 3 costs $3.00 input and $15.00 output per 1M tokens. Grok Code Fast 1 is less expensive at $0.2000 input and $1.50 output per 1M tokens. See the "Compare with Similar Models" table above, or visit the Grok Code Fast 1 page at /tools/cost-calculator/x-ai/grok-code-fast-1.