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

Gemini 3.1 Flash-Lite PreviewvsGrok Code Fast 1

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

Google

Gemini 3.1 Flash-Lite Preview

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

Grok Code Fast 1

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

Winner by Category

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

Pricing Comparison

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

Speed Comparison

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

Benchmark Comparison

Data from Artificial Analysis API — 12 benchmarks

Intelligence Index
33.528.7
Coding Index
30.123.7
Math Index
43.3
GPQA Diamond
82.2%72.7%
MMLU-Pro
79.3%
LiveCodeBench
65.7%
AIME 2025
43.3%
MATH-500
Humanity's Last Exam
16.2%7.5%
SciCode
41.9%36.2%
IFBench
77.2%41.4%
TerminalBench
24.2%17.4%
Gemini 3.1 Flash-Lite Preview7 wins
4 winsGrok Code Fast 1

Frequently Asked Questions

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

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. However, Grok Code Fast 1 has lower time-to-first-token (2.79s vs 7.37s).

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

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.