Google

Google Gemma 4 31B

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

Context window
262Ktokens
Max output
16Ktokens
Input
$0.20/ 1M
Output
$0.40/ 1M

Quick start

from openai import OpenAI

client = OpenAI(
    base_url="https://neurongate.net/v1",
    api_key="sk-ng-your-api-key",
)

completion = client.chat.completions.create(
    model="google/gemma-4-31b-it",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(completion.choices[0].message.content)

Cost

Example requestTokensCost
Short prompt1K in$0.0002
Typical chat turn1K in · 500 out$0.0004
Document analysis10K in · 2K out$0.0028
Long context100K in · 10K out$0.024
Estimated cost per request$0.0004

Prices in USD. Billed per token actually used, from a balance prepaid in USDT, USDC, ETH or BTC.

Frequently asked questions

What is Google Gemma 4 31B?

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

How much does Google Gemma 4 31B cost?

Google Gemma 4 31B is priced at $0.2 per 1 million input tokens and $0.4 per 1 million output tokens when accessed via NeuronGate. You pay per token — no subscriptions required. Top up with crypto (USDT, USDC, ETH, BTC).

Does Google Gemma 4 31B support streaming?

Yes, Google Gemma 4 31B supports streaming responses via NeuronGate's API. Use the standard "stream": true parameter in your request.

What is the context window of Google Gemma 4 31B?

Google Gemma 4 31B has a context window of 262K tokens (~197K words). Maximum output is 16K tokens.

Does Google Gemma 4 31B support function calling (tools)?

Yes, Google Gemma 4 31B supports function calling / tool use via NeuronGate's standard API.

How do I use Google Gemma 4 31B with NeuronGate?

Create a NeuronGate account, top up your balance with crypto, generate an API key, and use the model id google/gemma-4-31b-it in your requests. NeuronGate uses the OpenAI-compatible API format — set your base URL to https://neurongate.net/v1.