Responses形式
レスポンスs API
OpenAI レスポンスs API format with function calling, built-in tools, and server-side multi-turn context
POST
The レスポンスs API is OpenAI’s newer agentic API. Compared with Chat Completions, it adds richer tool use and server-side conversation state.
- Function calling: let models call custom functions
- Built-in tools: use tools such as
web_search_preview - Server-side context: use
previous_response_idinstead of resending the full conversation - Reasoning control: tune thinking depth with
reasoning.effort
Authorizations
Body
モデル name.Examples:
"gpt-5-pro-official", "gpt-5.3-codex-official", "gpt-5.2-official"User input. Supports simple string input or a message array for multi-turn conversations.
System instructions that guide model behavior.
Whether to enable streaming output.
Maximum number of output tokens.
Sampling temperature, from
0 to 2.Nucleus sampling threshold, from
0 to 1.Previous response ID for server-side multi-turn context.
Reasoning configuration.
reasoning.effort can be high, medium, low, or none.Available tools. Supported tool types include
function and web_search_preview.Tool selection policy:
auto, none, or required.レスポンス
Unique response ID, usable as
previous_response_id.Always
response.レスポンス status:
completed, failed, or in_progress.Output items, such as
message, function_call, reasoning, or web_search_call.Token usage statistics, including input, output, reasoning, and total tokens.