modelparams.dev
Sampling boolean 19 models

Do sample do_sample

When false, the model uses greedy decoding and ignores temperature and top_p.

Type
boolean
Default
true

do_sample by model

The exact type, default, range, and conditions for do_sample on each model that documents it.

Model Provider Type Default Range / values Condition
GLM-4.5 Z.ai boolean true
GLM-4.5 Subscription Z.ai boolean true
GLM-4.5-Air Z.ai boolean true
GLM-4.5-Air Subscription Z.ai boolean true
GLM-4.5-AirX Z.ai boolean true
GLM-4.5-Flash Z.ai boolean true
GLM-4.5-X Z.ai boolean true
GLM-4.6 Z.ai boolean true
GLM-4.6 Subscription Z.ai boolean true
GLM-4.7 Z.ai boolean true
GLM-4.7 Subscription Z.ai boolean true
GLM-4.7-Flash Z.ai boolean true
GLM-4.7-FlashX Z.ai boolean true
GLM-5 Z.ai boolean true
GLM-5 Subscription Z.ai boolean true
GLM-5-Turbo Z.ai boolean true
GLM-5-Turbo Subscription Z.ai boolean true
GLM-5.1 Z.ai boolean true
GLM-5.1 Subscription Z.ai boolean true

Models without do_sample documented yet

These models don't list do_sample in the catalog. That may mean the provider doesn't accept it, or it simply hasn't been added yet — the data is community-maintained.

Related sampling parameters

Resources

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