Interface: OpenRouterResponsesParams
@providerprotocol/ai / openrouter / OpenRouterResponsesParams
Interface: OpenRouterResponsesParams
Section titled “Interface: OpenRouterResponsesParams”Defined in: src/providers/openrouter/types.ts:223
Parameters for OpenRouter’s Responses API (beta).
These parameters are passed through to the /api/v1/responses endpoint.
The Responses API uses a different structure than Chat Completions and
supports features like reasoning configuration.
Properties
Section titled “Properties”image_config?
Section titled “image_config?”
optionalimage_config:OpenRouterImageConfig
Defined in: src/providers/openrouter/types.ts:255
Image generation configuration.
Only applies when modalities includes ‘image’.
https://openrouter.ai/docs/guides/overview/multimodal/image-generation
max_output_tokens?
Section titled “max_output_tokens?”
optionalmax_output_tokens:number
Defined in: src/providers/openrouter/types.ts:225
Maximum output tokens
modalities?
Section titled “modalities?”
optionalmodalities: ("text"|"image")[]
Defined in: src/providers/openrouter/types.ts:248
Output modalities for multimodal generation.
Set to ['text', 'image'] to enable image generation with compatible models.
https://openrouter.ai/docs/guides/overview/multimodal/image-generation
parallel_tool_calls?
Section titled “parallel_tool_calls?”
optionalparallel_tool_calls:boolean
Defined in: src/providers/openrouter/types.ts:234
Whether to enable parallel tool calls
reasoning?
Section titled “reasoning?”
optionalreasoning:object
Defined in: src/providers/openrouter/types.ts:239
Reasoning configuration
effort?
Section titled “effort?”
optionaleffort:"none"|"low"|"medium"|"high"|"minimal"|"xhigh"
temperature?
Section titled “temperature?”
optionaltemperature:number
Defined in: src/providers/openrouter/types.ts:228
Temperature for randomness (0.0 - 2.0)
top_p?
Section titled “top_p?”
optionaltop_p:number
Defined in: src/providers/openrouter/types.ts:231
Top-p (nucleus) sampling (0.0 - 1.0)