Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

import { OpenResponsesRequestPluginAutoRouter } from "@openrouter/sdk/models";

let value: OpenResponsesRequestPluginAutoRouter = {
  id: "auto-router",
};

Fields

FieldTypeRequiredDescriptionExample
id”auto-router”:heavy_check_mark:N/A
enabledboolean:heavy_minus_sign:Set to false to disable the auto-router plugin for this request. Defaults to true.
allowedModelsstring[]: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.[
“anthropic/”,
“openai/gpt-4o”,
“google/

]