Skip to content
Try Hanzo
Language: English (United States)

Gemma 4 31B

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output.

Context Window
262K
In
$0.223per million tokens
Out
$0.445per million tokens

Google

Model IDgoogle/gemma-4-31b-it

Specifications

Context Window
262K
Modalities
text
Price
$0.223 in · $0.445 out, per million tokens
Model ID
google/gemma-4-31b-it

Quick start

google/gemma-4-31b-it

$0.223 in · $0.445 out, per million tokens

TypeScript
import OpenAI from 'openai'
 
const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1'
})
 
const response = await client.chat.completions.create({
  model: 'google/gemma-4-31b-it',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
Get an API key →
8K33K66K131K262K1M$1.00$10.00Free

$3.12Bill a month

Gemma 4 31B costs 1.6× more for this mix.

Gemma 4 31B$3.12262K
Gemini 2.5 Flash Lite$2.001M

Use Gemma 4 31B via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.