Cancel a response
Cancels a model response with the given ID. Only responses created with the background parameter set to true can be cancelled. Learn more.
Path parameters
The ID of the response to cancel.
Response
OK
Example response
{
"id": "resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41",
"object": "response",
"access_programs": null,
"created_at": 1741476777,
"status": "completed",
"completed_at": 1741476778,
"error": null,
"incomplete_details": null,
"instructions": null,
"max_output_tokens": null,
"model": "gpt-6-astra",
"output": [
{
"type": "message",
"id": "msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.",
"annotations": []
}
]
}
],
"parallel_tool_calls": true,
"previous_response_id": null,
"reasoning": {
"effort": null,
"summary": null,
"context": null
},
"store": true,
"temperature": 1,
"text": {
"format": {
"type": "text"
}
},
"tool_choice": "auto",
"tools": [],
"top_p": 1,
"truncation": "disabled",
"usage": {
"input_tokens": 328,
"input_tokens_details": {
"cached_tokens": 0,
"cache_write_tokens": 0
},
"output_tokens": 52,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 380
},
"user": null,
"metadata": {}
}Changes
Changed in 29 of the 163 revisions of this API.2779153
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ▲
removed the required property
from the response with the statusresponse-required-property-removed
- ●
removed the optional property
from the response with the statusresponse-optional-property-removed
- ○
added the required property
to the response with the statusresponse-required-property-added
- ▲
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ○
- ●
added the new
gpt-rosalind-researchenum value to the/////response property for the response statusresponse-property-enum-value-added
- ●
- ●
added the new
gpt-6-lunaenum value to the/////////response property for the response statusresponse-property-enum-value-added
- ●
added the new
gpt-6-solenum value to the/////////response property for the response statusresponse-property-enum-value-added
- ●
- ●
added the new
gpt-5.1-minienum value to the/////////response property for the response statusresponse-property-enum-value-added
- ●
- ○
response property
allOf[ResponseProperties]/tools/items/oneOf[subschema #6: MCP tool]/connector_iddeprecatedresponse-property-deprecated
- ○
response property
allOf[subschema #3]/instructions/anyOf[subschema #1]/oneOf[subschema #2: Input item list]/items/oneOf[subschema #2: Item]/oneOf[AdditionalToolsItemParam]/tools/items/oneOf[subschema #6: MCP tool]/connector_iddeprecatedresponse-property-deprecated
- ○
response property
allOf[subschema #3]/instructions/anyOf[subschema #1]/oneOf[subschema #2: Input item list]/items/oneOf[subschema #2: Item]/oneOf[ToolSearchOutputItemParam]/tools/items/oneOf[subschema #6: MCP tool]/connector_iddeprecatedresponse-property-deprecated
- ○
response property
allOf[subschema #3]/output/items/oneOf[AdditionalTools]/tools/items/oneOf[subschema #6: MCP tool]/connector_iddeprecatedresponse-property-deprecated
- ○
response property
allOf[subschema #3]/output/items/oneOf[ToolSearchOutput]/tools/items/oneOf[subschema #6: MCP tool]/connector_iddeprecatedresponse-property-deprecated
- ○
- ●
added the new
gpt-audio-minienum value to the/////////response property for the response statusresponse-property-enum-value-added
- ●
added the new
gpt-audio-mini-2025-12-15enum value to the/////////response property for the response statusresponse-property-enum-value-added
- ○
removed the
gpt-5.1-minienum value from the/////////response property for the response statusresponse-property-enum-value-removed
- ●
- ▲
the
///////response property's maxLength was increased from20971520to104857600for the response statusresponse-property-max-length-increased
- ▲
- ○
added the optional property
///////to the response with the statusresponse-optional-property-added
- ○
added the optional property
///////to the response with the statusresponse-optional-property-added
- ○
added the optional property
///////to the response with the statusresponse-optional-property-added
- ○
added the optional property
///////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added
subschema #1to the///////response propertyanyOflist for the response statusresponse-property-any-of-added
- ○
added
subschema #1to the////response propertyanyOflist for the response statusresponse-property-any-of-added
- ○
removed
subschema #1subschema #2from the///////response propertyanyOflist for the response statusresponse-property-any-of-removed
- ○
removed
subschema #1subschema #2from the////response propertyanyOflist for the response statusresponse-property-any-of-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the optional property
///////to the response with the statusresponse-optional-property-added
- ○
added the optional property
///////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○