Textby Google

Gemma 3 4B

Gemma 3 introduces multimodality, supporting vision-language input and text outputs. It handles context windows up to 128k tokens, understands over 140 languages, and offers improved math, reasoning, and chat capabilities,...

  • By price it is among the cheapest of the 345 text models GenMagic runs (12th cheapest).
  • It has scores on 13 public benchmarks, listed below with their sources.
  • It was listed on Mar 13, 2025.

Data last changed Nov 13, 2026 · tracked since Oct 29, 2026 · Every model change

Try Gemma 3 4B

Generate with Gemma 3 4B right here. Verify your email to start with free credits.

<$0.01
Try

Specifications

Context window

131K tokens

Max output

16K tokens

Knowledge cutoff

2024-08-31

Input price

$0.075 / 1M tokens

Output price

$0.15 / 1M tokens

Benchmarks

How Gemma 3 4B scores on public benchmarks. Each card links to the benchmark explainer and to the original source.

2.7

source date 2026-11-11
Source: openrouter
AIMEMathematics

7.5%± 2.8

source date 2026-08-28
Source: epoch
Chess PuzzlesReasoning & Knowledge

0%± 0.0

source date 2026-08-28
Source: epoch
DTBenchReasoning & Knowledge

50.9%

Source: epoch
GPQA DiamondReasoning & Knowledge

27.1%

source date 2026-10-15
Source: openrouter
LMArena (Coding)Instruction & Preference

1230 Elo

source date 2026-11-11
Source: lmarena
LMArena: Creative WritingInstruction & Preference

1270 Elo

source date 2026-11-11
Source: lmarena
LMArena: Hard PromptsInstruction & Preference

1253 Elo

source date 2026-11-11
Source: lmarena

1273 Elo

source date 2026-11-11
Source: lmarena
LMArena: MathMathematics

1256 Elo

source date 2026-11-11
Source: lmarena
LMArena: Multi-TurnInstruction & Preference

1255 Elo

source date 2026-11-11
Source: lmarena
LMArena (Overall)Instruction & Preference

1291 Elo

source date 2026-11-11
Source: lmarena
LMCAReasoning & Knowledge

2.8

Source: epoch

Compare against every model in the full benchmark matrix.

Capabilities

Vision input

Accepts images alongside text, so you can prompt with pictures and screenshots.

Structured output

Returns validated JSON that conforms to a schema you define.

Use Gemma 3 4B through the API

The model id is google/gemma-3-4b-it. Requests bill your GenMagic balance at the price above, and each response reports what it cost.

curl
curl https://genmagic.co/api/v1/chat/completions \
  -H "Authorization: Bearer $GENMAGIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemma-3-4b-it",
    "messages": [{ "role": "user", "content": "Explain vector databases in two sentences." }]
  }'
Python (openai SDK)
from openai import OpenAI

client = OpenAI(base_url="https://genmagic.co/api/v1", api_key="YOUR_GENMAGIC_API_KEY")

resp = client.chat.completions.create(
    model="google/gemma-3-4b-it",
    messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
)
print(resp.choices[0].message.content)

From an AI agent, call generate_text with "model": "google/gemma-3-4b-it" on the GenMagic MCP server. Keys, limits and every endpoint are in the API documentation.

Use Gemma 3 4B in n8n

  1. In n8n, open the nodes panel, search for GenMagic and install it (a verified community node), then add it to your workflow.
  2. Set Resource to Text and Operation to Generate.
  3. In Model Name or ID, pick Google: Gemma 3 4B, or enter google/gemma-3-4b-it as an expression.
  4. Connect your GenMagic API key (get one free). Each run is billed at the price above, and the node returns what it cost.

Ready-to-import workflows that already use the node are on GenMagic for n8n.

Similar-priced text models from other providers

Other text models GenMagic runs at a comparable price, on the same balance and API key.

ModelProviderPriceContext
Google: Gemma 3 4B (this model)Google$0.075 in / $0.15 out per 1M tokens131K
Qwen: Qwen3.7 FlashQwen$0.045 in / $0.20 out per 1M tokens1M
OpenAI: gpt-oss-20bOpenAI$0.045 in / $0.20 out per 1M tokens131K
Mistral: Mistral Small 3Mistral AI$0.075 in / $0.12 out per 1M tokens33K
Amazon: Nova Micro 1.0Amazon$0.052 in / $0.21 out per 1M tokens128K
Nex AGI: Nex-N2.5-MiniNEX-AGI$0.037 in / $0.15 out per 1M tokens262K

More from Google

All 41 Google models

Price and listing history

Every change GenMagic has recorded for Gemma 3 4B since it began tracking the model on Oct 29, 2026. Prices are GenMagic's, the same the studio and the API charge.

DateChangeBeforeAfter
Nov 1, 2026Price up 36%$0.055 in / $0.11 out per 1M tokens$0.075 in / $0.15 out per 1M tokens

Where these figures come from

  • Price: GenMagic's own price, what the studio and the API charge, recomputed from the provider's price list every few minutes and recorded daily. How pricing works.
  • Specs and description: as Google publishes them (model card on Hugging Face), checked daily.
  • Benchmarks: 13 scores from Artificial Analysis and OpenRouter, Epoch AI, LMArena, re-read daily. Each score above links to its source.
  • Changes: the data on this page last changed on Nov 13, 2026, tracked since Oct 29, 2026. Every model's new listings, price changes and retirements are in the model changes log, and how every figure on GenMagic is sourced is on our sources page.

Generate with Gemma 3 4B today

One GenMagic plan unlocks Gemma 3 4B and every other model across text, image, audio, and video.