modelparams.dev

OpenAI GPT-4.1 Mini API parameters

These are the API parameters modelparams.dev tracks for OpenAI GPT-4.1 Mini — the settings you send in a request. 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.

After the parameter count instead — how many weights GPT-4.1 Mini has? That's a different number, and we don't track it. Here's the difference.

Length 1 param
Parameter Type Default Description Condition
Max tokens
max_tokens
integer (1…+∞) 4096 Maximum number of output tokens the model may generate.
Sampling 2 params
Parameter Type Default Description Condition
Temperature
temperature
number (0…2 step 0.1) 1 Controls randomness. Lower values make outputs more focused; higher values make them more varied.
Top P
top_p
number (0…1 step 0.01) 1 Controls nucleus sampling by limiting generation to tokens whose cumulative probability reaches this value.

OpenAI GPT-4.1 Mini API parameters in brief

OpenAI GPT-4.1 Mini documents 3 API parameters, grouped by what they control:

Frequently asked questions

Which API parameters does OpenAI GPT-4.1 Mini support?
OpenAI GPT-4.1 Mini accepts 3 API parameters in the request body: max_tokens, temperature, top_p.
What is the default temperature for OpenAI GPT-4.1 Mini?
The default temperature for OpenAI GPT-4.1 Mini is 1, within a valid range of 0 to 2.
What is the default top_p for OpenAI GPT-4.1 Mini?
The default top_p for OpenAI GPT-4.1 Mini is 1, within a valid range of 0 to 1.
What is the default max_tokens for OpenAI GPT-4.1 Mini?
The default max_tokens for OpenAI GPT-4.1 Mini is 4096, with a minimum of 1.

Resources

All OpenAI models Glossary Full catalog

GPT-4.1 Mini — 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": "openai",
  "authType": "api_key",
  "model": "gpt-4.1-mini",
  "params": [
    {
      "path": "max_tokens",
      "label": "Max tokens",
      "description": "Maximum number of output tokens the model may generate.",
      "group": "generation_length",
      "type": "integer",
      "default": 4096,
      "range": {
        "min": 1
      }
    },
    {
      "path": "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": "top_p",
      "label": "Top P",
      "description": "Controls nucleus sampling by limiting generation to tokens whose cumulative probability reaches this value.",
      "group": "sampling",
      "type": "number",
      "default": 1,
      "range": {
        "min": 0,
        "max": 1,
        "step": 0.01
      }
    }
  ]
}

Other OpenAI 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