Google model page

Google: Gemma 4 31B (free)

google/gemma-4-31b-it: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...

VisionTextVideoStructured outputTool callingReasoning
Input / 1M
$0.00
Output / 1M
$0.00
Context
262K
Markup
30%

Use this model through UAI

A dedicated public landing page for this synced catalog row.

Provider
Google

Synced from the active catalog

Context window
262K tokens

Validated for gateway requests

UAI input
$0.00

Free model row

UAI output
$0.00

Free model row

This page exists for direct linking, onboarding, and SEO. The same model row powers /v1/models, the public catalog, the app pricing screen, and request validation for /v1/chat/completions.

Why use this model through UAI

The same model route, but with one account, one balance, and one API shape.

Free route

This model is currently listed at $0.00 per token through UAI. Free rows can have lower rate limits, but they are useful for testing and evaluation.

Reasoning workloads

Use Google: Gemma 4 31B (free) for multi-step prompts, planning, and deeper analysis while keeping the same OpenAI-compatible UAI endpoint.

Multimodal prompts

The synced capabilities for this row indicate image or vision support, so you can route multimodal requests through the same UAI account and billing flow.

Pricing and access

Current synced numbers for this exact model row.

UAI input / 1M tokens
$0.00
UAI output / 1M tokens
$0.00
Google input / 1M
$0.00
Google output / 1M
$0.00
Context window
262,144
Current markup
30%

Need another option? Browse the full models catalog or compare rows in the signed-in pricing table.

Quickstart

Use this model with your UAI key over the standard OpenAI-compatible route.

Create a key in API Keys, then send requests to https://uai.sh/v1/chat/completions.

curl
curl https://uai.sh/v1/chat/completions \
  -H "Authorization: Bearer uai-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemma-4-31b-it:free",
    "messages": [{"role": "user", "content": "Say hi in one short sentence."}],
    "stream": false
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(base_url="https://uai.sh/v1", api_key="uai-YOUR_API_KEY")
response = client.chat.completions.create(
    model="google/gemma-4-31b-it:free",
    messages=[{"role": "user", "content": "Say hi in one short sentence."}],
    stream=False
)
print(response.choices[0].message.content)
Node.js (OpenAI SDK)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://uai.sh/v1",
  apiKey: "uai-YOUR_API_KEY"
});

const response = await client.chat.completions.create({
  model: "google/gemma-4-31b-it:free",
  messages: [{ role: "user", content: "Say hi in one short sentence." }],
  stream: false
});

console.log(response.choices[0].message.content);

Related models

Other active rows to compare without leaving the public catalog.

google
Gemma 3 4B
gemma3:4b
Input / 1M$0.00
ContextContext pending
google
Google: Gemma 4 26B A4B (free)
google/gemma-4-26b-a4b-it:free
Input / 1M$0.00
Context262K tokens
google
Google: Lyria 3 Clip Preview
google/lyria-3-clip-preview
Input / 1M$0.00
Context1.0M tokens