Compare/Grok Code Fast 1 vs Gemini 3.1 Flash-Lite Preview

Grok Code Fast 1vsGemini 3.1 Flash-Lite Preview

Side-by-side comparison of pricing, 12 benchmarks, and generation speed.

xAI

Grok Code Fast 1

Input
$0.2/M
Output
$1.5/M
Speed
186 tok/s
TTFT
2.79s
Google

Gemini 3.1 Flash-Lite Preview

Input
$0.25/M
Output
$1.5/M
Speed
219 tok/s
TTFT
7.37s

Winner by Category

Cheaper
Grok Code Fast 1
Faster (tok/s)
Gemini 3.1 Flash-Lite Preview
Lower Latency
Grok Code Fast 1
Benchmarks (4-7)
Gemini 3.1 Flash-Lite Preview

Pricing Comparison

MetricGrok Code Fast 1Gemini 3.1 Flash-Lite Preview
Input ($/M tokens)$0.2$0.25
Output ($/M tokens)$1.5$1.5
Cost for 1M input + 100K output tokens:
Grok Code Fast 1$0.35
Gemini 3.1 Flash-Lite Preview$0.40

Speed Comparison

Output Speed (tokens/s) — higher is better
Grok Code Fast 1
186 tok/s
Gemini 3.1 Flash-Lite Preview
219 tok/s
Time to First Token (seconds) — lower is better
Grok Code Fast 1
2.79s
Gemini 3.1 Flash-Lite Preview
7.37s

Benchmark Comparison

Data from Artificial Analysis API — 12 benchmarks

Intelligence Index
28.733.5
Coding Index
23.730.1
Math Index
43.3
GPQA Diamond
72.7%82.2%
MMLU-Pro
79.3%
LiveCodeBench
65.7%
AIME 2025
43.3%
MATH-500
Humanity's Last Exam
7.5%16.2%
SciCode
36.2%41.9%
IFBench
41.4%77.2%
TerminalBench
17.4%24.2%
Grok Code Fast 14 wins
7 winsGemini 3.1 Flash-Lite Preview

Frequently Asked Questions

Which is cheaper, Grok Code Fast 1 or Gemini 3.1 Flash-Lite Preview?

Grok Code Fast 1 is cheaper overall. Its blended price (3:1 input/output ratio) is $0.53/M tokens vs $0.56/M for Gemini 3.1 Flash-Lite Preview.

Which model performs better on benchmarks?

Gemini 3.1 Flash-Lite Preview wins 7 out of 12 benchmarks compared to 4 for Grok Code Fast 1. See the detailed benchmark chart above for per-category results.

Which is faster for real-time applications?

Gemini 3.1 Flash-Lite Preview generates tokens faster at 219 tok/s vs 186 tok/s. Grok Code Fast 1 also has lower time-to-first-token (2.79s vs 7.37s).

When should I use Grok Code Fast 1 vs Gemini 3.1 Flash-Lite Preview?

Choose based on your priorities: Grok Code Fast 1 for lower cost, Gemini 3.1 Flash-Lite Preview for stronger benchmark performance, and Gemini 3.1 Flash-Lite Preview for faster generation. For latency-sensitive apps, check the TTFT comparison above.