Skip to content

Google

Gemma 3 4B

The smallest Gemma model, with image input.

google/gemma-3-4b-it
Input → Output
Text, images → Text/Text
Maximum input
128K tokens
Provider
1
Tool invocation
No

Price per million tokens

Input
64.8 credits
Output
129.6 credits

Provider

Several providers serve the same model. Performance is measured on actual AlpRouter requests over the last seven days, and uptime over the last three.

ProviderInput / 1MOutput / 1MCache readFirst tokenThroughputUptime
Amazon Bedrock64.8 credits129.6 credits----

Time to first token and throughput are medians (P50). Values are hidden for fewer than 10 requests.

Use the API

from openai import OpenAI

client = OpenAI(
    base_url="https://alprouter.com/api/v1",
    api_key="alp-your-key",
)

answer = client.chat.completions.create(
    model="google/gemma-3-4b-it",
    messages=[{"role": "user", "content": "Hello"}],
)
print(answer.choices[0].message.content)

Details

Maximum input
128K tokens
Maximum output
8.2K tokens
Tool invocation
Unsupported
Supported input
Text, images
Output
Text/Text
Provider
Amazon Bedrock
Supported parameters
max_completion_tokens, max_tokens, stream, temperature, top_p

Frequently asked questions

What kind of model is Gemma 3 4B?

A model from Google. The smallest Gemma model, with image input. Model ID on AlpRouter: google/gemma-3-4b-it

How much does Gemma 3 4B cost?

Per million tokens: 64.8 credits input, 129.6 credits output. One credit equals ₩1. Only usage is deducted from your balance. There is no monthly subscription.

How much input does Gemma 3 4B accept?

Each request accepts up to 128K tokens. The maximum output is 8.2K tokens.

What input and output does Gemma 3 4B support?

Send Text, images to receive Text/Text.

Does Gemma 3 4B support tool calling and structured JSON?

Tool calling: Unsupported. Structured output (response_format): Unsupported.

Which providers handle Gemma 3 4B requests?

Amazon Bedrock handles these requests.

How do I call Gemma 3 4B from code?

Just replace the base_url in the OpenAI SDK with https://alprouter.com/api/v1. Also, specify the name of the model in the model field (google/gemma-3-4b-it). There’s an example of how to do this in the “Using the API” section above.

Other models from Google