Google
4 params
Google Gemma 3 4B IT API parameters
These are the API parameters modelparams.dev tracks for Google Gemma 3 4B IT — the settings you send in a request. Each row gives the type, default, valid range or values, and the conditions that gate it. It's the same data the JSON API serves.
After the parameter count instead — how many weights Gemma 3 4B IT has? That's a different number, and we don't track it. Here's the difference.
Length
1 param
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Max completion tokens
max_completion_tokens
|
integer (1…131072) | — | Maximum number of output tokens the model may generate; output shares the 128K context window with the input. | — |
Sampling
3 params
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
|
Temperature
temperature
|
number | 1 | Controls randomness. Lower values make outputs more focused; higher values make them more varied. | — |
|
Top P
top_p
|
number (0…1) | 0.95 | Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability. | — |
|
Top K
top_k
|
integer (0…+∞) | 64 | Limits generation to the selected number of highest-probability tokens. | — |
Google Gemma 3 4B IT API parameters in brief
Google Gemma 3 4B IT documents 4 API parameters, grouped by what they control:
-
Length:
max_completion_tokensrange 1–131072. -
Sampling:
temperaturedefaults to 1;top_pdefaults to 0.95, range 0–1;top_kdefaults to 64, minimum 0.
Frequently asked questions
- Which API parameters does Google Gemma 3 4B IT support?
- Google Gemma 3 4B IT accepts 4 API parameters in the request body: max_completion_tokens, temperature, top_p, top_k.
- What is the default temperature for Google Gemma 3 4B IT?
- The default temperature for Google Gemma 3 4B IT is 1.
- What is the default top_p for Google Gemma 3 4B IT?
- The default top_p for Google Gemma 3 4B IT is 0.95, within a valid range of 0 to 1.
- What is the default top_k for Google Gemma 3 4B IT?
- The default top_k for Google Gemma 3 4B IT is 64, with a minimum of 0.
Resources
Other Google models
Gemini 2.5 Flash
8 params
View
Gemini 2.5 Flash
Subscription
8 params
View
Gemini 2.5 Flash Lite
8 params
View
Gemini 2.5 Flash Lite
Subscription
8 params
View
Gemini 2.5 Pro
8 params
View
Gemini 2.5 Pro
Subscription
8 params
View
Gemini 3 Flash Preview
Subscription
8 params
View
Gemini 3.1 Flash Lite
8 params
View
Gemini 3.1 Flash Lite
Subscription
8 params
View
Gemini 3.1 Flash Lite Preview
Subscription
8 params
View
Gemini 3.1 Pro Preview
Subscription
8 params
View
Gemini 3.5 Flash
8 params
View
Gemini Flash Latest
8 params
View
Gemma 3 12B IT
4 params
View
Gemma 3 1B IT
4 params
View
Gemma 3 27B IT
4 params
View
Gemma 3n E2B IT
4 params
View
Gemma 3n E4B IT
4 params
View
Gemma 4 12B IT
4 params
View
Gemma 4 26B A4B IT
9 params
View
Gemma 4 31B IT
9 params
View
Gemma 4 E2B IT
4 params
View
Gemma 4 E4B IT
4 params
View