Price Per TokenPrice Per Token
Google
Google
vs
Microsoft
Microsoft

Gemma 2 9B vs Phi 4

A detailed comparison of pricing, benchmarks, and capabilities

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

Join the Price Per Token Community

Key Takeaways

Gemma 2 9B wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Higher intelligence benchmark
  • Supports vision

Phi 4 wins:

  • Larger context window
  • Faster response time
  • Better at coding
  • Better at math
Price Advantage
Gemma 2 9B
Benchmark Advantage
Phi 4
Context Window
Phi 4
Speed
Phi 4

Pricing Comparison

Benchmark Comparison

Context & Performance

Capabilities

Feature Comparison

FeatureGemma 2 9BPhi 4
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGemma 2 9BPhi 4
LicenseOpen SourceOpen Source
AuthorGoogleMicrosoft
ReleasedJun 2024Jan 2025

Gemma 2 9B Modalities

Input
text
Output
text

Phi 4 Modalities

Input
text
Output
text

Frequently Asked Questions

Gemma 2 9B has cheaper input pricing at $0.03/M tokens. Gemma 2 9B has cheaper output pricing at $0.08/M tokens.
Gemma 2 9B has a 8,192 token context window, while Phi 4 has a 16,384 token context window.
Gemma 2 9B supports vision. Phi 4 does not support vision.