Google: Gemma 4 31B
google/gemma-4-31b-it- Modalities
- text+image+video->text
- In / out price
- $0.09 / $0.34
- Context
- 262K
- Released
- Apr 2, 2026
- Knowledge cutoff
- —
per 1M
Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, native function...
Supported parameters
frequency_penaltyFrequency penalty
Lowers the chance of a token in proportion to how often it already appeared.
include_reasoningInclude reasoning
Include a reasoning summary in the response.
logit_biasLogit bias
Add or subtract from token ids to encourage or ban them.
logprobsLogprobs
Return the log probability of each output token.
max_tokensMax tokens
Upper bound on generated tokens. Output stops at the limit.
min_pMin-p
Drops tokens below this probability threshold.
presence_penaltyPresence penalty
Lowers the chance of any token that has already appeared.
reasoningReasoning
Enable or configure reasoning. The fields differ by model.
repetition_penaltyRepetition penalty
Penalizes text that already appeared. Common on open models.
response_formatResponse format
For example json_object or json_schema, to constrain the shape.
seedSeed
A fixed seed helps reproduce sampling. It does not guarantee byte-identical output.
stopStop
Stop when these strings are produced. A string or an array of strings.
structured_outputsStructured outputs
Generate a parseable structure that follows a JSON Schema.
temperatureTemperature
Sampling temperature. Lower is steadier, higher is more varied. Often 0 to 2.Default 1
tool_choiceTool choice
Whether to call a tool: auto, none, or a named function.
toolsTools
Function definitions the model may call via tool_calls.
top_kTop-K
Sample only from the K most likely tokens.Default 64
top_logprobsTop logprobs
Also return the most likely alternatives at each position.
top_pTop-p
Sample only from tokens whose cumulative probability reaches top_p.Default 0.95