Available Plugins
OpenRouter currently supports the following plugins:| Plugin | Description | Docs |
|---|---|---|
| Web Search (deprecated) | Augment LLM responses with real-time web search results. Use the openrouter:web_search server tool instead. | Web Search |
| PDF Inputs | Parse and extract content from uploaded PDF files | PDF Inputs |
| Response Healing | Automatically fix malformed JSON responses from LLMs | Response Healing |
| Pareto Router | Set a default coding quality tier for the Pareto code router | Pareto Router |
| Context Compression | Compress prompts that exceed a model’s context window using middle-out truncation | Message Transforms |
Enabling Plugins via API
Plugins are enabled by adding aplugins array to your chat completions request. Each plugin is identified by its id and can include optional configuration parameters.
Using Multiple Plugins
You can enable multiple plugins in a single request:Default Plugin Settings
Organization admins and individual users can configure default plugin settings that apply to all API requests. This is useful for:- Enabling plugins like web search or response healing by default across all requests
- Setting consistent plugin configurations without modifying application code
- Enforcing plugin settings that cannot be overridden by individual requests
- Navigate to Settings > Plugins
- Toggle plugins on/off to enable them by default
- Click the configure button to customize plugin settings
- Optionally enable “Prevent overrides” to enforce settings across all requests
When “Prevent overrides” is enabled for a plugin, individual API requests cannot disable or modify that plugin’s configuration. This is useful for enforcing organization-wide policies.
Plugin precedence
Plugin settings are applied in the following order of precedence:- Request-level settings: Plugin configurations in the
pluginsarray of individual requests - Account defaults: Settings configured in the Plugins settings page
Disabling a default plugin
If a plugin is enabled by default in your account settings, you can disable it for a specific request by passing"enabled": false in the plugins array:
Model Variants as Plugin Shortcuts
Some plugins have convenient model variant shortcuts. For example, appending:online to any model ID enables web search: