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 sk-1234"

# Cancel provider response
curl -X POST http://localhost:4000/v1/responses/resp_abc123/cancel     -H "Authorization: Bearer sk-1234"
post/openai/v1/responses/{response_id}/cancel

Request

  • Base URL: https://apiclaw.biz (the document declares no server; this is the origin it was published from)
  • URL: https://apiclaw.biz/openai/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.