Google DeepMind

Gemma 4 31B API

Gemma 4 31B is a text model by Google. On Nodion you call it through the OpenAI-compatible AI Gateway with the model id google/gemma4-31b.

Input
from 0,10 €
per 1M tokens
Output
from 0,30 €
per 1M tokens
Cached input
from 0,02 €
per 1M tokens

Run Gemma 4 31B through our EU AI Gateway

One endpoint in front of every provider, operated in the EU.

  • Failover across 4 providers If a provider cannot be reached, the next requests go to the others your project allows.
  • No provider accounts Your Nodion key calls every provider, and you pay for what you use from a prepaid wallet or through an AI Coding Plan.
  • EU and zero data retention Every provider is based in the EU and serves the models with zero data retention. You can select and deselect providers yourself.

Prices in EUR excl. VAT

Providers

Our gateway serves Gemma 4 31B through the following providers, all of them EU providers with zero data retention. You need no account with the providers: you call everything centrally through Nodion with your Nodion API key.

regolo.aiInput0,40 €Output2,10 €Cached input0,15 €LatencyThroughputUptime
Berget AIInput0,25 €Output0,50 €Cached input0,15 €LatencyThroughputUptime
Melious AIInput0,10 €Output0,30 €Cached input0,02 €LatencyThroughputUptime
ArkaneInput0,35 €Output0,80 €Cached input0,20 €LatencyThroughputUptime

Model details

Model id
google/gemma4-31b
Input
from 0,10 € per 1M tokens
Output
from 0,30 € per 1M tokens
Cached input
from 0,02 € per 1M tokens
Context
256K tokens
Max output
128K tokens
Input / output
Text, Image to Text
Features
Tool calling, JSON mode, Structured outputs, Reasoning
Privacy
ZDR, EU only
Coding plans
Available
Model card
Hugging Face

Call it

One OpenAI-compatible endpoint.

POST /v1/chat/completions on https://api.nodion.ai. Requests, limits and error codes are in the AI API reference.

curl https://api.nodion.ai/v1/chat/completions \
  -H "Authorization: Bearer $NODION_AI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemma4-31b",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Every provider on the gateway is an EU provider with zero data retention. In your project's AI settings you can also restrict which providers and regions may serve requests. Details are in the AI Inference docs.

More models

Other Google models on Nodion.

Questions and answers.

Where does Gemma 4 31B run?

In the EU. Our gateway sends requests to regolo.ai, Berget AI, Melious AI and Arkane, all of them EU providers; the catalog lists datacenters in Finland.

Do the providers store my Gemma 4 31B prompts?

No. Every provider on the Nodion AI Gateway runs with zero data retention and does not store your prompts or outputs.

How much does Gemma 4 31B cost?

Billing is per 1M input and output tokens and cached input. The current prices per provider are at the top of this page; you pay from a prepaid wallet or through an AI Coding Plan.

How do I call Gemma 4 31B?

With any OpenAI-compatible SDK or tool on POST /v1/chat/completions: base URL https://api.nodion.ai/v1, model id google/gemma4-31b and an API key from the dashboard.

How large is the Gemma 4 31B context window?

256K tokens, with up to 128K tokens per reply.

Is Gemma 4 31B included in the AI Coding Plans?

Yes. With an AI Coding Plan you call Gemma 4 31B on the same endpoint, for example from OpenCode. Usage counts against the plan's windows; when one is full, requests continue only if the plan allows wallet use.

Give your agent a cloud.

Earn up to 15 € in credit when signing up.

Continue with GitHub

or with email

Stay in the loop.

Product news, no spam. Unsubscribe anytime.