Skip to main content
idapt
HomeCodeAI ModelsPricing
Sign inStart free trial
  • Home
  • Pricing
  • AI Models
  • Image models
  • Voice models
  • Video models
  • Rankings
  • New models
  • Model status
  • Multi-Model Chat
  • Agents
  • Computers
  • Drive
  • Automations
  • AI Gateway
  • All features →
  • LLM cost calculator
  • Token counter
  • All free tools →
  • Blog
  • Use cases
  • Comparisons
  • Best of
  • Benchmarks
  • Demos
  • Changelog
  • Help center
  • FAQ
  • Privacy
  • Compare all models
  • Support
  • idapt Code
  • Developers
  • Quickstarts
  • API reference
  • API pricing
  • CLI
  • MCP
  • Downloads
  • Desktop
  • Badges and embeds
© idapt[email protected]TermsPrivacy PolicyLegal noticeReport content
X (Twitter)

Gemma 4 31B vs Claude Sonnet 4

At a glance

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

262K ctx$0.12/$0.37 per M

Significantly enhanced over Sonnet 3.7 in coding and reasoning tasks.

75200K ctx$3.00/$15.00 per M#43/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
ReasoningInsufficient data
MathInsufficient data
Sources:Epoch AI·OpenRouter· as of 2026-07-10
Cheaper97%
Capability
Capability—
Reasoning & Knowledge
Graduate Science—Factual Recall9.6%
Math
Math Problems—Competition Math—Research Math—
Coding
Code Editing—
Agentic
Novel Reasoning—
Reasoning
CodingInsufficient data
AgenticInsufficient data
Sources:Epoch ECI·Epoch AI·OpenRouter· as of 2026-07-10
Capability
CapabilityECI74.7
Reasoning & Knowledge
Graduate Science66.7%Factual Recall—
Math
Math Problems84.4%Competition Math28.9%Research Math4.1%
Coding
Code Editing56.4%
Agentic
Novel Reasoning1.3%
Specs
262K
Context
16K
Max output
Apr 2026
Released
200K
Context
64K
Max output
May 2025
Released
Capabilities
Vision
Audio
Reasoning
Vision
Audio
Reasoning
Pricing
Live pricing, shown before you run
Input96%$0.12/M tokens
Output98%$0.37/M tokens
Live pricing, shown before you run
Input$3.00/M tokens
Output$15.00/M tokens
Cache read$0.30/M tokens
Cache write$3.75/M tokens
Web search$0.01/search
Chat with Gemma 4 31BGo to model
Chat with Claude Sonnet 4Go to model
Frequently Asked Questions: Gemma 4 31B vs Claude Sonnet 4▼

Which is better, Gemma 4 31B or Claude Sonnet 4?

▼

Both Gemma 4 31B and Claude Sonnet 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 Claude Sonnet 4?

▼

Gemma 4 31B has a lower blended cost. Gemma 4 31B: $0.12 input / $0.37 output. Claude Sonnet 4: $3.00 input / $15.00 output.

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

▼

Gemma 4 31B has a larger context window: Gemma 4 31B supports 262K tokens vs Claude Sonnet 4 at 200K tokens.

Do both Gemma 4 31B and Claude Sonnet 4 support vision?

▼

Yes, both Gemma 4 31B and Claude Sonnet 4 support vision/image input.

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

▼

Key differences: Gemma 4 31B is significantly cheaper. 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 Claude Sonnet 4 for free on idapt.app to see which performs better for your specific needs.

Open in App