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.
| Option | Type | Description |
|---|---|---|
max_results | number | Number of results to retrieve (default: 5) |
engine | string | Search engine: "native", "exa", "parallel" |
include_domains | string[] | Restrict results to these domains |
exclude_domains | string[] | Exclude results from these domains |
context-compression — Context Window Management
Automatically compress prompts that exceed a model’s context window by removing middle messages.
| Option | Type | Description |
|---|---|---|
enabled | boolean | Set to false to disable (useful for small-context models where it’s on by default) |
auto-router — Configurable Auto Routing
Customize which models the auto router can select from using wildcard patterns.
| Option | Type | Description |
|---|---|---|
allowed_models | string[] | Wildcard patterns restricting which models auto can select |
| Pattern | Matches |
|---|---|
anthropic/* | All Anthropic models |
openai/gpt-5* | All GPT-5 variants |
google/* | All Google models |
openai/gpt-5.4 | Exact match only |
Using Multiple Plugins
Plugins can be combined in a single request:- TypeScript
- Python
- cURL
Plugin Shorthands
Some plugins have model suffix shorthands for convenience:| Shorthand | Plugin equivalent |
|---|---|
:online | plugins: [{"id": "web"}] |
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
Pricing
Plugin pricing is in addition to normal LLM token costs:| Plugin | Additional Cost |
|---|---|
context-compression | Free |
web (Exa engine) | $4 / 1,000 results |
web (Parallel engine) | $4 / 1,000 results |
web (Native engine) | Provider passthrough (varies) |
auto-router | Free |