Skip to main content
idapt
HomeAI ModelsExploreResourcesPricing
Sign inUse for Free
  • Home
  • Pricing
  • AI Models
  • Skills
  • Image models
  • Voice models
  • Video models
  • Rankings
  • Multi-Model Chat
  • Agents
  • Computers
  • Drive
  • Automations
  • AI Gateway
  • All features →
  • Blog
  • About
  • Comparisons
  • Benchmarks
  • Model Match
  • Demos
  • Help center
  • FAQ
  • Privacy
  • Support
  • Developers
  • Quickstarts
  • API reference
  • API pricing
  • CLI
  • MCP
  • Migrate
  • Downloads
  • Desktop
© idapt[email protected]TermsPrivacy PolicyLegal noticeReport content
X (Twitter)Discord

Gemma 4 31B vs Phi 4

At a glance

Google's fourth-generation open dense model with native multimodal understanding.

262K ctx$0.20/$0.40 per M

Microsoft's compact research model with strong STEM reasoning.

6516K ctx$0.07/$0.14 per M#61/92
Demos
All demos

No shared demos for these models yet.

AI Output
All AI outputs

No captured outputs for these models yet.

Benchmarks
See rankings
Reasoning
CodingInsufficient data
AgenticInsufficient data
Sources:Epoch AI·OpenRouter· as of 2026-10-02
Capability
Capability—
Reasoning & Knowledge
Graduate Science35%75.8%Factual Recall10.4%
Math
Math Problems—Competition Math433%73.3%
CodingInsufficient data
AgenticInsufficient data
Sources:Epoch ECI·Epoch AI·OpenRouter· as of 2026-07-10
Cheaper65%
Capability
CapabilityECI64.6
Reasoning & Knowledge
Graduate Science56.1%Factual Recall—
Math
Math Problems64.9%Competition Math13.8%
Specs
262K
Context
16K
Max output
Apr 2026
Released
16K
Context
15K
Max output
Jan 2025
Released
Capabilities
Vision
Audio
Reasoning
Vision
Audio
Reasoning
Pricing
Live pricing, shown before you run
Input$0.20/M tokens
Output$0.40/M tokens
Live pricing, shown before you run
Input65%$0.07/M tokens
Output65%$0.14/M tokens
Chat with Gemma 4 31BGo to model
Chat with Phi 4Go to model
Frequently Asked Questions: Gemma 4 31B vs Phi 4▼

Which is better, Gemma 4 31B or Phi 4?

▼

Both Gemma 4 31B and Phi 4 are capable AI models. The best choice depends on your specific use case: consider pricing, context window, speed, and which capabilities (vision, reasoning, audio) you need.

Which is cheaper, Gemma 4 31B or Phi 4?

▼

Phi 4 has a lower blended cost. Gemma 4 31B: $0.20 input / $0.40 output. Phi 4: $0.07 input / $0.14 output.

Which has a larger context window, Gemma 4 31B or Phi 4?

▼

Gemma 4 31B has a larger context window: Gemma 4 31B supports 262K tokens vs Phi 4 at 16K tokens.

Do both Gemma 4 31B and Phi 4 support vision?

▼

Gemma 4 31B supports vision/image input, but Phi 4 does not.

What are the key differences between Gemma 4 31B and Phi 4?

▼

Key differences: Phi 4 is significantly cheaper; only Gemma 4 31B supports vision input; only Gemma 4 31B offers extended reasoning mode. Compare full specs on this page.

Which model should I choose for my use case?

▼

If cost is your priority, choose the cheaper option. If you need the highest intelligence for complex tasks, pick the higher-scoring model. For long documents or codebases, choose the larger context window. You can try both Gemma 4 31B and Phi 4 for free on idapt.app to see which performs better for your specific needs.

Open in App