Gemma 4 31B
In paid plansGoogle's open-weights Gemma 4 at 31B parameters.
Context window262K262,144 tokens
Input$0.21290 IQDper 1M tokens
Output$0.60830 IQDper 1M tokens
Input modalitiesText, Image→ Text
Providers3
Overview
| Model ID | google/gemma-4-31b |
|---|---|
| Series | |
| Context window | 262,144 tokens |
| Max output | — |
| Input modalities | Text, Image |
| Output modalities | Text |
| Providers | 3 |
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).
| Provider | Input | Output | Note |
|---|---|---|---|
| Crusoe | $0.21 · 290 IQD | $0.60 · 830 IQD | Lowest |
Providers
Our price, per provider, in US dollars and Iraqi dinars (1 USD = 1,380 IQD, rounded up to 10 IQD).
| Provider | Input | Output | Note |
|---|---|---|---|
| Crusoe | $0.21 · 290 IQD | $0.60 · 830 IQD | Lowest |
| 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."}] }'import osfrom openai import OpenAIclient = OpenAI(base_url="https://api.optes3.com/v1", api_key=os.environ["OPTES_API_KEY"])resp = client.chat.completions.create( model="google/gemma-4-31b", messages=[{"role": "user", "content": "Suggest three names for a café in Baghdad."}],)print(resp.choices[0].message.content)import OpenAI from "openai";const client = new OpenAI({ baseURL: "https://api.optes3.com/v1", apiKey: process.env.OPTES_API_KEY });const resp = await client.chat.completions.create({ model: "google/gemma-4-31b", messages: [{ role: "user", content: "Suggest three names for a café in Baghdad." }],});console.log(resp.choices[0].message.content);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.