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

Gemma 3 4B

Gemma 3 introduces multimodality, supporting vision-language input and text outputs.

Context Window
131K
In
$0.056per million tokens
Out
$0.111per million tokens

Google

Model IDgoogle/gemma-3-4b-it

Specifications

Context Window
131K
Modalities
text
Price
$0.056 in · $0.111 out, per million tokens
Model ID
google/gemma-3-4b-it

Quick start

google/gemma-3-4b-it

$0.056 in · $0.111 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-3-4b-it',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
Get an API key →
8K33K66K131K262K1M$1.00$10.00Free

$0.78Bill a month

Gemma 3 12B costs 1.1× more for this mix.

Gemma 3 4B$0.78131K
Gemma 3 12B$0.89131K

Use Gemma 3 4B via Hanzo AI

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