Gemma 3 4B IT

gemma-3-4b-it by Google Cloud Released March 14, 2025
ReasoningFunction callingStructured outputPrompt cachingWeb searchComputer useImage inputFile inputAudio inputVideo inputEU hostingFree endpointUp to % off
Input from
$0.04 / 1M
Output from
$0.08 / 1M
Cached input from
$ / 1M
Context window
131K
Endpoints
3
from 2 providers
Regions
Europe, United States

About Gemma 3 4B IT

Gemma 3 introduces multimodality, supporting vision-language input and text outputs.

Gemma 3 4B IT is a chat model by Google Cloud, available on Eden AI through 3 endpoints from 2 providers, from $0.04 per million input tokens and $0.08 per million output tokens, with a context window of up to 131K tokens.

Providers and prices

3 endpoints from 2 providers, cheapest first, in USD per million tokens. Every one is called with the same Eden AI key: pin one with its endpoint ID, or let Eden AI route for you. .

Endpoint
Region
Context
Input / 1M
Output / 1M
Cached / 1M
Supports
Amazon Web Services (Europe)Official−%amazon/google.gemma-3-4b-it
Europe
128K
$0.04$0.04
$0.08
$
ReasoningToolsJSONCacheVisionWeb
Amazon Web Services (United States)Official−%amazon/google.gemma-3-4b-it@us
United States
128K
$0.04$0.04
$0.08
$
ReasoningToolsJSONCacheVisionWeb
DeepInfra (United States)Official−%deepinfra/google/gemma-3-4b-it
United States
131K
$0.05$0.05
$0.1
$
ReasoningToolsJSONCacheVisionWeb

Performance

Measured on real Eden AI traffic over the last 30 days. Endpoints with too little traffic are not shown.

Fastest first token
0.4 s
Amazon Web Services (Europe)
Lowest latency
0.21 s
Amazon Web Services (Europe)
Highest throughput
40.57 tok/s
DeepInfra (United States)
Best availability
100%
Amazon Web Services (Europe)
Endpoint
First token
Latency p50
Latency p95
Throughput
Availability
Cache hits
Tool errors
JSON errors
Amazon Web Services (Europe)
0.4 s
0.21 s
3.81 s
6.6 tok/s
100%
1.45%
0%
0%
Amazon Web Services (United States)
s
s
s
tok/s
%
%
%
%
DeepInfra (United States)
s
5.6 s
14.84 s
40.57 tok/s
100%
2.39%
0%
0%

Estimate your monthly cost

Enter your expected volume to compare every endpoint at once.

Call Gemma 3 4B IT with Eden AI

Use the model ID to let Eden AI pick an endpoint, or an endpoint ID from the table above to pin one.

import requests

response = requests.post(
    "https://api.edenai.run/v3/chat/completions",
    headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
    json={
        "model": "",
        "messages": [{"role": "user", "content": "Hello!"}],
    },
)
print(response.json())

Questions about Gemma 3 4B IT

On Eden AI, prices for this model start at $0.04 per million input tokens and $0.08 per million output tokens. Prices differ by endpoint; the providers table lists each one. .

Up to 131K tokens, depending on the endpoint.

3 endpoints from 2 providers, available in: Europe, United States. All of them are called with the same Eden AI API key.

Yes. At least one endpoint is hosted in Europe; pin it with its endpoint ID from the providers table to keep requests in the EU.

Over the last 30 days, the fastest first token was 0.4 s (Amazon Web Services (Europe)) and the highest throughput was 40.57 tokens per second (DeepInfra (United States)).