Google AI StudioCertifiedReleased 04/02/2026

Gemma 4 31B IT

Gemma 4 31B is engineered to tackle the most demanding enterprise workloads and complex reasoning tasks. With an expansive 256K-token context window, the 31B model can effortlessly ingest entire codebases, and massive sets of images in a single prompt.

View API reference ↓
Input / output priceFrom$0.14 / $0.40per 1M
24h uptime74.95%
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.inferencebureau.com/v1",
  apiKey: process.env.IB_API_KEY,
});

const res = await client.chat.completions.create({
  model: "google/gemma-4-31b-it",
  messages: [{ role: "user", content: "Why is the sky blue?" }],
});

console.log(res.choices[0].message.content);

Providers

Dispatch routes requests across these providers and fails over between them without changing the model. Restrict or order providers with team Directives. Prices are gateway list prices before the platform fee.

ProviderContextMax outputLatencyThroughputInputOutputCacheCapabilitiesZDRNo trainingRegionsStatus
friendli256K131K1.6 s152 tps$0.14$0.40Read —Write —6 featuresNoNoGlobalCertified
gmicloud1.05M1.05M——$0.14$0.40Read $0.100Write —5 featuresNoNoGlobalListed
novita262K131K0.6 s—$0.14$0.40Read —Write —6 featuresNoNoGlobalCertified
parasail262K131K0.9 s79 tps$0.15$0.40Read $0.060Write —4 featuresYesYesGlobalCertified

Uptime

24 hours

Request success rate per provider.

friendli99.86%
gmicloud0.00%
novita100.00%
parasail99.95%

Throughput

last hour

P50 output tokens per second.

friendli152 tps
parasail79 tps
gmicloud—
novita—

Latency

last hour

P50 time to first token.

novita0.6 s
parasail0.9 s
friendli1.6 s
gmicloud—

Getting started

Create a key on the API Keys page and set it as IB_API_KEY. See the quickstart.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.inferencebureau.com/v1",
  apiKey: process.env.IB_API_KEY,
});

const res = await client.chat.completions.create({
  model: "google/gemma-4-31b-it",
  messages: [{ role: "user", content: "Why is the sky blue?" }],
});

console.log(res.choices[0].message.content);

Top-level parameters

Standard Chat Completions parameters work as documented. These have model-specific behavior.

ParameterTypeRequiredDescription
modelstringYesModel ID in the form creator/model, e.g. google/gemma-4-31b-it. Must be allowed by your team's Directives.
max_tokensnumberNoHard cap on generated tokens, and the basis for the balance reserved per request. Gemma 4 31B IT supports up to 131,072 output tokens.
reasoning{ effort: 'low' | 'medium' | 'high' }NoReasoning effort, mapped to the provider's native configuration. Reasoning tokens count toward output usage.
toolsTool[]NoFunction definitions the model can call. Tool calls are returned in choices[].message.tool_calls.
Supportedmax_tokenstemperaturestoptoolstool_choicereasoninginclude_reasoningresponse_formatstructured_outputs

Input limits

InputSourcesLimits
Text—Prompt and response share the 262K-token context window
ImageURL, base64Sent as image_url content parts; counts as input tokens
PDFURL, base64Sent as file content parts; counts as input tokens

More models by Google AI Studio

ModelContextInputOutputCacheRelease
google/gemini-4-hydrogen1M$1.50$7.50Read $0.075Write —11/12/2026
google/gemini-4-carbon1M$2.00$10.00Read $0.100Write —11/10/2026
google/gemini-omni-1.2-flash131K$1.50$9.00Read —Write —11/05/2026
google/gemini-4-argon1M$2.00$10.00Read $0.100Write —10/13/2026
google/gemini-nano-banana-2.1131K$1.50$7.50Read $0.15Write —10/06/2026
google/gemini-3.8-flash1M$0.75$3.75Read $0.075Write —09/02/2026
google/gemini-3.7-flash1M$0.75$3.75Read $0.075Write —08/13/2026
google/gemini-3.5-flash-lite1M$0.30$2.50Read $0.030Write —07/21/2026
google/gemini-3.5-flash-lite-batch1M$0.15$1.25Read $0.015Write —07/21/2026
google/gemini-3.6-flash1M$0.75$3.75Read $0.075Write —07/21/2026