Cancels an async request. Only requests with QUEUED status may be canceled. Rate limited to 20 requests per second.
QUEUED
cURL
curl --request DELETE \ --url https://model-{model_id}.api.baseten.co/async_request/{request_id} \ --header 'Authorization: <api-key>'
{ "request_id": "<string>", "canceled": true, "message": "<string>" }
API key with the Api-Key prefix, e.g. Authorization: Api-Key abcd1234.abcd1234.
Api-Key
Authorization: Api-Key abcd1234.abcd1234
The ID of the async request.
Result of an async request cancellation.
Whether the request was canceled.
Additional details about whether the request was canceled.
Was this page helpful?