Interface: OpenRouterProviderOptions
@providerprotocol/ai / openrouter / OpenRouterProviderOptions
Interface: OpenRouterProviderOptions
Section titled “Interface: OpenRouterProviderOptions”Defined in: src/providers/openrouter/index.ts:15
Configuration options for creating an OpenRouter model reference.
OpenRouter supports two distinct APIs:
- Chat Completions API: Stable, production-ready, supports most models
- Responses API: Beta, supports advanced features like reasoning
Properties
Section titled “Properties”
optionalapi:"responses"|"completions"
Defined in: src/providers/openrouter/index.ts:22
Which OpenRouter API to use.
'completions': Chat Completions API (default, recommended for production)'responses': Responses API (beta, supports reasoning models)