> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AutoRouterPlugin - Python SDK

> AutoRouterPlugin method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

## Fields

| Field                   | Type                                                                                             | Required             | Description                                                                                                                                                                                                                        | Example                                                             |
| ----------------------- | ------------------------------------------------------------------------------------------------ | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| `allowed_models`        | List\[*str*]                                                                                     | :heavy\_minus\_sign: | List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/\*" matches all Anthropic models). When not specified, uses the default supported models list.               | \[<br />"anthropic/*",<br />"openai/gpt-4o",<br />"google/*"<br />] |
| `cost_quality_tradeoff` | *Optional\[int]*                                                                                 | :heavy\_minus\_sign: | Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. | 7                                                                   |
| `enabled`               | *Optional\[bool]*                                                                                | :heavy\_minus\_sign: | Set to false to disable the auto-router plugin for this request. Defaults to true.                                                                                                                                                 |                                                                     |
| `id`                    | [components.AutoRouterPluginID](/client-sdks/python/api-reference/components/autorouterpluginid) | :heavy\_check\_mark: | N/A                                                                                                                                                                                                                                |                                                                     |
