Skip to content
Not available in this workspace
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Collections
  • Providers
  • Pricing
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Support
  • Works With OR
  • Data

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
Favicon for google

Google: Gemma 3 4B

google/gemma-3-4b-it

Model weights
Compare

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, including structured outputs and function calling.

Modalities

In / Out Price

$0.05 / $0.10per 1M

Context

131K

Released

Mar 13, 2025

Knowledge Cutoff

Aug 2024

Compare
ProvidersPricingPerformanceUptimeBenchmarksAppsActivityFAQ

Providers

This model is hosted by one provider. OpenRouter forwards every request to it directly — no routing decisions to make.

Pricing

The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.

Performance

Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).

Uptime

Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.

Benchmarks

Scores on standardized evaluations. Higher percentages are better — and rank percentile shows where this model lands among all models on OpenRouter.

Apps

Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.

Activity

Token volume and request traffic to this model over time.

Quick Start

Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.

About Google: Gemma 3 4B

OpenRouter makes Google: Gemma 3 4B available through a unified, OpenAI-compatible API using the model ID google/gemma-3-4b-it. It is served by DeepInfra.

Google: Gemma 3 4B accepts text and images and returns text. It has a 131,072-token context window and a maximum output of 16,384 tokens.

On OpenRouter, Google: Gemma 3 4B costs $0.05/M input tokens and $0.10/M output tokens. It was released on March 13, 2025; its knowledge cutoff is August 31, 2024.

More models from Google

  • Gemini 3.7 Flash
  • Gemini 3.6 Flash
  • Gemini 3.5 Flash Lite

Frequently asked questions

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, including structured outputs and function calling.

Gemma 3 4B costs $0.05/M input tokens and $0.10/M output tokens.

Gemma 3 4B has a 131,072 token context window. It supports up to 16,384 completion tokens.

The Gemma 3 4B endpoint shown on this page does not accept tools, so function calling is unavailable there. It also supports structured outputs via a JSON schema in response_format.

Gemma 3 4B accepts text and images as input and returns text.

Gemini 3.7 Flash, Gemini 3.6 Flash, Gemini 3.5 Flash Lite and 25 more are other text models from Google.

Gemma 3 4B was released on March 13, 2025. Its knowledge cutoff is August 31, 2024.

$0.05$0.100.93s15 tps
98.92%

Throughput

15tok/s

P50, best across providers

Latency

0.93s

P50, best provider

Uptime (3d)

100.00%

Availability (3d)

99.85%

Availability over the last 3 days

Last 72 hours
Availability 99.85%
3 Days Ago2 Days AgoYesterdayNow

Availability over the last 24 hours

OpenRouter Availability
99.83%

When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and customization options.

1.
Favicon for https://github.com/open-health-data-lab/EHRRobust
EHRRobust MIPA Experiment 1
new
1.23Btokens
2.
Favicon for https://arcadiaimpact.org/
debate-bench
new
231Mtokens
3.
Favicon for https://directory.futurelearn.com/
Career.io - Process Create User Profile
new
168Mtokens
4.
Favicon for https://github.com/weareaisle/nano-analyzer
HoF-Bench
new
106Mtokens
5.
Favicon for https://musicmerchmarketplace.local/
MusicMerchMarketplace Ingestion
new
81.7Mtokens