Back to Modelsby Google
G
Gemma 4 31B
GemmaDense 31B model delivering frontier reasoning for coding, agentic workflows, and fine-tuning.
Free EndpointDownloadableApr 2, 2026gemma license5M API calls / 30d
Specifications
Context Length
131K
131,072 tokens
Input Price
Free
per 1M tokens
Output Price
Free
per 1M tokens
Modalities
1
text→text
Capabilities
text generationchatcodereasoning
Tags
reasoningcodingagentic
API Usage
1Router is fully OpenAI-compatible. Just set the base URL and use this model ID:
google/gemma-4-31b-itcURL
curl https://api.1router.com/v1/chat/completions \
-H "Authorization: Bearer $ROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemma-4-31b-it",
"messages": [{"role": "user", "content": "Hello!"}]
}'