Skip to main content
POST

OpenAI Multimodal Responses API

The Responses API is a unified response interface for multimodal workflows, tool calling, and context continuation. Compared with Chat Completions, its input, output, and tool-calling structure is better suited for complex task orchestration.

Request Body

model
string
required
Model name.
input
string | array<object>
User input. Can be a string or a structured message array.
instructions
string
Developer or system-level instructions.
previous_response_id
string
The ID of the previous response. Can be used for context continuation when supported by the upstream.
tools
array<object>
Tool list. Supports function tools, and can also forward upstream-compatible built-in tools.
tool_choice
string | object
Tool selection strategy.
max_output_tokens
integer
Maximum number of output tokens. Explicitly passing 0 will be preserved and forwarded to supported upstreams.
reasoning
object
Reasoning configuration, for example { "effort": "medium", "summary": "auto" }.
text
object
Text output configuration, commonly used for JSON Schema structured output.
stream
boolean
Whether to enable SSE streaming output.
stream_options.include_usage
boolean
Whether to include token usage in streaming responses.
store
boolean
Controls whether the upstream stores the request and response. This field is allowed to be forwarded by default, and can be disabled by channel settings.
metadata
object
Additional business-side metadata.
include
array<string>
Additional fields to include in the request response; the specific values depend on the upstream implementation.

Request Example

Multimodal Input

Tool Calling

Streaming Output

Response Example

Context Compression

Used to compress a long context into a summary suitable for continuing the conversation later. The request structure is similar to /v1/responses, and the commonly used fields are model, input, instructions, and previous_response_id.