GET
/v1/schemas/openrouter/chat/responses
Accept:
Request body
40 properties · 0 required · 203 $defs| property | type | description | constraints |
|---|---|---|---|
| background | any | ||
| cache_control | AnthropicCacheControlDirective | Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also … | |
| debug | ChatDebugOptions | Debug options for inspecting request transformations (streaming only) | |
| frequency_penalty | any | format: double | |
| image_config | ImageConfig | Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details. | |
| include | any | ||
| input | string | ReasoningItem | EasyInputMessag… | Input for a response request - can be a string or array of items | |
| instructions | any | ||
| max_output_tokens | any | ||
| max_tool_calls | any | Maximum number of server-tool (e.g. `openrouter:web_search`) agent steps the model may take during a request. Defaults to 30, which is also the maximum. Ignored when `stop_server_tools_when` is set. | |
| metadata | RequestMetadata | Metadata key-value pairs for the request. Keys must be ≤64 characters and cannot contain brackets. Values must be ≤512 characters. Maximum 16 pairs allowed. | |
| modalities | OutputModalityEnum[] | Output modalities for the response. Supported values are "text" and "image". | |
| model | string | ||
| models | string[] | ||
| parallel_tool_calls | any | ||
| plugins | AutoRouterPlugin | AutoBetaRouterPlugin | ModerationPlugin[] | Plugins you want to enable for this request, including their settings. | |
| presence_penalty | any | format: double | |
| previous_response_id | any | Not supported. The Responses API is stateless: no responses are stored, so a previous response cannot be referenced. Requests with a non-null value are rejected with a 400 error. Send the full conversation history in `input` instead. | |
| prompt | StoredPromptTemplate | ||
| prompt_cache_key | any | ||
| prompt_cache_options | PromptCacheOptions | Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. | |
| provider | ProviderPreferences | When multiple model providers are available, optionally indicate your routing preference. | |
| reasoning | any | object | Configuration for reasoning mode in the response | nullable |
| route | enum | **DEPRECATED** Use providers.sort.partition instead. Backwards-compatible alias for providers.sort.partition. Accepts legacy values: "fallback" (maps to "model"), "sort" (maps to "none"). | fallback | sort | null · deprecated |
| safety_identifier | any | Recommended per-end-user identifier for abuse isolation. Use a stable ID, hash, or pseudonym. When a provider requires a user identity, OpenRouter folds it into the hashed identity sent upstream and never forwards it raw. If omitted, requests use an account-le… | |
| service_tier | enum | auto | default | flex | priority | scale | null · default: "auto" | |
| session_id | string | A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for obser… | length ≤ 256 |
| stop_server_tools_when | StopServerToolsWhenCondition[] | Stop conditions for the server-tool agent loop. Any condition firing halts the loop (OR logic). When set, this overrides `max_tool_calls`. When a condition fires while the model is still emitting tool calls, the pending tool calls are executed and one final tu… | items ≥ 1 |
| store | const | false · default: false | |
| stream | boolean | default: false | |
| temperature | any | format: double | |
| text | object | object | Text output configuration including format and verbosity | |
| tool_choice | enum | enum | enum | … | ||
| tools | any | Preview_WebSearchServerTool | Preview_20250311_WebSearchServerTool[] | ||
| top_k | integer | ||
| top_logprobs | any | ||
| top_p | any | format: double | |
| trace | TraceConfig | Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations. | |
| truncation | enum | auto | disabled | null | |
| user | string | A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual u… | length ≤ 256 |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"openrouter","endpointId":"responses","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}