Price Per TokenPrice Per Token
Google
Google
vs
OpenAI
OpenAI

Gemma 2 27B vs GPT-5 Codex

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Best LLMs for OpenClaw Vote for which model works best with OpenClaw

102 out of our 300 tracked models have had a price change in February.

Get our weekly newsletter on pricing changes, new releases, and tools.

Key Takeaways

Gemma 2 27B wins:

  • Cheaper input tokens
  • Cheaper output tokens

GPT-5 Codex wins:

  • Larger context window
  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Supports vision
  • Supports tool calls
Price Advantage
Gemma 2 27B
Benchmark Advantage
GPT-5 Codex
Context Window
GPT-5 Codex
Speed
GPT-5 Codex

Pricing Comparison

Price Comparison

MetricGemma 2 27BGPT-5 CodexWinner
Input (per 1M tokens)$0.65$1.25 Gemma 2 27B
Output (per 1M tokens)$0.65$10.00 Gemma 2 27B
Cache Read (per 1M)N/A$125000.00 GPT-5 Codex
Using a 3:1 input/output ratio, Gemma 2 27B is 81% cheaper overall.

Gemma 2 27B Providers

NextBit $0.65 (Cheapest)

GPT-5 Codex Providers

OpenAI $1.25 (Cheapest)

Benchmark Comparison

8
Benchmarks Compared
0
Gemma 2 27B Wins
3
GPT-5 Codex Wins

Benchmark Scores

BenchmarkGemma 2 27BGPT-5 CodexWinner
Intelligence Index
Overall intelligence score
36.244.5
Coding Index
Code generation & understanding
-38.9-
Math Index
Mathematical reasoning
-98.7-
MMLU Pro
Academic knowledge
38.486.5
GPQA
Graduate-level science
16.783.7
LiveCodeBench
Competitive programming
-84.0-
Aider
Real-world code editing
36.1--
BBH
Big-Bench Hard
49.3--
GPT-5 Codex significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Gemma 2 27B
Other models

Context & Performance

Context Window

Gemma 2 27B
8,192
tokens
Max output: 2,048 tokens
GPT-5 Codex
400,000
tokens
Max output: 128,000 tokens
GPT-5 Codex has a 98% larger context window.

Speed Performance

MetricGemma 2 27BGPT-5 CodexWinner
Tokens/secondN/A338.6 tok/s
Time to First TokenN/A14.88s

Capabilities

Feature Comparison

FeatureGemma 2 27BGPT-5 Codex
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGemma 2 27BGPT-5 Codex
LicenseOpen SourceProprietary
AuthorGoogleOpenAI
ReleasedJul 2024Sep 2025

Gemma 2 27B Modalities

Input
text
Output
text

GPT-5 Codex Modalities

Input
textimage
Output
text

Related Comparisons

Compare Gemma 2 27B with:

Compare GPT-5 Codex with:

Frequently Asked Questions

Gemma 2 27B has cheaper input pricing at $0.65/M tokens. Gemma 2 27B has cheaper output pricing at $0.65/M tokens.
GPT-5 Codex scores higher on coding benchmarks with a score of 38.9, compared to Gemma 2 27B's score of N/A.
Gemma 2 27B has a 8,192 token context window, while GPT-5 Codex has a 400,000 token context window.
Gemma 2 27B does not support vision. GPT-5 Codex supports vision.