All AI models · LLM benchmarks · Methodology

Gemma 4 31B IT

Largest Gemma 4 instruction model for open, self-hosted chat and reasoning

Model facts

Context window
262K tokens
Maximum output
33K tokens
Cheapest paid input
$0.102 per 1M tokens
Cheapest paid output
$0.297 per 1M tokens
Open weights
yes
Providers
7

Capabilities and modalities

reasoning, tool calling, structured output, attachments, temperature control, open weights, text, image.

Local hardware estimate

At 4K context: Q4_K_M 20.1 GiB, Q8_0 34.7 GiB, F16 62.0 GiB working memory.

Parameters
31.3 billion
Architecture
gemma4
Model license
apache-2.0

Planning estimate adapted from the MIT-licensed whichllm estimator using metadata from Hugging Face; not a vendor minimum requirement.

Observed price history

  • 2026-08-24: $0.102 input / $0.297 output per 1M tokens

API providers

  • Bothub (free) — model id gemma-4-31b-it:free; free input / free output per 1M tokens; provider documentation
  • LLM Gateway (Runware) — model id runware/gemma-4-31b-it; $0.102 input / $0.297 output per 1M tokens; provider documentation
  • LLM Gateway (DeepInfra) — model id deepinfra/gemma-4-31b-it; $0.13 input / $0.38 output per 1M tokens; provider documentation
  • LLM Gateway (NovitaAI) — model id novita/gemma-4-31b-it; $0.14 input / $0.4 output per 1M tokens; provider documentation
  • LLM Gateway (SCX.ai (Turbo)) — model id scx-ai/gemma-4-31b-it; $0.3 input / $0.91 output per 1M tokens; provider documentation
  • LLM Gateway (Together AI) — model id together-ai/gemma-4-31b-it; $0.39 input / $0.97 output per 1M tokens; provider documentation
  • LLM Gateway (Cerebras) — model id cerebras/gemma-4-31b-it; $0.99 input / $1.49 output per 1M tokens; provider documentation