plugins array in your request body to activate one or more plugins.
Available Plugins
web — Web Search
Ground responses with real-time web data. Works with any model.
:online to any model slug.
See Web Search for the full reference.
context-compression — Context Window Management
Automatically compress prompts that exceed a model’s context window by removing middle messages.
See Message Transforms for details.
auto-router — Configurable Auto Routing
Customize which models the auto router can select from using wildcard patterns.
Pattern syntax:
See Model Routing — Auto Routing for full details.
Using Multiple Plugins
Plugins can be combined in a single request:- TypeScript
- Python
- cURL
Plugin Shorthands
Some plugins have model suffix shorthands for convenience:Plugin Execution Order
When multiple plugins are active, ARouter applies them in this order:- context-compression — Input is compressed if needed before being sent to the model
- web — Search results are retrieved and injected into the prompt
- auto-router — Model selection happens (if
model: "auto") - Request is forwarded to the selected model