responses
Cancel Response
Cancel a response by ID.
Supports both:
- Polling IDs (litellm_poll_*): Cancels background response and updates status in Redis
- Provider response IDs: Passes through to provider API
Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/cancel
# Cancel polling response
curl -X POST http://localhost:4000/v1/responses/litellm_poll_abc123/cancel -H "Authorization: Bearer $LITELLM_MASTER_KEY"
# Cancel provider response
curl -X POST http://localhost:4000/v1/responses/resp_abc123/cancel -H "Authorization: Bearer $LITELLM_MASTER_KEY"
post/v1/responses/{response_id}/cancel
Request
- Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
- URL: https://docs.litellm.com.cn/v1/responses/{response_id}/cancel
- Auth: API key in header x-litellm-api-key
Path parameters
response_idstring required
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.