Google: Gemma 4 31B

google/gemma-4-31b-itGoogle GeminiActive router
Get API key

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

Published all-in NGN rates reflect upstream inference, multi-provider routing, and platform settlement. Accessible via /v1/chat/completions, /v1/messages, and /v1/responses.

Context window
262.1Ktokens
262,144 max buffer
Max output
16.4Ktokens
16,384 completion limit
Input rate
₦331.22per 1M
Standard prompt rate
Output rate
₦662.43per 1M
Billed in integer kobo

Providers & routing

SwitchRouter unifies multiple cloud hosts for this model. Requests route to the primary host and automatically fail over if it degrades.

1 active deployment
ProviderRouting roleInput / 1MOutput / 1MLatency (P50)Status
OpenRouterPrimary route₦331.22₦662.43No dataOperational
Cost estimatorNaira wallet
₦46.37100K in · 20K out
Input
₦33.12
Output
₦13.25
Runs per ₦2,000 top-up
43
Quickstart
bash
curl https://api.switchrouter.dev/v1/chat/completions \
  -H "Authorization: Bearer $SWITCHROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemma-4-31b-it",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
Availability & Telemetry
No dataawaiting traffic
Measured uptime (30d)
No data
P50 request latency
No data
Recorded requests
No samples
Failover strategy
Single upstream
Capabilities
3 / 4supported
Streaming
Supported
Tool calling
Supported
Structured output
Supported
Image / Vision
Not listed
Modalities & Protocol
Text onlytext
Accepts
text
Returns
text
Settlement
Naira wallet (kobo)
Protocol
/v1/chat/completions

Start building with SwitchRouter.

Connect your app or coding agent in seconds. Route across frontier models through one endpoint — then launch your app and start building what's next.

Start building
Google: Gemma 4 31B — SwitchRouter · SwitchRouter