How to Use OpenRouter Presets: Config-as-Code Guide
Blog post from OpenRouter
OpenRouter presets provide a config-as-code approach for LLM requests by storing versioned model selections, fallback chains, system prompts, provider-routing rules, sampling settings, and tools under a reusable name. Applications can reference a preset through the model field using a format such as “@preset/name,” allowing configuration changes made in the OpenRouter dashboard to take effect across API integrations, scripts, notebooks, and compatible third-party clients without code changes or redeployments. Request-level settings can override most preset values, while tool definitions are merged, and presets may also be created through the API. The guide demonstrates presets for consistently enhancing image prompts with a text model and image-generation tool, and for preserving a Fusion panel configuration across applications. Saving changes creates a new active version, while earlier versions can be restored if necessary, enabling teams to centrally manage and share model behavior, prompts, routing, and evaluation configurations.
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.