TheToolRadar

Grok Code Fast 1 API Cost Calculator

Estimate your monthly API costs for Grok Code Fast 1 from X Ai.

Pricing per 1M tokens

Input
$0.2000
Output
$1.50
256K context10K max outputFunction 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.000100
Output cost/request$0.000450
Cost per request$0.000550
Daily cost (1,000 requests)$0.5500
Monthly estimate$16.50
Annual estimate$198.00

Compare with Similar Models

ModelInput/1MOutput/1M
Grok 3 Mini
X Ai
$0.3000$0.5000
Grok 3 Mini Beta
X Ai
$0.3000$0.5000
Grok 4 Fast
X Ai
$0.2000$0.5000
Grok 4.1 Fast
X Ai
$0.2000$0.5000
Grok 4.20 Beta
X Ai
$2.00$6.00

Frequently Asked Questions

How much does Grok Code Fast 1 cost per token?

Grok Code Fast 1 is priced at $0.2000 per 1M input tokens and $1.50 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 Code Fast 1?

Grok Code Fast 1 has a context window of 256K tokens (256,000 tokens). The maximum output length is 10K tokens.

Does Grok Code Fast 1 support function calling (tool use)?

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

Grok Code Fast 1 costs $0.2000 input and $1.50 output per 1M tokens. Grok 4.1 Fast is less expensive at $0.2000 input and $0.5000 output per 1M tokens. See the "Compare with Similar Models" table above, or visit the Grok 4.1 Fast page at /tools/cost-calculator/x-ai/grok-4-1-fast.