reroute

Google: Gemma 4 31B

google/gemma-4-31b-it

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

Modalities
In / Out Price
$0.09 / $0.34 per 1M
Context
262K
Released
Apr 2, 2026
Knowledge Cutoff
—

API

Reroute speaks the OpenAI Chat Completions format. Point any OpenAI SDK at https://www.reroute.wtf/api/v1 and use google/gemma-4-31b-it as the model.

You need an API key
Keys start with sk-rr-v1- and are shown once.
Create API key
curl https://www.reroute.wtf/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $REROUTE_API_KEY" \
  -d '{
  "model": "google/gemma-4-31b-it",
  "messages": [
    { "role": "user", "content": "What is the meaning of life?" }
  ]
}'

Streaming

Set stream: true to receive server-sent events. The final chunk carries usage and cost.

curl -N https://www.reroute.wtf/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $REROUTE_API_KEY" \
  -d '{ "model": "google/gemma-4-31b-it", "stream": true,
        "messages": [{ "role": "user", "content": "Count to five" }] }'