LLM ReferenceLLM Reference
OpenRouter

Gemma 3 on OpenRouter

Gemma 3 · Google DeepMind

ServerlessOpen Source

Last refreshed 2026-05-11. Next refresh: weekly.

Why use Gemma 3 on OpenRouter?

OpenRouter offers Gemma 3 with pay-as-you-go pricing at $0.04/1M input tokens. OpenRouter is a multi-provider LLM aggregator offering unified API access to 300+ models from all major labs and emerging providers, with automatic failover for reliability.

Compare Gemma 3 across 3 providers to find the best fit for your use case
Input / 1M
$0.040
Output / 1M
$0.080
Cache
Not sourced
Batch
Not sourced

Setup recipe

Docs fallback
Install
Use the provider REST API or SDK
Auth
Create a provider API key
Call
model: google/gemma-3-4b-it
Model ID
google/gemma-3-4b-it

Request example

Curated snippets for this provider are not sourced yet. Use OpenRouter documentation with model ID google/gemma-3-4b-it.

Gotchas

  • Use provider model ID "google/gemma-3-4b-it", not the LLMReference slug "gemma-3".

Compare Gemma 3 Across Providers

ProviderInput (per 1M)Output (per 1M)
OpenRouter$0.04$0.08
Google AI StudioFreeFree
GCP Vertex AIFreeFree

Pricing

TypePrice (per 1M)
Input tokens$0.04
Output tokens$0.08

Capabilities

Structured Outputs

About Gemma 3

Lightweight, state-of-the-art open model built from the same technology that powers Gemini models. Available for free local deployment via Hugging Face and other hosting providers.

FAQ

What does Gemma 3 cost on OpenRouter?

On OpenRouter, Gemma 3 costs $0.04 per 1M input tokens and $0.08 per 1M output tokens.

What is the context window for Gemma 3 on OpenRouter?

Gemma 3 supports a 131,072 token context window on OpenRouter.

How does OpenRouter compare to other Gemma 3 providers?

Gemma 3 is available from 3 providers. The cheapest input pricing is $0/1M tokens from Google AI Studio.

What API model ID do I use for Gemma 3 on OpenRouter?

Use the model ID google/gemma-3-4b-it when calling OpenRouter's API.

Who created Gemma 3?

Gemma 3 was created by Google DeepMind as part of the Gemma 3 model family.

Is Gemma 3 open source?

Gemma 3 is open source according to the seed data.

Get Started

Model Specs

Released2025-03-12
ArchitectureDecoder Only