Gemma 4 31B

Gemma 4 31B is the largest dense open-weight model in Google's Gemma 4 family, released under Apache 2.0 for advanced reasoning and agentic workflows.

input · usd / 1m tok

$0.99

output · usd / 1m tok

$1.49

context window

128ktokens

modalities · in → out

takes text and image in, gives text out

pricing

base api ratesusd per 1m tokens

input
$0.99
output
$1.49

providers

parasail hosts Gemma 4 31B. Impossibl routes your request intelligently and handles failover automatically when a provider is down.

  • parasail

specifications

takes text and image in, gives text outgoogle/gemma-4-31b

  • creatorGoogle
  • model typeText generation
  • context window128,000 tokens
  • maximum outputnot published
  • input

    takes text and image in, gives text out

  • outputtext
  • tool callingnot verified
  • releasedapr 2, 2026
  • endpoint/v1/chat/completions

unknown means the public catalog does not establish that fact. a model's documented capabilities can differ from what a particular api supports. see the model documentation for integration details.

try it · your prompt, this model, live

# responses API
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["IMPOSSIBL_API_KEY"],
    base_url="https://api.impossibl.com/v1",
)

resp = client.responses.create(
    model="google/gemma-4-31b",
    input="",
)
print(resp.output_text)

edit the prompt, then run

benchmarks

intelligence index

14.7#87 of 108 models on the gateway

  1. coding index43.4#48 of 64
  2. agentic index4.2#47 of 53
  • Intelligence Index14.67
  • legal index (API)13.9
  • coding index (API)43.4
  • agentic index (API)4.2
  • economics index (API)20.6
  • engineering index (API)16.7
  • intelligence index (API)14.7
  • strategy and ops index (API)9.3
  • finance and accounting index (API)13.6

view source ↗all source data and breakdowns (json) ↗

each configuration is listed separately; these evaluations describe the tested model configuration, and performance and costs can differ on impossibl. unmeasured scores are omitted and api values keep their source units. last checked 2026-10-14.

compare Gemma 4 31B with other models

frontier labs and open weights, best-ranked firstusd / 1m tok · in / out

impossibl models --all →

frequently asked questions

What is Gemma 4 31B?

Gemma 4 31B is the largest dense open-weight model in Google's Gemma 4 family, released under Apache 2.0 for advanced reasoning and agentic workflows. Unlike the smaller E2B and E4B variants it takes text and image but not audio, favouring quality over speed.

How much does Gemma 4 31B cost?

Gemma 4 31B costs $0.99 per million input tokens and $1.49 per million output tokens through the Impossibl API. All rates are in USD.

view the pricing table ↑

What is the context length of Gemma 4 31B?

Gemma 4 31B has a 128,000-token context window through the Impossibl API.

What inputs and outputs does Gemma 4 31B support?

Gemma 4 31B accepts text and image as input. Gemma 4 31B returns text.

How do I use Gemma 4 31B through an API?

Gemma 4 31B is available through the Impossibl API. Use google/gemma-4-31b as the model identifier with /v1/chat/completions. The quickstart explains how to create an API key and send your first request.

follow the api quickstart →

When was Gemma 4 31B released?

Google released Gemma 4 31B on April 2, 2026.

this page describes Gemma 4 31B as listed by the impossibl public api. prices and availability come from that catalog, refreshed here every five minutes. this is an impossibl offering, not a comparison of independent hosting-provider quotes. model descriptions and release dates, where available, use the creator sources linked under the answers above.

view the source catalog ↗model as markdown ↗report a correction →