Google

Gemma 4 31B

Google's current-generation open-weight model, available across inference gateways for self-hosted and low-cost deployment.

ActiveAvailable from 16 providers
Tool callingCan invoke external tools and APIs (function calling) mid-response.Structured outputCan return JSON or schema-constrained responses instead of free text.ReasoningUses extended thinking / chain-of-thought for harder multi-step problems.Effort controlLets you dial thinking depth (low / medium / high) to trade cost for quality.Fine-tuningSupports training a custom variant on your own data.

Source: Gemini API models, Gemini API pricing

Price per 1M tokens
$0.28 in / $0.86 out
Context window131,072
Max output8,192
ModalitiesText, Image → Text
Priced across16 providers

Pricing

Every billing leg from the live catalog, in USD per 1M tokens.

Billing legRate
Input$0.28 / M
Output$0.86 / M

Cost calculator

Billing-grade math over the rate card above, including the thinking tokens most estimates miss.

Estimated monthly cost
$73.20
at current list prices
Fresh input$56.00
Output$17.20
Track this automatically →

Compare providers

The same model, priced across every platform that serves it. Lowest combined in/out rate is flagged.

PlatformInput / MOutput / MCache read / MBatchAccess
Together AI
$0.28$0.86Direct
WandbLowest
$0.12$0.35$0.09via OpenRouter
Venice
$0.12$0.36$0.09via OpenRouter
Chutes
$0.12$0.37$0.06via OpenRouter
DeepInfra
$0.13$0.38via OpenRouter
SiliconFlow
$0.13$0.4via OpenRouter
AWS Bedrock
$0.14$0.4Direct
Novita
$0.14$0.4via OpenRouter
AWS Bedrock · Regional
from$0.14$0.4Direct
Parasail
$0.15$0.4$0.06via OpenRouter
Phala
$0.15$0.46$0.075via OpenRouter
Modelrun
$0.22$0.55$0.12via OpenRouter
Together AI
$0.28$0.86Direct
Together AI
$0.39$0.97via OpenRouter
Together AI
$0.39$0.97Direct
SambaNova
$0.38$1.15via OpenRouter

Regional deployments are priced per region; the lowest available region rate is shown.

Price history

Has this model gotten cheaper or more expensive?

No changePriced at $0.28 / $0.86 per 1M since July 8, 2026.

More from Google

Other models from the same provider.

Stop estimating. Track it.

SuperPenguin meters every Gemma 4 31B call your team makes, prices it with this exact rate card, and shows spend by feature, customer, and team.

Get started free

Rates are generated from SuperPenguin's live pricing catalog.