Skip to content
NewTry RouterPlus with free creditsTry playground →
  • 262KContext
  • 131KMax output
  • $0.12/ $0.35From, per 1M in / out
  • 4Providers
Providers
  • DeepInfra
  • Novita AI
  • Sail Research
  • Doubleword

Pricing

ProviderInput / 1MCached / 1MOutput / 1M
DeepInfraDefault$0.20–$0.40
Novita AI$0.14–$0.40
Sail Research$0.40$0.20$0.60
DoublewordLowest$0.12$0.12$0.35

USD, as of November 5, 2026. Live prices

Cost

WorkloadDeepInfraDoubleword
1,000 chat replies2K in, 500 out each$0.60$0.42
1,000 agent tasks50K in, 5K out each$12.00$7.75
Monthly batch job500M in, 50M out$120.00$77.50

Gemma 4 versions

ModelReleasedContextLowest inputLowest outputProviders
Gemma 4 12Bgoogle/gemma-4-12b-itMay 23, 202616.4K$0.30$2.001
Gemma 4 31BThis pagegoogle/gemma-4-31b-itApril 2, 2026262K$0.12$0.354
Gemma 4 31B NVFP4google/gemma-4-31b-it-nvfp4April 2, 2026262K$0.12$0.372

Lowest listed price, USD per 1M tokens, as of November 5, 2026.

Quickstart

OpenAI-compatible
curl https://api.routerplus.com/v1/chat/completions \
  -H "Authorization: Bearer $ROUTERPLUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemma-4-31b-it",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'

All comparisons

FAQ

How much does the Gemma 4 31B API cost?

On RouterPlus, routing for Gemma 4 31B starts at DeepInfra: $0.20 per million input tokens and $0.40 per million output tokens. The lowest listed prices are at Doubleword: $0.12 input and $0.35 output. Name a provider with provider.only and you pay its price. Prices as of November 5, 2026.

Which providers serve Gemma 4 31B?

4 providers serve Gemma 4 31B on RouterPlus: DeepInfra, Novita AI, Sail Research and Doubleword. By default the router tries them in routing order and fails over before the first byte, never mid-answer.

What is the Gemma 4 31B model ID?

Use "google/gemma-4-31b-it" as the model with the OpenAI-compatible endpoint at https://api.routerplus.com/v1. The same key also accepts the Anthropic API format.

What is the Gemma 4 31B context window?

262K tokens of context and up to 131K output tokens, per the RouterPlus catalog. A provider can list a lower limit; the console shows each one.

Is Gemma 4 31B open weights?

Yes. Google publishes Gemma 4 31B as an open-weight model, which is why several independent providers can host it.

Do any Gemma 4 31B providers retain prompts?

3 of 4 providers list no prompt retention (DeepInfra, Novita AI and Sail Research). Doubleword may retain prompts. Pin the providers you accept with a routing policy.

Can I reserve capacity for Gemma 4 31B?

Yes. Tell us the model, the throughput you need and the region with "I need inference", and RouterPlus lines up reserved capacity for it.

Need Gemma 4 31B at volume?