Grok Code Fast 1 Pricing: Cost per 100K Tokens

Complete Analysis: 102,000 tokens for Grok Code Fast 1
⚡ 75% Cached

Complete analysis of pricing, performance, and use cases for xAI's Grok Code Fast 1 model with 75% Cached.

⚡ Caching Optimized (up to 90% savings)
$0.009500 Total Cost
102,000 Total Tokens
2 minutes, 28.81 seconds Processing Time
686 Effective Tokens/Sec

Click Recalculate to update after making changes

Select AI Model

Grok Code Fast 1
xAIMax Context: 256,000 tokens
$0.2 / $1.5 per 1M tokens
Use Batch API (50% discount)
75%
Provider-specific multipliers applied after all calculations
Enable for cache discounts
Select platform to enforce context limits
Number of requests (max 1M). Summary view auto-enabled >10k.

Calculate Token Costs

$0.005000 Input Cost
$0.003000 Output Cost
$0.000000 Unit Cost
$0.000000 Search Cost
$0.000000 Request Fee
$0.000000 Tool Fee
$0.000000 Code Execution
102,000Total Tokens
$0.000093Cost per 1K
10,736,842Tokens per $
📊 Advanced Cost Breakdown

Processing Speed

2m 28s Processing Time
700 Tokens/Second
110ms Time to First Token
686 Effective Speed

Model Comparison

Select a model to see comparisons with competitors.

Model Information

Select a model to see detailed information.

🔄 Advanced Options

⚡ Optimization
Flat fee per session (e.g., $0.03 for Code Interpreter)
Hourly storage fee for cached data
First 50 hours free, $0.05/hour after

🧠 Reasoning & Thinking
Manual thinking tokens (billed at output rate)

🔧 Special Modes
Enable 6.0x Fast Mode multiplier

📚 Research & Citations
Enable $1.00/$4.00 rates + $10.00/1k search
Enable research tier pricing
Fee per source cited

🎤 Realtime Audio & Video
Session length for billing

Grok Code Fast 1 xAI

$0.009500
Total Cost
⚡ 75% Cached 📊 Batch API 🔧 Tools
👁️
Vision/Images
✗ Not Available
🎧
Audio Processing
✗ Not Available
🎥
Video Analysis
✗ Not Available
🔧
Tool Usage
✓ Available
📄
OCR Support
✗ Not Available
📊
Batch API
✗ Not Available
Caching
✓ Available
90% savings

💰 Total Cost Calculation (from Plugin)

Base Cost (No Optimizations) $0.023000 (rounded ~ $0.02) Input: $0.020000
Output: $0.003000
Optimized Cost $0.009500 Input: $0.020000
Output: $0.003000
Unit: $0.000000
Fees: $0.000000
Total Savings $0.013500 (rounded ~ $0.01) 58.7% discount

Detailed Cost Analysis (from Plugin)

For 100,000 input tokens and 2,000 output tokens:

  • Input Cost: $0.020000
  • Output Cost: $0.003000
  • Total Cost: $0.009500
  • Cost per 1K tokens: $0.000093
  • Tokens per dollar: 10,736,842 tokens
  • Context Window: 256000 tokens

Speed & Performance Analysis

With a processing speed of 700 tokens per second and 110ms time to first token:

  • Processing Time: 2 minutes, 28.81 seconds
  • Latency: 110 milliseconds to first token
  • Base Throughput: 700 tokens/second
  • Effective Throughput: 686 tokens/second (temperature-adjusted)

Best Use Cases

High-throughputrapid automated code review and test generation where speed is critical.

Want this applied to YOUR actual stack?

This calculator shows the math for Grok Code Fast 1. Your decision needs more — current infrastructure, compliance requirements, actual workload patterns, volume tiers — that change which model is right for you.

Get a $39 personalized AI Architecture Audit. PDF tailored to your stack, delivered in under 60 seconds. 7-day no-questions-asked refund.

Get my instant AI audit — $39 →

✨ Market Recommendations AI Model Registry

← Back to Grok Code Fast 1
📋 Active Input Parameters
Input Tokens: 100,000
Output Tokens: 2,000
Batch API: Enabled (50% discount)
Cached Tokens: 75%
Tools: Enabled
Rank AI Model & Provider Total Cost vs Grok Code Fast 1
🏆 Mistral Small 3
Mistral AI
$0.000963 Best Value ↓ 89.9% cheaper
🥈 Gemini 3.1 Flash Lite
Google
$0.002781 ↓ 70.7% cheaper
🥉 Gemini 3.5 Flash-Lite
Google
$0.003688 ↓ 61.2% cheaper
#4 Gemini 2.5 Flash
Google
$0.003688 ↓ 61.2% cheaper
#5 Mistral Large 3
Mistral AI
$0.004813 ↓ 49.3% cheaper
#6 Gemini 3.8 Flash
Google
$0.007969 (rounded ~ $0.01) ↓ 16.1% cheaper
#7 GPT-5.4 mini
OpenAI
$0.008344 (rounded ~ $0.01) ↓ 12.2% cheaper
#8 o4-mini Deep Research
OpenAI
$0.010125 ↑ 6.6% more
#9 Claude Haiku 4.5
Anthropic
$0.010625 ↑ 11.8% more
#10 Gemini 3.1 Flash
Google
$0.011125 (rounded ~ $0.01) ↑ 17.1% more
#11 GPT-5.6 Luna
OpenAI
$0.011125 (rounded ~ $0.01) ↑ 17.1% more
#12 o4-mini
OpenAI
$0.011138 (rounded ~ $0.01) ↑ 17.2% more
#13 Gemini 3.6 Flash
Google
$0.015938 (rounded ~ $0.02) ↑ 67.8% more
#14 Gemini 3.5 Flash
Google
$0.016688 (rounded ~ $0.02) ↑ 75.7% more
#15 GPT-5.3 Codex Spark
OpenAI
$0.021219 (rounded ~ $0.02) ↑ 123.4% more
#16 GPT-5.3 Instant
OpenAI
$0.021219 (rounded ~ $0.02) ↑ 123.4% more
#17 Claude Sonnet 5
Anthropic
$0.021250 (rounded ~ $0.02) ↑ 123.7% more
#18 GPT-5.6 Terra
OpenAI
$0.027813 (rounded ~ $0.03) ↑ 192.8% more
#19 Gemini 2.5 Pro
Google
$0.030313 ↑ 219.1% more
#20 Claude Sonnet 4.6
Anthropic
$0.031875 (rounded ~ $0.03) ↑ 235.5% more
#21 Grok 4.3
xAI
$0.036500 (rounded ~ $0.04) ↑ 284.2% more
#22 Grok 4.20 Beta
xAI
$0.036500 (rounded ~ $0.04) ↑ 284.2% more
#23 Gemini 3.1 Pro
Google
$0.044500 (rounded ~ $0.04) ↑ 368.4% more
#24 Claude Opus 4.7
Anthropic
$0.053125 (rounded ~ $0.05) ↑ 459.2% more
#25 Claude Opus 5
Anthropic
$0.053125 (rounded ~ $0.05) ↑ 459.2% more
#26 Claude Opus 4.8
Anthropic
$0.053125 (rounded ~ $0.05) ↑ 459.2% more
#27 Claude Opus 4.6
Anthropic
$0.053125 (rounded ~ $0.05) ↑ 459.2% more
#28 GPT-5.4
OpenAI
$0.055625 (rounded ~ $0.06) ↑ 485.5% more
#29 GPT-5.4 Thinking
OpenAI
$0.055625 (rounded ~ $0.06) ↑ 485.5% more
#30 GPT-5.5 Instant
OpenAI
$0.055625 (rounded ~ $0.06) ↑ 485.5% more
#31 GPT-5.6 Sol
OpenAI
$0.055625 (rounded ~ $0.06) ↑ 485.5% more
#32 Claude Fable 5.1
Anthropic
$0.092188 (rounded ~ $0.09) ↑ 870.4% more
#33 Claude Mythos 5.1
Anthropic
$0.092188 (rounded ~ $0.09) ↑ 870.4% more
#34 o3 Deep Research
OpenAI
$0.101250 (rounded ~ $0.10) ↑ 965.8% more
#35 Claude Fable 5
Anthropic
$0.106250 (rounded ~ $0.11) ↑ 1018.4% more
#36 Claude Mythos 5
Anthropic
$0.106250 (rounded ~ $0.11) ↑ 1018.4% more
#37 GPT-5.5
OpenAI
$0.111250 (rounded ~ $0.11) ↑ 1071.1% more
#38 o3 Pro
OpenAI
$0.202500 (rounded ~ $0.20) ↑ 2031.6% more
#39 GPT-6 Astra
OpenAI
$0.212500 (rounded ~ $0.21) ↑ 2136.8% more
#40 GPT-5.2 Pro
OpenAI
$0.254625 (rounded ~ $0.25) ↑ 2580.3% more
#41 GPT-5.2 Pro
OpenAI
$0.254625 (rounded ~ $0.25) ↑ 2580.3% more
🏆

Mistral Small 3
Mistral AI

$0.000963
vs Grok Code Fast 1: ↓ 89.9%
🥈

Gemini 3.1 Flash Lite
Google

$0.002781
vs Grok Code Fast 1: ↓ 70.7%
🥉

Gemini 3.5 Flash-Lite
Google

$0.003688
vs Grok Code Fast 1: ↓ 61.2%
#4

Gemini 2.5 Flash
Google

$0.003688
vs Grok Code Fast 1: ↓ 61.2%
#5

Mistral Large 3
Mistral AI

$0.004813
vs Grok Code Fast 1: ↓ 49.3%
#6

Gemini 3.8 Flash
Google

$0.007969 (rounded ~ $0.01)
vs Grok Code Fast 1: ↓ 16.1%
#7

GPT-5.4 mini
OpenAI

$0.008344 (rounded ~ $0.01)
vs Grok Code Fast 1: ↓ 12.2%
#8

o4-mini Deep Research
OpenAI

$0.010125
vs Grok Code Fast 1: ↑ 6.6%
#9

Claude Haiku 4.5
Anthropic

$0.010625
vs Grok Code Fast 1: ↑ 11.8%
#10

Gemini 3.1 Flash
Google

$0.011125 (rounded ~ $0.01)
vs Grok Code Fast 1: ↑ 17.1%
#11

GPT-5.6 Luna
OpenAI

$0.011125 (rounded ~ $0.01)
vs Grok Code Fast 1: ↑ 17.1%
#12

o4-mini
OpenAI

$0.011138 (rounded ~ $0.01)
vs Grok Code Fast 1: ↑ 17.2%
#13

Gemini 3.6 Flash
Google

$0.015938 (rounded ~ $0.02)
vs Grok Code Fast 1: ↑ 67.8%
#14

Gemini 3.5 Flash
Google

$0.016688 (rounded ~ $0.02)
vs Grok Code Fast 1: ↑ 75.7%
#15

GPT-5.3 Codex Spark
OpenAI

$0.021219 (rounded ~ $0.02)
vs Grok Code Fast 1: ↑ 123.4%
#16

GPT-5.3 Instant
OpenAI

$0.021219 (rounded ~ $0.02)
vs Grok Code Fast 1: ↑ 123.4%
#17

Claude Sonnet 5
Anthropic

$0.021250 (rounded ~ $0.02)
vs Grok Code Fast 1: ↑ 123.7%
#18

GPT-5.6 Terra
OpenAI

$0.027813 (rounded ~ $0.03)
vs Grok Code Fast 1: ↑ 192.8%
#19

Gemini 2.5 Pro
Google

$0.030313
vs Grok Code Fast 1: ↑ 219.1%
#20

Claude Sonnet 4.6
Anthropic

$0.031875 (rounded ~ $0.03)
vs Grok Code Fast 1: ↑ 235.5%
#21

Grok 4.3
xAI

$0.036500 (rounded ~ $0.04)
vs Grok Code Fast 1: ↑ 284.2%
#22

Grok 4.20 Beta
xAI

$0.036500 (rounded ~ $0.04)
vs Grok Code Fast 1: ↑ 284.2%
#23

Gemini 3.1 Pro
Google

$0.044500 (rounded ~ $0.04)
vs Grok Code Fast 1: ↑ 368.4%
#24

Claude Opus 4.7
Anthropic

$0.053125 (rounded ~ $0.05)
vs Grok Code Fast 1: ↑ 459.2%
#25

Claude Opus 5
Anthropic

$0.053125 (rounded ~ $0.05)
vs Grok Code Fast 1: ↑ 459.2%
#26

Claude Opus 4.8
Anthropic

$0.053125 (rounded ~ $0.05)
vs Grok Code Fast 1: ↑ 459.2%
#27

Claude Opus 4.6
Anthropic

$0.053125 (rounded ~ $0.05)
vs Grok Code Fast 1: ↑ 459.2%
#28

GPT-5.4
OpenAI

$0.055625 (rounded ~ $0.06)
vs Grok Code Fast 1: ↑ 485.5%
#29

GPT-5.4 Thinking
OpenAI

$0.055625 (rounded ~ $0.06)
vs Grok Code Fast 1: ↑ 485.5%
#30

GPT-5.5 Instant
OpenAI

$0.055625 (rounded ~ $0.06)
vs Grok Code Fast 1: ↑ 485.5%
#31

GPT-5.6 Sol
OpenAI

$0.055625 (rounded ~ $0.06)
vs Grok Code Fast 1: ↑ 485.5%
#32

Claude Fable 5.1
Anthropic

$0.092188 (rounded ~ $0.09)
vs Grok Code Fast 1: ↑ 870.4%
#33

Claude Mythos 5.1
Anthropic

$0.092188 (rounded ~ $0.09)
vs Grok Code Fast 1: ↑ 870.4%
#34

o3 Deep Research
OpenAI

$0.101250 (rounded ~ $0.10)
vs Grok Code Fast 1: ↑ 965.8%
#35

Claude Fable 5
Anthropic

$0.106250 (rounded ~ $0.11)
vs Grok Code Fast 1: ↑ 1018.4%
#36

Claude Mythos 5
Anthropic

$0.106250 (rounded ~ $0.11)
vs Grok Code Fast 1: ↑ 1018.4%
#37

GPT-5.5
OpenAI

$0.111250 (rounded ~ $0.11)
vs Grok Code Fast 1: ↑ 1071.1%
#38

o3 Pro
OpenAI

$0.202500 (rounded ~ $0.20)
vs Grok Code Fast 1: ↑ 2031.6%
#39

GPT-6 Astra
OpenAI

$0.212500 (rounded ~ $0.21)
vs Grok Code Fast 1: ↑ 2136.8%
#40

GPT-5.2 Pro
OpenAI

$0.254625 (rounded ~ $0.25)
vs Grok Code Fast 1: ↑ 2580.3%
#41

GPT-5.2 Pro
OpenAI

$0.254625 (rounded ~ $0.25)
vs Grok Code Fast 1: ↑ 2580.3%
✨ How recommendations work (v8.6.0): We scan all active models in the registry and only include those that support ALL your current inputs. For token-based models, we check if they can handle your token counts. For special pricing models (OCR, video, audio), we verify they have the correct pricing structure. Features marked requested were in your inputs but not supported by that model. Now using official provider pricing without reseller markups.

Optimizing Code Review Pipelines

For engineering teams handling high volumes of pull requests, the primary bottleneck is often the latency of the feedback loop. Grok Code Fast 1 is specifically engineered for this inner dev loop, prioritizing speed and responsiveness over deep, multi-step chain-of-thought processing. When you need to summarize 100K tokens of diffs and provide instant feedback, this model offers a streamlined alternative to heavier reasoning models.

Its architecture excels at tasks where efficiency is paramount. By focusing on rapid turnarounds, it helps maintain developer momentum, reducing the friction often associated with waiting for asynchronous code analysis. This makes it an ideal candidate for automated PR review bots that need to run continuously across large codebases without incurring the overhead of slower, more complex models.

While it may not match the deep architectural reasoning required for complex production migrations or high-stakes refactoring, it performs admirably for routine code review, style enforcement, and test generation. The key for recruiters and engineering managers is to pair this model with workloads that benefit from high throughput and lower cost, ensuring that your automated review agents remain both responsive and sustainable as your team scales. It is best deployed as part of an agentic workflow where you need broad coverage rather than intensive, singular analytical depth.

Frequently Asked Questions

How accurate are these AI model cost calculations?
Our calculations are based on official pricing from each provider (Google, OpenAI, Anthropic, Meta, xAI, Perplexity, DeepSeek, Mistral) and are updated regularly. We account for all factors including multimodal inputs, caching discounts, batch API pricing, tool usage multipliers, OCR processing, audio minutes, silence fees, and research mode pricing. Note: Reseller markups and dedicated instance multipliers have been removed to reflect official provider pricing.
How does prompt caching work?
Caching discounts vary by provider: Google and OpenAI offer 90% discounts on cached input tokens. Anthropic uses write (1.25x) and read (0.10x) multipliers. Savings are applied to the token portion only, not unit-based fees.
How do Market Recommendations work (v8.6.0)?
Our recommendation engine scans the entire model registry and only includes models that support ALL your current input parameters (tokens, images, video, audio, OCR, tools, batch API, etc.). It calculates exact costs with your settings and sorts by price, showing you the best value options that can handle your complete workflow. Special pricing models (OCR, video, audio, image generation) are properly handled and only appear when their specific input types are requested. v8.6.0 removes reseller markups (20% buffer) and dedicated instance multipliers to reflect official provider pricing.
What is the YemHub AI Calculator Tool?
The YemHub AI Calculator is the most comprehensive tool for estimating costs and comparing performance metrics across 50+ AI models. It calculates token-based pricing, analyzes multimodal processing, accounts for state-dependent pricing (context cliffs, tiered tunnels), provides optimization recommendations, and now offers intelligent market matching to find the best alternatives for your specific needs.