Google

Gemma 3 4B

google/gemma-3-4b-it
Model weightsReleased Mar 13, 2025Open Weights
Visionopen weights

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

Cost / 1M tokens

Very low usage

$0.05

input

—

cached input

$0.10

output

Context Window

131K

Up to 16K max output

Modalities

text, image → text

Gemini tokenizer

Quickstart & API

google/gemma-3-4b-it
Open the model picker in ChatOSS Desktop (Code, Kanban, or Chat) and select or paste this model ID.

Best for & Strengths

Key Strengths

Open weightsMultimodal vision

Recommended Workloads in ChatOSS

  • Screenshot-to-code workflows
  • Open-source AI workflows
Available in ChatOSS Code, Kanban Orchestrate, and Chat modes via Plus, Max, or BYOK.

Verified Evaluations

Benchmarks & Frontier Comparison

How Gemma 3 4B compares against leading open-weight and proprietary frontier models across independent agentic coding and reasoning suites.

View full Top 40 Leaderboard →
Benchmark (Metric)Gemma 3 4BDeepSeek V4.1 FlashGLM 5.3Kimi K3.1 ProClaude Opus 5.5
Agentic & Software Engineering
ChatOSS Agentic Coding Index (%)—63.2%58.3%65%74.1%
SWE-Bench Verified (%)—91.5%95.4%94.8%97%
DeepSWE v1.1 (Pass@1 %)—77%69%73.5%74.2%
Vibe Code Bench v1.1 (%)—87.7%78.1%88.4%90.3%
Terminal-Bench 4.0 (%)—42.3%42%46.2%65.2%
Code Migration (%)—45.6%44.2%52%66.7%
Intelligence & Token Economics
Artificial Analysis Intelligence Index (0–100)4.839.544.855.157.6
Input Price (/ 1M tokens)$0.05$0.15$1.40$2.00$4.00
Output Price (/ 1M tokens)$0.10$0.60$4.40$10.00$20.00

Artificial Analysis Intelligence Index

Artificial Analysis

4.8

Active Provider Endpoints (2)

Upstream inference providers serving Gemma 3 4B, with per-provider pricing, context limits, quantization, and 24-hour uptime.

ProviderInput / 1MOutput / 1MCache Read / 1MContextMax OutputQuantizationUptime (24h)
Parasailcache
parasail/bf16
$0.04$0.05$0.02131K118Kbf1699.8%
DeepInfra
deepinfra/bf16
$0.05$0.10—131K16Kbf1699.7%

Supported API Parameters

Parameters accepted by this model when called through ChatOSS or OpenRouter.

frequency_penaltylogit_biaslogprobsmax_tokensmin_ppresence_penaltyrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetop_ktop_logprobstop_p

Compare Similar Models

Browse all models →