Skip to main content
Google logo

Gemma-4-31B-IT

ReadyVisionby Google

Overview

About this model

Gemma 4 models are designed to deliver frontier-level performance at each size, targeting deployment scenarios from mobile and edge devices (E2B, E4B) to consumer GPUs and workstations (26B A4B, 31B). They are well-suited for reasoning, agentic workflows, coding, and multimodal understanding. The models employ a hybrid attention mechanism that interleaves local sliding window attention with full global attention, ensuring the final layer is always global. This hybrid design delivers the processing speed and low memory footprint of a lightweight model without sacrificing the deep awareness required for complex, long-context tasks. To optimize memory for long contexts, global layers feature unified Keys and Values, and apply Proportional RoPE (p-RoPE).

View model card on HuggingFace

Specifications

Model details

Provider
Google
Modality
Vision
Context length
32.8K tokens
Pricing
$0.50 in · $0.50 out / 1M

API

Call it in code

One OpenAI-compatible API. Swap the model id and you're done.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.ecohash.com/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="gemma-4-31b-it",
    messages=[{"role": "user", "content": [
        {"type": "text", "text": "Describe this image"},
        {"type": "image_url", "image_url": {"url": "..."}},
    ]}],
)

Start building

Grab an API key and call this model in minutes.