Google: Gemma 4 31B API pricing

Token pricing

ModelProviderInput / 1MOutput / 1MContextModalities
Google: Gemma 4 31BGoogle$0.10$0.34262,144 (262K)
image, text, videotext

Capabilities

Context window
262,144 (262K)
Max output
262,144 (262K)
Input modalities
image, text, video
Output modalities
text

Supported parameters

frequency_penalty
include_reasoning
logit_bias
logprobs
max_tokens
min_p
presence_penalty
reasoning
repetition_penalty
response_format
seed
stop
structured_outputs
temperature
tool_choice
tools
top_a
top_k
top_logprobs
top_p

Similar models

ModelInput / 1MOutput / 1MContextModalities
Google: Gemini 2.5 Flash Lite$0.10$0.401,048,576 (1M)
text, image, file, audio, videotext
Google: Gemma 3 27B$0.08$0.45262,144 (262K)
text, imagetext
Google: Gemini 3.1 Flash Lite (batch)$0.125$0.751,048,576 (1M)
text, image, video, file, audiotext
Google: Gemma 4 26B A4B $0.07$0.34262,144 (262K)
image, text, videotext
Google: Gemma 3n 4B$0.06$0.1232,768 (33K)
texttext
Google: Gemini 2.5 Flash Lite (batch)$0.05$0.201,048,576 (1M)
text, image, file, audio, videotext
Google: Gemma 3 12B$0.05$0.15131,072 (131K)
text, imagetext
Google: Gemma 3 4B$0.05$0.10131,072 (131K)
text, imagetext