← All models
Input / 1M
$0.200
Output / 1M
$0.400
Context
262K tokens
Max output
131K tokens
Input
Text, Image, Video
Released
6mo ago
Pricing
Input tokens$0.200 per 1M
Output tokens$0.400 per 1M
Provider list priceExactly what your balance is debited; our fee is charged when you buy credits
About Gemma 4 31B
Largest Gemma 4 instruction model for open, self-hosted chat and reasoning
VisionReasoningTools
What it supports
- Tool calling (function calling)
- JSON mode and structured output
- Image input (vision)
- Audio input
- Extended reasoning
- Streaming responses
- OpenAI SDK, Anthropic SDK and any OpenAI-compatible client
Make a request
curl https://rapidrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $RAPIDROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "pearl-ai/gemma-4-31b-it",
"messages": [{ "role": "user", "content": "Hello" }]
}'Frequently asked
How do I call Gemma 4 31B through an OpenAI-compatible API?
Point any OpenAI-compatible client at https://rapidrouter.ai/api/v1 with a Rapid Router API key and set the model to pearl-ai/gemma-4-31b-it. The chat completions endpoint is https://rapidrouter.ai/api/v1/chat/completions.
What is the context window of Gemma 4 31B?
Gemma 4 31B has a context window of 262,144 tokens on Rapid Router, and returns up to 131,072 output tokens per reply.
What can Gemma 4 31B do?
On Rapid Router, Gemma 4 31B supports tool calling, JSON mode, image input, extended reasoning.