Gemma 3 4B IT

gemma-3-4b-it by Google Cloud Released marzo 14, 2025
Chiamata di funzioni · Output strutturato · Input immagine · Hosting nell’UE
Input from
$0.04 / 1M
Output from
$0.08 / 1M
Cached input from
$ / 1M
Context window
131K
Endpoints
3
from 2 providers
Regions
Europa, Stati Uniti

About Gemma 3 4B IT

Gemma 3 introduce la multimodalità, supportando input visivo-linguistici e output testuali.

Gemma 3 4B IT è un modello di chat di Google Cloud, disponibile su Eden AI tramite 3 endpoint presso 2 provider, a partire da 0,04 $ per milione di token in input e 0,08 $ per milione di token in output, con una finestra di contesto fino a 131K token.

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 (Europa)amazon/google.gemma-3-4b-it
Europa
128K
$0.04
$0.08
$
Strumenti · Visione
Amazon Web Services (Stati Uniti)amazon/google.gemma-3-4b-it@us
Stati Uniti
128K
$0.04
$0.08
$
Strumenti · Visione
DeepInfra (Stati Uniti)deepinfra/google/gemma-3-4b-it
Stati Uniti
131K
$0.05
$0.1
$
Strumenti · JSON · Visione

Performance

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

Fastest first token
0.42 s
Amazon Web Services (Europa)
Lowest latency
0.99 s
DeepInfra (Stati Uniti)
Highest throughput
88.15 tok/s
Amazon Web Services (Europa)
Best availability
100%
DeepInfra (Stati Uniti)
Endpoint
First token
Latency p50
Latency p95
Throughput
Availability
Cache hits
Tool errors
JSON errors
Amazon Web Services (Europa)
0.42 s
1.12 s
10.44 s
88.15 tok/s
99.97%
0%
0%
0%
DeepInfra (Stati Uniti)
0.42 s
0.99 s
88.64 s
10.34 tok/s
100%
0%
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": "gemma-3-4b-it",
        "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: Europa, Stati Uniti. All of them are called with the same Eden AI API key.

Posso usare Gemma 3 4B IT nell’UE? Sì. Almeno un endpoint è ospitato in Europa; fissalo con il suo ID endpoint dalla tabella dei provider per mantenere le tue richieste nell’UE. ‖ Quanto è veloce Gemma 3 4B IT? Negli ultimi 30 giorni il primo token più rapido è arrivato in 0,42 s (Amazon Web Services (Europa)) e il throughput più alto è stato di 88,15 token al secondo (Amazon Web Services (Europa)).