Skip to main content

Try Gemma 4 31B in the Workbench

Run this model interactively, tune parameters, and compare outputs.
Model ID: gemma-4-31b-it Gemma 4 31B is the flagship dense multimodal model in the Gemma 4 family with 31 billion parameters. It supports text, image, and video inputs with a 256K token context window and over 140 languages. As the largest and most capable Gemma 4 variant, it achieves an estimated LMArena score of 1452, comparable to much larger models. Gemma 4 introduces Per-Layer Embeddings (PLE) for richer token representations, shared KV cache for efficient long-context inference, and variable aspect ratio vision encoding. *Quantization is specific to the inference provider and the model may be offered with different quantization levels by other providers.

Example request

Use the Workbench as a request builder: configure parameters for this model in the UI, then open the API tab to copy the exact cURL or Python call.

Fetch model details

The models endpoint returns the full model object, including its json_request_schema.

Request parameters

This model follows the standard OpenAI chat completions request body. See the chat completions reference for the full parameter list.