n4nAI
← Models
G

Gemma 4 31B

googleReleased Apr 2026Hugging Face ↗

google/gemma-4-31b-it

About

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...

Context
262,144
Max output
262,144
Tokenizer
Gemma
Knowledge cutoff
Input
image · text · video
Output
text

Pricing

per 1M tokens
Input
$0.30
Output
$1.25

Use this model

curl https://api.n4n.ai/v1/chat/completions \
  -H "Authorization: Bearer $N4N_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemma-4-31b-it",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Authenticate with an API key from your console; prices above are per 1M tokens.

Providers

max context 262,144
ProviderInput $/1MOutput $/1M
Wandb wandb$0.30$1.25
Yuwu yuwu$0.30$1.25

Supported parameters

frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokensmin_ppresence_penaltyreasoningrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p