Gemma 4 31B It
Google logo

Gemma 4 31B It

gemma-4-31b-itllms.txt
Google
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 calling, and multilingual support across 140+ languages. Strong on coding, reasoning, and document understanding tasks. Apache 2.0 license.

Pricing

  • Input Tokens: $0.14 /M tokens
  • Output Tokens: $0.4 /M tokens
  • Cache Read: $0 /M tokens

Input Modalities

  • Text
  • Vision
  • Video

Output Modalities

  • Text

Context length

  • 262K tokens

Capabilities

  • Thinking
  • Streaming
  • Tool calling
  • Web search
  • URL context
  • Code interpreter
  • Computer use
  • File search
  • Memory tool
  • Document input
  • Structured outputs
  • Citations
  • Prompt caching
  • Background mode
  • Server-side sessions

Providers

Google AI Studio google-gemma-4-31b-it
Pricing$0.14$0.4
Context262K
Max output131K
Latency0.4S
Throughput42.6TPS
Uptime
61.40% uptime 2 days ago
98.08% uptime yesterday
90.32% uptime today
Cerebras cbs-gemma-4-31b
Pricing$1$1.5
Context262K
Max output131K
Latency0.2S
Throughput209.1TPS
Uptime
100.00% uptime 2 days ago
0.00% uptime yesterday
100.00% uptime today
Deepinfra deepinfra-gemma-4-31b-it
Pricing$0.143$0.418
Context128K
Max output128K
Latency3.8S
Throughput21.1TPS
Uptime
100.00% uptime 2 days ago
100.00% uptime yesterday
100.00% uptime today

Performance for gemma-4-31b-it

Uptime is the percentage of requests that succeeded over the past 72 hours. AIHubMix continuously monitors every provider and automatically retries with the next-best provider when one returns an error or responds too slowly; Latency is total round-trip time (lower is better); Throughput is how fast the model writes (tokens per second, higher is better).

Uptime
Loading...
Latency
Loading...
Throughput
Loading...

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="gemma-4-31b-it",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

What is 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 calling, and multilingual support across 140+ languages. Strong on coding, reasoning, and document understanding tasks. Apache 2.0 license.