Google model page

Google: Gemma 4 31B

google/gemma-4-31b-it

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.26
Output / 1M
$0.52
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.26

Charged from your UAI balance

UAI output
$0.52

Same API key and billing flow

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.

Reasoning workloads

Use Google: Gemma 4 31B 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.

Agent integrations

Tool and function-style parameters stay available through the same UAI request surface, so agent stacks do not need a separate provider integration.

Pricing and access

Current synced numbers for this exact model row.

UAI input / 1M tokens
$0.26
UAI output / 1M tokens
$0.52
Google input / 1M
$0.20
Google output / 1M
$0.40
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",
    "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",
    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",
  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
Google: Gemini 3 Flash Preview (batch)
google/gemini-3-flash-preview:batch
Input / 1M$0.33
Context1.0M tokens
google
Google: Gemini 3.1 Flash Lite
google/gemini-3.1-flash-lite
Input / 1M$0.33
Context1.0M tokens
google
Google: Gemini 3.1 Flash Lite Preview
google/gemini-3.1-flash-lite-preview
Input / 1M$0.33
Context1.0M tokens