TheToolRadar

Grok 4 API Cost Calculator

Estimate your monthly API costs for Grok 4 from X Ai.

Pricing per 1M tokens

Input
$3.00
Output
$15.00
256K contextVisionFunction callingStreaming

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

Input cost/request$0.001500
Output cost/request$0.004500
Cost per request$0.006000
Daily cost (1,000 requests)$6.00
Monthly estimate$180.00
Annual estimate$2,160.00

Compare with Similar Models

ModelInput/1MOutput/1M
Grok 3
X Ai
$3.00$15.00
Grok 3 Beta
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 4 cost per token?

Grok 4 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 4?

Grok 4 has a context window of 256K tokens (256,000 tokens).

Does Grok 4 support image inputs (vision)?

Yes, Grok 4 supports vision/image inputs. You can send images as part of your prompts.

Does Grok 4 support function calling (tool use)?

Yes, Grok 4 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 4 compare to similar models?

Grok 4 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.