Presets
Save a model, a system prompt and parameters under one name.
What a preset is
A preset stores a model, a system prompt and default parameters under a short name. Create them under Presets; each one gets a slug from its name, for example code-reviewer.
That slug is the preset's handle and it is fixed at creation: renaming a preset later changes what you see in the dashboard, never what your code sends. A preset can also name sothe/auto as its model, which makes it a system prompt and parameters with the model left to automatic routing.
Using one
Send @preset/<slug> where the model id goes. The preset fills in the model, prepends its system prompt and supplies defaults for temperature, top_p and max_tokens. Anything you pass explicitly still wins.
1{2 "model": "@preset/code-reviewer",3 "messages": [{ "role": "user", "content": "Review this diff." }]4}Presets are private to your account, so a slug only resolves for your own keys. An unknown one returns 404 preset_not_found.
A default preset
Preferences has a Default Preset. When a request arrives with no model field at all, that preset answers it — model, system prompt and parameters included. It is a convenience rather than a contract: if the preset has since been deleted the request carries on to your default model instead of failing on a preset it never named.
Why bother
- Change model or prompt without deploying code.
- Keep a long system prompt out of every request body.
- Give several services the same behaviour by name.