modelparams.dev

Google Gemma 4 31b It parameters

These are the parameters modelparams.dev tracks for Google Gemma 4 31b It. Each row gives the type, default, valid range or values, and the conditions that gate it. It's the same data the JSON API serves.

Length 1 param
Parameter Type Default Description Condition
Max output tokens
generationConfig.maxOutputTokens
integer (1…65536) Maximum number of tokens to include in a response candidate.
Sampling 4 params
Parameter Type Default Description Condition
Temperature
generationConfig.temperature
number (0…2 step 0.1) 1 Controls randomness. Lower values make outputs more focused; higher values make them more varied.
Top P
generationConfig.topP
number (0…1 step 0.01) 0.95 Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.
Top K
generationConfig.topK
integer (0…+∞) 64 Limits token sampling to the top K most likely next tokens.
Seed
generationConfig.seed
integer Optional seed used for decoding when reproducible sampling is desired.
Reasoning 2 params
Parameter Type Default Description Condition
Thinking budget
generationConfig.thinkingConfig.thinkingBudget
integer 0 Number of thinking tokens Gemini should use; -1 uses dynamic thinking, 0 disables thinking, and fixed budgets start at 512 tokens.
Include thoughts
generationConfig.thinkingConfig.includeThoughts
boolean false Controls whether Gemini returns available thought summaries in the response parts.
Output 1 param
Parameter Type Default Description Condition
Response MIME type
generationConfig.responseMimeType
enum (text/plain | application/json) "text/plain" MIME type for generated text candidates.

Google Gemma 4 31b It API parameters in brief

Google Gemma 4 31b It documents 8 API parameters, grouped by what they control:

Frequently asked questions

How many parameters does Google Gemma 4 31b It accept?
Google Gemma 4 31b It accepts 8 API parameters: generationConfig.maxOutputTokens, generationConfig.temperature, generationConfig.topP, generationConfig.topK, generationConfig.seed, generationConfig.thinkingConfig.thinkingBudget, and more.

Resources

All Google models Glossary Full catalog

Gemma 4 31b It — JSON

The full model definition as served by the API. Copy it or open the endpoint directly.

{
  "$schema": "https://modelparams.dev/api/v1/schema.json",
  "provider": "google",
  "authType": "api_key",
  "model": "gemma-4-31b-it",
  "params": [
    {
      "path": "generationConfig.maxOutputTokens",
      "label": "Max output tokens",
      "description": "Maximum number of tokens to include in a response candidate.",
      "group": "generation_length",
      "type": "integer",
      "range": {
        "min": 1,
        "max": 65536
      }
    },
    {
      "path": "generationConfig.temperature",
      "label": "Temperature",
      "description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
      "group": "sampling",
      "type": "number",
      "default": 1,
      "range": {
        "min": 0,
        "max": 2,
        "step": 0.1
      }
    },
    {
      "path": "generationConfig.topP",
      "label": "Top P",
      "description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
      "group": "sampling",
      "type": "number",
      "default": 0.95,
      "range": {
        "min": 0,
        "max": 1,
        "step": 0.01
      }
    },
    {
      "path": "generationConfig.topK",
      "label": "Top K",
      "description": "Limits token sampling to the top K most likely next tokens.",
      "group": "sampling",
      "type": "integer",
      "default": 64,
      "range": {
        "min": 0
      }
    },
    {
      "path": "generationConfig.seed",
      "label": "Seed",
      "description": "Optional seed used for decoding when reproducible sampling is desired.",
      "group": "sampling",
      "type": "integer"
    },
    {
      "path": "generationConfig.thinkingConfig.thinkingBudget",
      "label": "Thinking budget",
      "description": "Number of thinking tokens Gemini should use; -1 uses dynamic thinking, 0 disables thinking, and fixed budgets start at 512 tokens.",
      "group": "reasoning",
      "type": "integer",
      "default": 0
    },
    {
      "path": "generationConfig.thinkingConfig.includeThoughts",
      "label": "Include thoughts",
      "description": "Controls whether Gemini returns available thought summaries in the response parts.",
      "group": "reasoning",
      "type": "boolean",
      "default": false
    },
    {
      "path": "generationConfig.responseMimeType",
      "label": "Response MIME type",
      "description": "MIME type for generated text candidates.",
      "group": "output_format",
      "type": "enum",
      "default": "text/plain",
      "values": [
        "text/plain",
        "application/json"
      ]
    }
  ]
}

Other Google models

How to use

Building with an AI agent? Hit Copy to grab this whole guide as Markdown and paste it in — or point your agent straight at /llms.txt.

modelparams.dev is an open, community-maintained catalog of model parameters. Each entry shows the knobs you can turn — type, default, range, and the conditions that gate it.

The same model accessed via an API key and via a subscription usually exposes a different set of parameters. We list both as separate entries so the data stays honest.

Catalog API

The full catalog is static JSON, CORS-enabled, served from the edge.

curl https://modelparams.dev/api/v1/models.json

Each entry is keyed by provider/model for API-key variants; subscription variants append -subscription.

If you only need the params for one model contract, use the providerless endpoint. Subscription contracts are model slugs with -subscription.

curl https://modelparams.dev/api/v1/params/gpt-5.5.json
curl https://modelparams.dev/api/v1/params/gpt-5.5-subscription.json

Single model

curl https://modelparams.dev/api/v1/models/anthropic/claude-opus-4-7.json
curl https://modelparams.dev/api/v1/models/anthropic/claude-opus-4-7-subscription.json

JSON Schema

Every entry validates against a JSON Schema you can use in your editor or pipeline.

curl https://modelparams.dev/api/v1/schema.json

Add this header to any YAML you author for autocomplete in VS Code:

# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json

Logos

Provider logos are available at /assets/logos/{provider}.svg where {provider} is the provider slug. They use currentColor so they inherit your text color.

curl https://modelparams.dev/assets/logos/anthropic.svg

Logos are sourced from the models.dev repo (MIT) and used under nominative fair use.

Contribute

The data lives in YAML under models/{provider}/{model}-{auth}.yaml in the GitHub repo. Open a PR; CI validates against the schema and rebuilds.

Edit on GitHub MIT licensed