previous_response_idBearer sk-xxxxxxxxxxgpt-5.2, gpt-5, gpt-5-mini, etc.o1, o3-mini, o4-mini, etc.gpt-4o, gpt-4.1, gpt-4o-mini, etc.[{"role": "user", "content": "text"}] (similar to Chat Completions)[{"type": "input_text", "text": "text"}]input_image, input_file typeseffort: Reasoning effort, options: "none", "low", "medium", "high"summary: Reasoning summary, options: "auto", "none", "detailed"{"type": "web_search_preview", "search_context_size": "medium"}{"type": "file_search"}"auto": Model automatically decides whether to call tools"none": Disable tool calling{"type": "function", "function": {"name": "function_name"}}: Force call specific function"auto" or "disabled"| Event Type | Description |
|---|---|
response.created | Response created |
response.in_progress | Response in progress |
response.output_item.added | Output item added (tool call started) |
response.output_text.delta | Text delta |
response.output_text.done | Text completed |
response.output_item.done | Output item completed |
response.completed | Response completed |
search_context_size: Search context size
"low": Low context, faster but fewer results"medium": Medium context (default)"high": High context, more search results but sloweruser_location (optional): User location information
country: Country code (e.g., “US”, “CN”)region: State/Provincecity: Citytimezone: Timezoneeffort: Reasoning effort level
"none": No reasoning"low": Light reasoning"medium": Medium reasoning (default)"high": Deep reasoningsummary: Reasoning summary
"none": No reasoning summary"auto": Automatically decide whether to output summary"detailed": Output detailed reasoning processprevious_response_id to continue previous conversations.
| Feature | Responses API | Chat Completions API |
|---|---|---|
| Reasoning Model Support | ✅ Full support | ⚠️ Limited support |
| Built-in Web Search | ✅ Native support | ❌ Not supported |
| Reasoning Control | ✅ Fine-grained control | ❌ Not supported |
| Conversation Continuation | ✅ previous_response_id | ✅ Via messages |
| Streaming Output | ✅ SSE format | ✅ SSE format |
| Client Compatibility | ⚠️ Needs adaptation | ✅ Standard format |
| Use Cases | Reasoning, search, advanced features | General conversation |