Google ↗

Gemma 4 31B

google/gemma-4-31b-it
Get an API key ↗
Input $0.2700000000
USD / million tokens
Output $0.5400000000
USD / million tokens
Context window262144tokens
Released2026-04-02

Overview Gemma 4 31B

Gemma 4 31B by Google is available through the Chabokan API. Reported inputs: Image، Text، Video. Outputs: Text. The reported context window is 262,144 tokens. Reported features include Tool calling and Reasoning.

Description supplied in the catalogue
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...

Input & output

Input
imagetextvideo
Output
text
Maximum output
16384 tokens

Supported parameters

frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_completion_tokensmax_tokensmin_ppresence_penaltyreasoningrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p
BUILD WITH GOOGLE

API usage Gemma 4 31B

Keep real keys out of public code. Examples read CHABOKAN_API_KEY from the environment.

API guide ←
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://ai.chabokan.net/v1",
    api_key=os.environ["CHABOKAN_API_KEY"],
)

response = client.chat.completions.create(
    model="google/gemma-4-31b-it",
    messages=[{"role": "user", "content": "Hello, Chabokan!"}],
)
print(response.choices[0].message)
ai.chabokan.net/v1OpenAI SDK

Pricing and cost estimates Gemma 4 31B

Input and output tokens are priced separately. Use the calculator below to estimate costs for your model and request volume. Final rates depend on your account level and actual usage; review any reported additional charges separately.

More from this developer ↗
Pay as you go

Estimate AI model API costs

Estimate token costs by choosing a model, request count, and input and output volumes. Rates come from the same catalogue as the model pricing.

Price level

Prices default to level 3. Level 1 is the standard price; check your console for account eligibility and model access.

Estimated cost—USD
Input —Output —

Token estimate only; image, request, web search, and other charges are excluded. The minimum request fee applies. Your final bill depends on actual usage and account level.

More from this developer

View all models ←