LLMPrivate

Gemma 4 31B Instruct

Google DeepMind's dense 31B-parameter open-source instruct model with strong reasoning and web search capabilities.

Get API key

What is Gemma 4 31B Instruct?

Gemma 4 31B Instruct is a 31-billion-parameter dense language model from Google DeepMind, released in April 2026 under the Apache 2.0 open-source license. It supports advanced reasoning and web search on Venice, offering a transparent, cost-efficient alternative to closed frontier models while running with zero prompt retention.

Use Gemma 4 31B Instruct privately on Venice

On Venice, Gemma 4 31B Instruct runs inside a trusted execution environment with end-to-end encryption and zero retention — your prompts are never stored or used for training. You get the same open-source weights Google DeepMind published, executed privately without Big-Tech surveillance. It is an ideal choice for builders who value sovereignty and permissionless access.

Private (zero retention)
No prompt training
TEE · hardware enclave
End-to-end encrypted

What can Gemma 4 31B Instruct do?

Strengths
  • Open-source Apache 2.0 weights let you inspect, fine-tune, or self-host the model outside Venice.
  • Built-in reasoning mode and web search support on Venice for research-heavy and analytical workflows.
  • Runs inside a TEE with end-to-end encryption on Venice — your prompts are never stored or used for training.
  • Extremely cost-efficient token pricing compared to closed frontier alternatives.
Limitations
  • Venice hosts a 32K context window, which is shorter than some rivals offering 160K–1M tokens.
  • Not uncensored — safety alignment is present, so it may refuse certain sensitive or harmful requests.
  • Smaller 31B dense architecture lags behind the absolute top-tier closed models on the most complex reasoning benchmarks.

Gemma 4 31B Instruct capabilities

How to use Gemma 4 31B Instruct via API

Venice exposes an OpenAI-compatible API. Swap your base URL and call e2ee-gemma-4-31b.

curl https://api.venice.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "e2ee-gemma-4-31b",
    "messages": [{ "role": "user", "content": "Explain quantum tunneling simply." }]
  }'

Specifications

MakerGoogle DeepMind
ReleasedApril 2026
ArchitectureDense
Parameters31B
Open weightsYes — Apache 2.0
Context window32K tokens
Max output4.096K tokens
CapabilitiesReasoning, Web search
Privacy on VenicePrivate — zero retention
Available on Venice sinceMay 2026

Pricing

Billed per token on Venice: $0.14 per 1M input tokens and $0.43 per 1M output tokens.

Input / 1M tokens
$0.14
Output / 1M tokens
$0.43
Cached input / 1M
$0.03

New Venice accounts include a free daily allowance and 500 welcome credits — no credit card required.

Gemma 4 31B Instruct vs alternatives

ModelContext windowOpen weightsPrice (Venice)Best for
Gemma 4 31B Instruct32K tokensYes$0.14 in · $0.43 out / 1MPrivate open-source reasoning
DeepSeek V3.2160K tokensYes$0.33 in · $0.48 out / 1MLong-context coding
Claude Sonnet 4.61M tokensNo$3.60 in · $18 out / 1MEnterprise reasoning
Kimi K2.6256K tokensYes$0.75 in · $3.50 out / 1MLong-document analysis

The only open-source model in this set that runs with zero retention and TEE privacy on Venice.

What is Gemma 4 31B Instruct good for?

  • Long-form writing and content drafting with web-grounded facts.
  • Open-source prototyping and fine-tuning for domain-specific chatbots.
  • Privacy-sensitive research where zero retention and TEE isolation are required.
  • Cost-efficient production text generation at high volume.

Prompting tips

  • Enable reasoning mode for math, logic, or multi-step coding problems.
  • Use the web search capability to ground answers in current information beyond the training cutoff.
  • Keep inputs within the 32K context limit; summarize long documents before sending.

Version history

Gemma 3 27B Instruct
2025

Previous generation open-weights model.

Gemma 4 31B Instruct
2026-04

CurrentCurrent generation with reasoning mode and web search support on Venice.

Frequently asked questions

Gemma 4 31B Instruct is a 31-billion-parameter dense language model built by Google DeepMind. Released in April 2026 under Apache 2.0, it is designed for reasoning, coding, and general instruction-following, and is available on Venice with web search support.

Venice bills per token: $0.14 per 1M input tokens, $0.43 per 1M output tokens, and $0.03 per 1M cached input tokens. There is no subscription required.

The model is open-source under the Apache 2.0 license, so you can download the weights and self-host or fine-tune them. On Venice you pay only for the tokens you use; there is no free tier beyond any welcome credits Venice offers.

On Venice, Gemma 4 31B Instruct currently supports reasoning and web search, but not tool use or vision. If you need native tool calling, look for models that list it in their Venice capability metadata.

It runs under Venice’s private tier with zero retention, inside a trusted execution environment (TEE) with end-to-end encryption. Your prompts are not stored, profiled, or used to train future models.

Claude Sonnet 4.6 generally leads on the hardest reasoning tasks and offers a 1M-token context window, but it is closed-source and far more expensive. Gemma 4 31B Instruct wins on cost, open weights, and privacy, making it ideal for builders who need a transparent, self-hostable model.

Venice currently hosts Gemma 4 31B Instruct with a 32K-token context window and a maximum output of 4,096 tokens per generation.

Related models

Run Gemma 4 31B Instruct privately.

No prompt logging. No data used for training. Free to start — no credit card.

Room