XaiTool use

Grok Code Fast pricing

Compare Grok Code Fast API pricing across 1 listed source. The best input rate we show is $0.200 per million tokens from Xai. The best output rate is $1.50 per million tokens from Xai.

256K context·1 provider·verified Apr 7, 2026
Best input$0.200per 1M tokens · Xai
Best output$1.50per 1M tokens · Xai

Pricing across providers

Use this table to read Grok Code Fast list prices. We show 1 source right now. Lowest input in the grid: Xai. The chart below the table helps when output prices are much higher than input prices.

X
Xainative
Input / 1M
$0.200
Output / 1M
$1.50
Cached in: $0.020

Input vs output · 1M tokens

Cost calculator

Pick any provider row and type how many tokens you expect per day, week, or year. We turn that into rough dollar totals for Grok Code Fast.

In: $0.200/M·Out: $1.50/M·Cache: $0.020/M

0.020000¢ / req

0.075000¢ / req

Daily
$9.50
Monthly
$285
Annual
$3.5K

Model specifications

These fields describe Grok Code Fast as we store it (source: Xai). They sit next to price so buyers can check limits and tools in one place.

Context window
256,000 tokens
Max output
256,000 tokens
Vision (images)
No
Tool / function calling
Yes
Streaming
No
Released
N/A
Primary provider
Xai
Model family
N/A

Compare Grok Code Fast

These links open full side by side pages for Grok Code Fast. We picked pairs that people often shop together. 6 ready to open.

Locked

Compare with

Pick a model on both sides.

Popular Grok Code Fast comparisons

Frequently asked questions

Answers pull from the same numbers you see on this page.

Grok Code Fast costs $0.20 per million input tokens and $1.50 per million output tokens via the native API. Prompt caching reduces input costs to $0.02/M tokens.

Also from Xai

Other models by Xai with live pricing in our catalog.