Back to models
Gemma-4-31B-it
Developed by Google DeepMind, Gemma-4-31B-it is a 31B dense open-weight multimodal model featuring a 256K context window, configurable reasoning, strong coding accuracy, and native agentic tool calling.
What you can do
- Complex codebase review and synthesis
- Long-context multimodal research
- Agentic workflow orchestration
Input & output
- Input
- Text prompts, high-resolution images, and multi-frame video inputs (256K context window)
- Output
- Detailed analytical text, multi-step reasoning traces, production code, or agentic tool calls
Try a prompt like this
Analyze this repository diff alongside the FlameGraph profiler screenshot, pinpoint the memory leak, and propose a thread-safe Go patch.
Things to know
Apache 2.0 license; requires ~64GB VRAM in BF16 (1×80GB or 2×48GB GPUs, or single 24GB–48GB GPU via FP8/NVFP4/GGUF quantization). Does not natively process raw audio waveforms.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/chat/completions- Model repo ID
google/gemma-4-31B-it
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
response = client.chat.completions.create(
model="google/gemma-4-31B-it",
messages=[{"role": "user", "content": "Analyze this repository diff alongside the FlameGraph profiler screenshot, pinpoint the memory leak, and propose a thread-safe Go patch."}],
)
print(response.choices[0].message.content)Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide