Cancels a model response with the given ID. Only responses created with the `background` parameter set to `true` can be cancelled. [Learn more](/docs/guides/background).
Path parameters
The ID of the response to cancel.
Response
OK
Example response
{
"id": "resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41",
"object": "response",
"created_at": 1741476777,
"status": "completed",
"completed_at": 1741476778,
"error": null,
"incomplete_details": null,
"instructions": null,
"max_output_tokens": null,
"model": "gpt-5.6-sol",
"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 13 of the 84 revisions of this API.2135100
- ●
removed the optional property
allOf[subschema #3]/instructions/anyOf[subschema #1]/oneOf[subschema #2: Input item list]/items/oneOf[subschema #2: Item]/oneOf[AdditionalToolsItemParam]/prompt_cache_breakpointfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
allOf[subschema #3]/output/items/oneOf[AdditionalTools]/prompt_cache_breakpointfrom the response with the200statusresponse-optional-property-removed
- ●
- ○
added the optional property
allOf[subschema #3]/instructions/anyOf[subschema #1]/oneOf[subschema #2: Input item list]/items/oneOf[subschema #2: Item]/oneOf[AdditionalToolsItemParam]/prompt_cache_breakpointto the response with the200statusresponse-optional-property-added
- ○
added the optional property
allOf[subschema #3]/output/items/oneOf[AdditionalTools]/prompt_cache_breakpointto the response with the200statusresponse-optional-property-added
- ○
- ○
added the optional property
allOf[subschema #3]/usage/compute_unitsto the response with the200statusresponse-optional-property-added
- ○
- ○
added the optional property
allOf[subschema #3]/instructions/anyOf[subschema #1]/oneOf[subschema #2: Input item list]/items/oneOf[subschema #3: Compaction trigger]/idto the response with the200statusresponse-optional-property-added
- ○
- ●
added the new
gpt-image-2enum value to theallOf[ResponseProperties]/tools/items/oneOf[subschema #9: Image generation tool]/model/anyOf[subschema #2]/response property for the response status200response-property-enum-value-added
- ●
added the new
gpt-image-2enum value to theallOf[subschema #3]/instructions/anyOf[subschema #1]/oneOf[subschema #2: Input item list]/items/oneOf[subschema #2: Item]/oneOf[AdditionalToolsItemParam]/tools/items/oneOf[subschema #9: Image generation tool]/model/anyOf[subschema #2]/response property for the response status200response-property-enum-value-added
- ●
added the new
gpt-image-2enum value to theallOf[subschema #3]/instructions/anyOf[subschema #1]/oneOf[subschema #2: Input item list]/items/oneOf[subschema #2: Item]/oneOf[ToolSearchOutputItemParam]/tools/items/oneOf[subschema #9: Image generation tool]/model/anyOf[subschema #2]/response property for the response status200response-property-enum-value-added
- ●
added the new
gpt-image-2enum value to theallOf[subschema #3]/output/items/oneOf[AdditionalTools]/tools/items/oneOf[subschema #9: Image generation tool]/model/anyOf[subschema #2]/response property for the response status200response-property-enum-value-added
- ●
added the new
gpt-image-2enum value to theallOf[subschema #3]/output/items/oneOf[ToolSearchOutput]/tools/items/oneOf[subschema #9: Image generation tool]/model/anyOf[subschema #2]/response property for the response status200response-property-enum-value-added
- ●
added the new
gpt-image-2-2026-04-21enum value to theallOf[ResponseProperties]/tools/items/oneOf[subschema #9: Image generation tool]/model/anyOf[subschema #2]/response property for the response status200response-property-enum-value-added
- ●
added the new
gpt-image-2-2026-04-21enum value to theallOf[subschema #3]/instructions/anyOf[subschema #1]/oneOf[subschema #2: Input item list]/items/oneOf[subschema #2: Item]/oneOf[AdditionalToolsItemParam]/tools/items/oneOf[subschema #9: Image generation tool]/model/anyOf[subschema #2]/response property for the response status200response-property-enum-value-added
- ●
added the new
gpt-image-2-2026-04-21enum value to theallOf[subschema #3]/instructions/anyOf[subschema #1]/oneOf[subschema #2: Input item list]/items/oneOf[subschema #2: Item]/oneOf[ToolSearchOutputItemParam]/tools/items/oneOf[subschema #9: Image generation tool]/model/anyOf[subschema #2]/response property for the response status200response-property-enum-value-added
- ●
added the new
gpt-image-2-2026-04-21enum value to theallOf[subschema #3]/output/items/oneOf[AdditionalTools]/tools/items/oneOf[subschema #9: Image generation tool]/model/anyOf[subschema #2]/response property for the response status200response-property-enum-value-added
- ●
added the new
gpt-image-2-2026-04-21enum value to theallOf[subschema #3]/output/items/oneOf[ToolSearchOutput]/tools/items/oneOf[subschema #9: Image generation tool]/model/anyOf[subschema #2]/response property for the response status200response-property-enum-value-added
- ●
- ▲
the
allOf[subschema #3]/instructions/anyOf[subschema #1]/oneOf[subschema #2: Input item list]/items/oneOf[subschema #2: Item]/oneOf[subschema #13: Compaction item]/encrypted_contentresponse property's maxLength was increased from10485760to20971520for the response status200response-property-max-length-increased
- ▲
- ○
removed
subschema #1from theallOf[subschema #3]/instructions/anyOf[subschema #1]/oneOf[subschema #2: Input item list]/items/oneOf[subschema #2: Item]/oneOf[subschema #25: MCP tool call]/errorresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
removed
subschema #1from theallOf[subschema #3]/output/items/oneOf[subschema #23: MCP tool call]/errorresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
- ○
added
MCPToolCallErrorto theallOf[subschema #3]/instructions/anyOf[subschema #1]/oneOf[subschema #2: Input item list]/items/oneOf[subschema #2: Item]/oneOf[subschema #25: MCP tool call]/errorresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
MCPToolCallErrorto theallOf[subschema #3]/output/items/oneOf[subschema #23: MCP tool call]/errorresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
- ●
removed the optional property
allOf[ModelResponseProperties]/service_tierfrom the response with the200statusresponse-optional-property-removed
- ●
added the new
gpt-5.5-2026-04-23enum value to theallOf[ResponseProperties]/model/anyOf[ModelIdsShared]/anyOf[subschema #2]/response property for the response status200response-property-enum-value-added
- ●
added the new
gpt-5.5-proenum value to theallOf[ResponseProperties]/model/anyOf[subschema #2: ResponsesOnlyModel]/response property for the response status200response-property-enum-value-added
- ●
added the new
gpt-5.5-pro-2026-04-23enum value to theallOf[ResponseProperties]/model/anyOf[subschema #2: ResponsesOnlyModel]/response property for the response status200response-property-enum-value-added
- ○
added the optional property
allOf[ResponseProperties]/tools/items/oneOf[subschema #5: Web search]/external_web_accessto the response with the200statusresponse-optional-property-added
- ○
added the optional 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 #5: Web search]/external_web_accessto the response with the200statusresponse-optional-property-added
- ○
added the optional 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 #5: Web search]/external_web_accessto the response with the200statusresponse-optional-property-added
- ○
added the optional property
allOf[subschema #3]/output/items/oneOf[AdditionalTools]/tools/items/oneOf[subschema #5: Web search]/external_web_accessto the response with the200statusresponse-optional-property-added
- ○
added the optional property
allOf[subschema #3]/output/items/oneOf[ToolSearchOutput]/tools/items/oneOf[subschema #5: Web search]/external_web_accessto the response with the200statusresponse-optional-property-added
- ○
added the optional property
allOf[subschema #3]/service_tierto the response with the200statusresponse-optional-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●