Cancel

Cancel Batch

post

Cancel a batch. This is the equivalent of POST https://api.openai.com/v1/batches/{batch_id}/cancel

Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/cancel

Example Curl

curl http://localhost:4000/v1/batches/batch_abc123/cancel         -H "Authorization: Bearer sk-1234"         -H "Content-Type: application/json"         -X POST

Authorizations
Path parameters
batch_idstringrequired
providerany ofrequired

Responses
curl -L \
  --request POST \
  --url '/{provider}/v1/batches/{batch_id}/cancel' \
  --header 'Ocp-Apim-Subscription-Key: YOUR_API_KEY'

No Content