Responses
Cancel a response
POST/responses/{response_id}/cancel
Compact a response
POST/responses/compact
Create a model response
POST/responses
Delete a model response
DELETE/responses/{response_id}
Get a model response
GET/responses/{response_id}
ModelsExpand Collapse
CompactedResponse object { id, created_at, object, 2 more }
CompactedResponse object { id, created_at, object, 2 more }
created_at: number
Unix timestamp (in seconds) when the compacted conversation was created.
formatunixtime
output: array of Message { id, content, role, 3 more } or object { id, call_id, code, 2 more } or object { id, call_id, result, 2 more } or 25 moreThe compacted list of output items.
output: array of Message { id, content, role, 3 more } or object { id, call_id, code, 2 more } or object { id, call_id, result, 2 more } or 25 more
The compacted list of output items.
One of the following:
Message object { id, content, role, 3 more } A message to or from the model.
Message object { id, content, role, 3 more }
A message to or from the model.
content: array of ResponseInputText { text, type, prompt_cache_breakpoint } or ResponseOutputText { annotations, logprobs, text, type } or TextContent { text, type } or 6 moreThe content of the message
content: array of ResponseInputText { text, type, prompt_cache_breakpoint } or ResponseOutputText { annotations, logprobs, text, type } or TextContent { text, type } or 6 more
The content of the message
One of the following:
ResponseOutputText object { annotations, logprobs, text, type } A text output from the model.
ResponseOutputText object { annotations, logprobs, text, type }
A text output from the model.
annotations: array of object { file_id, filename, index, type } or object { end_index, start_index, title, 2 more } or object { container_id, end_index, file_id, 3 more } or object { file_id, index, type } The annotations of the text output.
annotations: array of object { file_id, filename, index, type } or object { end_index, start_index, title, 2 more } or object { container_id, end_index, file_id, 3 more } or object { file_id, index, type }
The annotations of the text output.
One of the following:
URLCitation object { end_index, start_index, title, 2 more } A citation for a web resource used to generate a model response.
URLCitation object { end_index, start_index, title, 2 more }
A citation for a web resource used to generate a model response.
ResponseInputImage object { detail, type, file_id, 2 more } An image input to the model. Learn about image inputs.
ResponseInputImage object { detail, type, file_id, 2 more }
An image input to the model. Learn about image inputs.
ComputerScreenshotContent object { detail, file_id, image_url, 2 more } A screenshot of a computer.
ComputerScreenshotContent object { detail, file_id, image_url, 2 more }
A screenshot of a computer.
ResponseInputFile object { type, detail, file_data, 4 more } A file input to the model.
ResponseInputFile object { type, detail, file_data, 4 more }
A file input to the model.
detail: optional "auto" or "low" or "high"The detail level of the file to be sent to the model. Use auto to let the system select the detail level; for GPT-5.6 and later models, auto uses high-quality rendering, which may increase input token usage. Use low for lower-cost rendering, or high to render the file at higher quality. Defaults to auto.
detail: optional "auto" or "low" or "high"
The detail level of the file to be sent to the model. Use auto to let the system select the detail level; for GPT-5.6 and later models, auto uses high-quality rendering, which may increase input token usage. Use low for lower-cost rendering, or high to render the file at higher quality. Defaults to auto.
file_url: optional string
The URL of the file to be sent to the model.
formaturi