opendunes

Gemma 4 31B

by GoogleReleased 2 April 2026

Gemma 4 31B is a model you can download and run yourself that uses all of itself on every word. It reads text and images and answers in text, keeps about 256 pages in mind at once, can think before it answers and uses your tools. Pick it when quality per answer matters more than speed.

TakesTextImagesVideo
GivesText

What it costs

You pay for what each request uses. No subscription, no minimum.

≈ 0,13 DA per message3 000 DA buys about 22 000 messages

One message, the ordinary use

1 000 tokens sent× 66,57 DA per 1M0,067 DA
500 tokens back× 133,13 DA per 1M0,067 DA
Total≈ 0,13 DA

Every rate

Meter↑ you send↓ comes back
Text tokens66,57 DA133,13 DA

per 1M tokens

Answer a quick question≈ 0,043 DA
Reply to a customer email≈ 0,093 DA
Read an invoice photo and pull out the total≈ 0,11 DA
Write a one-page draft≈ 0,14 DA
Review a pull request of about 400 lines≈ 0,56 DA
When you pay
After the answer, from your balance. Nothing is held.
Why it varies
A longer question or a longer answer costs more.
After each one
The exact charge shows on the request.
DepositDeposits from 50 DA, with Edahabia or CIB.

Where your request runs

16 companies run this model. OpenDunes sends each request to one of them, picked by price and speed. If it fails, the next one takes it. DA per 1M tokens: ↑ what you send · ↓ what comes back.

CoreWeaveUnited States…
↑ Sent, per 1M
33,28 DA
↓ Back, per 1M
113,16 DA
Cache read
33,28 DA
Latency
…
Throughput
…
VeniceUnited States…
↑ Sent, per 1M
39,94 DA
↓ Back, per 1M
119,82 DA
Cache read
29,96 DA
Latency
…
Throughput
…
Chutes…
↑ Sent, per 1M
39,94 DA
↓ Back, per 1M
123,15 DA
Cache read
3,99 DA
Latency
…
Throughput
…
DekaLLMAsia…
↑ Sent, per 1M
46,60 DA
↓ Back, per 1M
133,13 DA
Cache read
16,64 DA
Latency
…
Throughput
…
Crusoe…
↑ Sent, per 1M
46,60 DA
↓ Back, per 1M
133,13 DA
Cache read
46,60 DA
Latency
…
Throughput
…
Friendli…
↑ Sent, per 1M
46,60 DA
↓ Back, per 1M
133,13 DA
Cache read
none
Latency
…
Throughput
…
Novita…
↑ Sent, per 1M
46,60 DA
↓ Back, per 1M
133,13 DA
Cache read
none
Latency
…
Throughput
…
NextBitEurope…
↑ Sent, per 1M
49,93 DA
↓ Back, per 1M
133,13 DA
Cache read
19,97 DA
Latency
…
Throughput
…
Parasail…
↑ Sent, per 1M
49,93 DA
↓ Back, per 1M
133,13 DA
Cache read
19,97 DA
Latency
…
Throughput
…
DeepInfraUnited States…
↑ Sent, per 1M
66,57 DA
↓ Back, per 1M
133,13 DA
Cache read
none
Latency
…
Throughput
…
Modal…
↑ Sent, per 1M
113,16 DA
↓ Back, per 1M
33,28 DA
Cache read
33,28 DA
Latency
…
Throughput
…
Io Net5 % off…
↑ Sent, per 1M
Was 126,47120,15 DA
↓ Back, per 1M
Was 382,76363,62 DA
Cache read
Was 63,2460,08 DA
Latency
…
Throughput
…
SambaNova…
↑ Sent, per 1M
126,48 DA
↓ Back, per 1M
382,76 DA
Cache read
none
Latency
…
Throughput
…
PrimeIntellect…
↑ Sent, per 1M
133,13 DA
↓ Back, per 1M
223,00 DA
Cache read
66,57 DA
Latency
…
Throughput
…
ModelRunUnited States…
↑ Sent, per 1M
249,63 DA
↓ Back, per 1M
332,84 DA
Cache read
66,57 DA
Latency
…
Throughput
…
SiliconFlowUnited States…
↑ Sent, per 1M
249,63 DA
↓ Back, per 1M
332,84 DA
Cache read
83,21 DA
Latency
…
Throughput
…
Provider↑ Sent↓ BackCache readLatencyThroughputUptime
CoreWeaveUnited States33,28 DA113,16 DA33,28 DA………
VeniceUnited States39,94 DA119,82 DA29,96 DA………
Chutes39,94 DA123,15 DA3,99 DA………
DekaLLMAsia46,60 DA133,13 DA16,64 DA………
Crusoe46,60 DA133,13 DA46,60 DA………
Friendli46,60 DA133,13 DAnone………
Novita46,60 DA133,13 DAnone………
NextBitEurope49,93 DA133,13 DA19,97 DA………
Parasail49,93 DA133,13 DA19,97 DA………
DeepInfraUnited States66,57 DA133,13 DAnone………
Modal113,16 DA33,28 DA33,28 DA………
Io Net5 % offWas 126,47120,15 DAWas 382,76363,62 DAWas 63,2460,08 DA………
SambaNova126,48 DA382,76 DAnone………
PrimeIntellect133,13 DA223,00 DA66,57 DA………
ModelRunUnited States249,63 DA332,84 DA66,57 DA………
SiliconFlowUnited States249,63 DA332,84 DA83,21 DA………

You pay the price of the provider that served your request. Prices read 15:19 · speed over the last 30 minutes · uptime over 3 days.

See it in action

Real requests, real replies. Try any of them yourself — one click, pre-filled.

Understands images
You send

What's the total on this invoice, and when is it due?

invoice-scan.jpg · photo
It replied

The total is 42 300,00 DA, due 5 September 2026. Worth a double-check: the handwritten day could read as 8 instead of 3.

Try in Chat Lab
Structured output
You send

Turn this customer email into JSON with intent, urgency and order_id.

customer-email.txt
It replied

{ "intent": "refund", "urgency": "high", "order_id": "OD-58421" }

Try in Chat Lab

Try your own request — same model, pre-selected.

Open Chat Lab

Call it in code

Swap the base URL and the key. Your OpenAI code runs unchanged.

POST /v1/chat/completions
Base URL
https://opendunes.com/v1
Model ID
google/gemma-4-31b-it
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://opendunes.com/v1",
    api_key=os.environ["OPENDUNES_API_KEY"],
)

resp = client.chat.completions.create(
    model="google/gemma-4-31b-it",
    messages=[{"role": "user", "content": "Two lines to welcome a shop in Oran."}],
)

print(resp.choices[0].message.content)

Runs this request once on your balance.

Parameters you can send

Standard OpenAI fields, grouped by what they control. Anything not listed is accepted and ignored.

Shaping the reply

How long, how varied, where to stop.

max_tokenstemperaturetop_ptop_kmin_pstopseedfrequency_penaltypresence_penaltyrepetition_penaltylogit_biaslogprobstop_logprobs

Reasoning

Let it think before answering — and see the thinking.

reasoninginclude_reasoning

Structured output

Get JSON you can parse instead of prose.

response_formatstructured_outputs

Tools

Let the model call your functions.

toolstool_choice

Other

Also accepted by this model.

max_completion_tokens

Questions about Gemma 4 31B

  • How much does Gemma 4 31B cost in dinars?

    About 0,13 DA per message. ↑ 66,57 DA · ↓ 133,13 DA per 1M tokens.

  • Is Gemma 4 31B free? Can I try it?

    No. You pay per use from your balance, with no subscription. Try it in Chat at the same price.

  • What is Gemma 4 31B best for?

    Gemma 4 31B is a model you can download and run yourself that uses all of itself on every word. It reads text and images and answers in text, keeps about 256 pages in mind at once, can think before it answers and uses your tools. Pick it when quality per answer matters more than speed.

  • Gemma 4 31B or Gemma 4 26B A4B?

    Gemma 4 26B A4B costs 0,070 DA less for the same message.

  • How do I pay for Gemma 4 31B without an international card?

    Deposit dinars with your Edahabia or CIB card. Every model, Gemma 4 31B included, is paid from that balance. No foreign card, no conversion.

  • Does Gemma 4 31B work in Arabic, French or Darja?

    Google says Gemma 4 supports 35+ languages out of the box and was pre-trained on over 140. Arabic, French and Darja are not named.

  • Can it read PDFs, images or a whole book?

    It reads text, images and video. Up to 262K tokens in one request, about 260 pages. It writes up to 12 000 words at once.

  • Is Gemma 4 31B open source?

    Yes, its weights are public. Open weights on Hugging Face

  • Who makes Gemma 4 31B, and when was it released?

    Google. Released 2 April 2026. It knows the world up to January 2025.

Other Google models, priced in dinars

See all Google models
Gemini Omni 1.2 FlashGoogle · Nov 5, 2026

This model is designed to handle text, pictures, and video inputs, allowing it to read up to 130 pages of content. It specializes in generating and editing video clips, producing outputs that include both text and moving images. What sets this model apart is its native ability to process and generate video content directly. It is not suitable for tasks requiring external tool usage or the creation of structured data formats.

Searches the webThinks first130 pages at once
≈2,00 DAper message
View model
Gemini 3.8 Flash TTSGoogle · Sep 23, 2026

#1 for speech · Gemini 3.8 Flash TTS turns text into speech in 130+ languages with studio-grade acting, regional accents and a voice that stays consistent through long dialogues. It offers prebuilt voices, custom voice personas and voice replication, with about 8 pages of text per request. Pick it for audiobooks, narration and multi-speaker scenes.

30 voices
≈3,02 DAper paragraph read aloud
View model

Nano Banana 2, Google's 3.1 Flash Image model, generates and edits images from a written description and reference pictures, returning images with text. It outputs up to 4K, adds very tall and very wide shapes such as 1:8, and renders text in other languages better. Pick it for production batches of ads, banners and edits.

Up to 14 references4K
≈24,60 DAper image
View model
Gemini Omni 1.1 FlashGoogle · Nov 4, 2026

This model accepts text, pictures, and videos as input, allowing it to read up to 130 pages of content. It specializes in creating and editing video content, converting descriptions or pictures into moving images. A key feature is its ability to search the web for information while processing complex visual data. However, it does not utilize external tools or generate structured data formats.

Searches the webThinks first130 pages at once
≈2,00 DAper message
View model