Gemma 4 31B
LLM Provider / Model ยท Frontier open-weights on workstation, agentic coding, reasoning, local multimodal tasks
At a glance
| Input price | Free (self-hosted) |
| Output price | Free (self-hosted) |
| Price tier | Free |
| Context window | 256K |
| Max output | 32K |
| Context tier | 128K-500K |
| Speed tier | Standard |
| Latency | local-bound |
| Knowledge cutoff | 2026 |
| Modality | Multimodal (vision) |
| Model ID | gemma-4-31b |
| Provider | |
| HumanEval | 82% |
| MMLU | 78% |
| SWE-Bench | 32% |
| Benchmark | open-weights mid |
| Released | 2026 |
| Hosting | Open-weights |
| Capabilities | Vision, Tool use, Streaming, Structured output, Thinking mode, Function calling, Agentic coding, System prompts, Self-hostable |
What Gemma 4 31B does
Vision, Tool use, Streaming, Structured output, Thinking mode, Function calling, Agentic coding, System prompts, Self-hostable
Best for
Frontier open-weights on workstation, agentic coding, reasoning, local multimodal tasks
Works well with
Agent / Orchestration
Conflicts & caveats
- Trae's built-in model menu may not include Gemma 4 31B โ Trae primarily ships with Claude/GPT/Gemini/DeepSeek.
- Google Antigravity is built around Gemini 3 Pro; Claude and recent GPT-5 models also work, but Gemma 4 31B is not in the supported model list.
- Kiro's spec mode is tuned for Claude models โ Gemma 4 31B may work but spec-driven flows are best with Claude.
- Cursor's built-in model menu may not include Gemma 4 31B โ verify it's available in your Cursor model picker.
- OpenAI Codex (VS Code) is tied to OpenAI's GPT-5.1 Codex family โ Gemma 4 31B is not selectable inside this integration.
- Gemini CLI is locked to Google Gemini models โ your LLM is Gemma 4 31B.
- Privacy conflict: Self-hosted Gemma 4 31B sends code to cloud @codebase (Cursor). Use local context (Continue indexing, ChromaDB, LanceDB, pgvector, Vespa self-hosted) for true privacy.
- Claude Code only works with Claude models โ your LLM is Gemma 4 31B.
- Devin uses Cognition's proprietary model internally โ your selected Gemma 4 31B will be ignored.
- OpenAI Codex (Cloud) runs GPT-5.1 Codex internally โ your selected Gemma 4 31B will be ignored.
- Jules runs Gemini models internally โ your selected Gemma 4 31B will be ignored.
- The Claude Code SDK is tuned for Claude models โ Gemma 4 31B may work via the model adapter but loses Claude-specific features (thinking, prompt caching, sub-agents).
- Lovable uses a fixed internal model โ your selected Gemma 4 31B will be ignored.
- Replit Agent 3 uses its own model selection internally โ your selected Gemma 4 31B will be ignored.
Build a full stack around Gemma 4 31B โ Flowpicker shows compatibility warnings before you commit.
Open the stack planner โ