EnglishEN
Try OPTES
Model catalog

Gemma 4 31B

In paid plans
Google

Google's open-weights Gemma 4 at 31B parameters.

Open weightsLow cost
Context window262K262,144 tokens
Input$0.21290 IQDper 1M tokens
Output$0.60830 IQDper 1M tokens
Input modalitiesText, Image→ Text
Providers3

Overview

Model IDgoogle/gemma-4-31b
SeriesGoogle
Context window262,144 tokens
Max output—
Input modalitiesText, Image
Output modalitiesText
Providers3

Context window: served in OPTES plans, checked 2026-10-01

Price on OPTES

Our price, per provider, in US dollars and Iraqi dinars (1 USD = 1,380 IQD, rounded up to 10 IQD).

ProviderInputOutputNote
Crusoe$0.21 · 290 IQD$0.60 · 830 IQDLowest

Providers

Our price, per provider, in US dollars and Iraqi dinars (1 USD = 1,380 IQD, rounded up to 10 IQD).

ProviderInputOutputNote
Crusoe$0.21 · 290 IQD$0.60 · 830 IQDLowest
FriendliAI$0.21 · 290 IQD$0.60 · 830 IQD
SambaNova$0.57 · 790 IQD$1.725 · 2,390 IQD

Call it through the OPTES API

This model is coming soon to OPTES. This is how the call will look; your OPTES key will work for it.

curl https://api.optes3.com/v1/chat/completions \  -H "Authorization: Bearer $OPTES_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "google/gemma-4-31b",    "messages": [{"role": "user", "content": "Suggest three names for a café in Baghdad."}]  }'

Full API reference

In OPTES Code paid plans

Choose it from the model list in OPTES Code on any paid plan. Through the API it comes later, with the same OPTES key.

More from Google

The OPTES API, sign-up and keys open at launch on Friday, 2 October 2026. Third-party models are coming soon after that. Some are in OPTES Code plans from launch, as marked.