Gemma 4 31B: API pricing, context window and capabilities

Prices from official vendor price lists · October 2026

Gemma 4 31B costs $0.09 per 1M input tokens and $0.34 per 1M output tokens, with a 262.1K context window. One of the cheapest models here — below 84% of the rating on output price. Suited to high volume, where a wrong answer is cheap to retry.

Capabilities
Text & chatVisionVideo
API $/1M (in / out)
$0.09 / $0.34
Context window
262.1K tokens
Price / mo
API only

Gemma 4 31B is an AI model from Google DeepMind, priced at $0.09 input and $0.34 output per 1M tokens. That places it in the budget tier of this rating — cheaper than 84% of the 205 priced models listed.

It holds 262.1K tokens in a single conversation. Capabilities recorded in this rating: text & chat, vision, video, structured JSON output, code execution. Access is through the API rather than a consumer subscription.

API price$0.09 / $0.34per 1M tokens, in / out
Context262.1K tokenstokens per conversation
VendorGoogle DeepMindall models from this vendor
TierBudgetcheaper than 84% of models

Cost calculator

Standard$0.28AED 1 per month
With batch −50%$0.14AED 1 per month
With caching on input$0.26AED 1 per month
Standard$2.78AED 10 per month
With batch −50%$1.39AED 5 per month
With caching on input$2.57AED 9 per month
Standard$13.88AED 51 per month
With batch −50%$6.94AED 25 per month
With caching on input$12.86AED 47 per month
Standard$55.50AED 204 per month
With batch −50%$27.75AED 102 per month
With caching on input$51.45AED 189 per month

Assumes a 1:3 input-to-output ratio, which is typical for chat and generation. Dirham figures use 3.6725 per dollar. Batch and caching discounts apply where the vendor offers them.

Compared with alternatives

Good and poor fit

Good fit
  • Reading screenshots, charts, scanned documents and photos.
  • General text generation and conversation across languages.
Poor fit
  • Integrations that depend on structured function calls.

Related filters

Text & chat234 models for text generation and chat
Vision159 models that read images
Code execution47 models that run code in a sandbox
Prompt caching153 models with cheap repeated context
Batch API146 models with half-price async processing
Google DeepMind17 models from this vendor
All 245 modelsThe full rating with filters and prices

Frequently asked questions

How much does Gemma 4 31B cost?

$0.09 / $0.34 per 1M tokens, input and output. In dirhams that is roughly AED 0.33 per 1M input tokens. Batch processing halves it where the vendor offers it.

What is the context window of Gemma 4 31B?

262.1K tokens in a single conversation.

What can Gemma 4 31B do?

In this rating it is recorded with: text & chat, vision, video, structured JSON output, code execution, prompt caching, batch API, priority / fast tier, free tier, multilingual, open weights.

Is Gemma 4 31B a good choice?

It depends on the job. See the good-fit and poor-fit lists above, and compare against the neighbouring models before committing.

Frequently searched

Ratings 0

Avg. score 0

Rate this page

Help us improve