Gemma 4 31B (free)
Google's Gemma 4 31B (free) is a image-generation model. 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...
by Google · 262K token context window
Best for
- image generation from text
- creative design and ideation
Ways to use Gemma 4 31B (free) in osFoundry
Connect with your own key (BYOK)
Open the key dialog and paste your Google API key. osFoundry discovers Gemma 4 31B (free) automatically — assign it to a Maestro role (router, direct, orchestrator, or fallback) in the Pipeline tab and it is live in every chat. Your key, your provider account — no token markup.
Use it in a Room App
Room Apps declare AI features in their manifest, then call them with invokeAI:
import { invokeAI } from '@osfoundry/app-sdk'
// 'summarize' is an AI feature declared in your app manifest.
const result = await invokeAI('summarize', userText)
Call it from your own apps
Once a model is wired into your workspace you can host it as an API and reach it from your own services, scripts, or CI — outside osFoundry.
Run Gemma 4 31B (free) yourself
Gemma 4 31B (free) is also available as open weights — self-host it for full data control and no per-token cost. See that page for GPU requirements and a cost comparison against API pricing.
Gemma 4 31B (free) vs similar models
Licence
Hosted — usage subject to provider terms — Hosted-only model — usage governed by the provider's API terms. Bring your own provider key.
No weights distributed; usage subject to provider terms.
Frequently asked about Gemma 4 31B (free)
How much does Gemma 4 31B (free) cost?
Gemma 4 31B (free) is metered at Free for input, and Free for output. Bring your own Google API key — osFoundry passes through provider pricing without markup.
Can I use Gemma 4 31B (free) commercially?
Commercial use is allowed with conditions. Hosted-only model — usage governed by the provider's API terms. Bring your own provider key. No weights distributed; usage subject to provider terms.
What is the context window of Gemma 4 31B (free)?
Gemma 4 31B (free) supports a 262K token context window.
Can I run Gemma 4 31B (free) locally?
No — Gemma 4 31B (free) is hosted only and accessed via the Google API. An open-weights equivalent is available to self-host — see the cross-link above.
What is Gemma 4 31B (free) best at?
Gemma 4 31B (free) is well-suited to image generation from text, creative design and ideation.
How do I use Gemma 4 31B (free) in osFoundry?
Paste your Google API key in the key dialog (or deploy the open weights for self-hostable models), assign Gemma 4 31B (free) to a Maestro role in the Pipeline tab, then use it in chat, Room Apps via invokeAI, or your own apps.
Published by Google on April 2, 2026. Source: https://openrouter.ai/google/gemma-4-31b-it:free