opendunes

Gemma 3 4B

by GoogleReleased 13 March 2025

Gemma 3 4B is the smallest Gemma 3 model you can download and run yourself: it reads text and images, answers in text, keeps about 128 pages in mind at once and speaks 140+ languages. Unlike the 12B and 27B, it cannot use tools. Pick it for light jobs such as short chat and simple image questions.

TakesTextImages
GivesText

What it costs

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

≈ 0,033 DA per message3 000 DA buys about 90 000 messages

One message, the ordinary use

1 000 tokens sent× 16,64 DA per 1M0,017 DA
500 tokens back× 33,28 DA per 1M0,017 DA
Total≈ 0,033 DA

Every rate

Meter↑ you send↓ comes back
Text tokens16,64 DA33,28 DA

per 1M tokens

Sort a support email into a category≈ 0,0090 DA
Answer a quick question≈ 0,011 DA
Reply to a customer email≈ 0,023 DA
Read an invoice photo and pull out the total≈ 0,027 DA
Translate a full page of text≈ 0,038 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

Two 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.

Parasail…
↑ Sent, per 1M
13,31 DA
↓ Back, per 1M
16,64 DA
Cache read
6,66 DA
Latency
…
Throughput
…
DeepInfraUnited States…
↑ Sent, per 1M
16,64 DA
↓ Back, per 1M
33,28 DA
Cache read
none
Latency
…
Throughput
…
Provider↑ Sent↓ BackCache readLatencyThroughputUptime
Parasail13,31 DA16,64 DA6,66 DA………
DeepInfraUnited States16,64 DA33,28 DAnone………

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-3-4b-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-3-4b-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

Structured output

Get JSON you can parse instead of prose.

response_formatstructured_outputs

Questions about Gemma 3 4B

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

    About 0,033 DA per message. ↑ 16,64 DA · ↓ 33,28 DA per 1M tokens.

  • Is Gemma 3 4B 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 3 4B best for?

    Gemma 3 4B is the smallest Gemma 3 model you can download and run yourself: it reads text and images, answers in text, keeps about 128 pages in mind at once and speaks 140+ languages. Unlike the 12B and 27B, it cannot use tools. Pick it for light jobs such as short chat and simple image questions.

  • Gemma 3 4B or Gemma 3 12B?

    Gemma 3 12B costs 0,0090 DA more for the same message.

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

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

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

    Google says Gemma 3 has multilingual support in over 140 languages. Arabic, French and Darja are not named.

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

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

  • Is Gemma 3 4B open source?

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

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

    Google. Released 13 March 2025. It knows the world up to 31 August 2024.

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