Models / Google
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...

Input
$0.156 / 1M tokens
Output
$0.455 / 1M tokens
Context
262K tokens

Capabilities

✓ Streaming✓ Tool / function calling✓ JSON / structured output✓ Vision (image input)

Call this model

Pass google/gemma-4-31b-it as the model. Change only the base URL from your existing OpenAI SDK setup.

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

Prices are final — the routing margin is already included. See the full pricing table or the API docs.