Textby Google

Gemma 4 31B (free)

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

  • It scores 4.4 on the Artificial Analysis Intelligence Index, 117th of the 122 text models with a score.
  • It was listed on Apr 2, 2026.

Data last changed Nov 6, 2026 · tracked since Oct 29, 2026 · Every model change

Try Gemma 4 31B (free)

Generate with Gemma 4 31B (free) right here. Verify your email to start with free credits.

Free
Try

Specifications

Context window

262K tokens

Max output

33K tokens

Input price

Free / 1M tokens

Output price

Free / 1M tokens

Capabilities

Reasoning

Works through multi-step problems before answering, for harder tasks.

Vision input

Accepts images alongside text, so you can prompt with pictures and screenshots.

Tool use

Can call functions and tools, enabling agentic and structured workflows.

Structured output

Returns validated JSON that conforms to a schema you define.

Use Gemma 4 31B (free) through the API

The model id is google/gemma-4-31b-it:free. Requests bill your GenMagic balance at the price above, and each response reports what it cost.

curl
curl https://genmagic.co/api/v1/chat/completions \
  -H "Authorization: Bearer $GENMAGIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemma-4-31b-it:free",
    "messages": [{ "role": "user", "content": "Explain vector databases in two sentences." }]
  }'
Python (openai SDK)
from openai import OpenAI

client = OpenAI(base_url="https://genmagic.co/api/v1", api_key="YOUR_GENMAGIC_API_KEY")

resp = client.chat.completions.create(
    model="google/gemma-4-31b-it:free",
    messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
)
print(resp.choices[0].message.content)

From an AI agent, call generate_text with "model": "google/gemma-4-31b-it:free" on the GenMagic MCP server. Keys, limits and every endpoint are in the API documentation.

Use Gemma 4 31B (free) in n8n

  1. In n8n, open the nodes panel, search for GenMagic and install it (a verified community node), then add it to your workflow.
  2. Set Resource to Text and Operation to Generate.
  3. In Model Name or ID, pick Google: Gemma 4 31B (free), or enter google/gemma-4-31b-it:free as an expression.
  4. Connect your GenMagic API key (get one free). Each run is billed at the price above, and the node returns what it cost.

Ready-to-import workflows that already use the node are on GenMagic for n8n.

Similar-priced text models from other providers

Other text models GenMagic runs at a comparable price, on the same balance and API key.

ModelProviderPriceContext
Google: Gemma 4 31B (free) (this model)GoogleFree262K
inclusionAI: Ling 3.2 Flash (free)inclusionAIFree1M
Baidu: ERNIE-5.5-Flash-Preview (free)BaiduFree1M
LiquidAI: LFM3-1.7B (free)Liquid AIFree262K
Particle AI: Particle-1 (free)Particle AiFree1M
Recursive: Flint (free)RecursiveFree262K

More from Google

All 41 Google models

Price and listing history

Every change GenMagic has recorded for Gemma 4 31B (free) since it began tracking the model on Oct 29, 2026. Prices are GenMagic's, the same the studio and the API charge.

DateChangeBeforeAfter
Nov 6, 2026Updated: intelligence index--

Where these figures come from

  • Price: GenMagic's own price, what the studio and the API charge, recomputed from the provider's price list every few minutes and recorded daily. How pricing works.
  • Specs and description: as Google publishes them (model card on Hugging Face), checked daily.
  • Changes: the data on this page last changed on Nov 6, 2026, tracked since Oct 29, 2026. Every model's new listings, price changes and retirements are in the model changes log, and how every figure on GenMagic is sourced is on our sources page.

Generate with Gemma 4 31B (free) today

One GenMagic plan unlocks Gemma 4 31B (free) and every other model across text, image, audio, and video.