Skip to content

Interface: OpenRouterResponsesParams

@providerprotocol/ai


@providerprotocol/ai / openrouter / 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.

OpenRouter Responses API

optional image_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


optional max_output_tokens: number

Defined in: src/providers/openrouter/types.ts:225

Maximum output tokens


optional modalities: ("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


optional parallel_tool_calls: boolean

Defined in: src/providers/openrouter/types.ts:234

Whether to enable parallel tool calls


optional reasoning: object

Defined in: src/providers/openrouter/types.ts:239

Reasoning configuration

optional effort: "none" | "low" | "medium" | "high" | "minimal" | "xhigh"


optional temperature: number

Defined in: src/providers/openrouter/types.ts:228

Temperature for randomness (0.0 - 2.0)


optional top_p: number

Defined in: src/providers/openrouter/types.ts:231

Top-p (nucleus) sampling (0.0 - 1.0)