Skip to main content
POST
/
batches
/
{batch_id}
/
cancel
Cancel a specific batch
curl --request POST \
  --url https://api.siliconflow.cn/v1/batches/{batch_id}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "id": "batch_rdyqgrcgjg",
  "object": "batch",
  "endpoint": "/v1/chat/completions",
  "errors": null,
  "input_file_id": "file-jkvytbjtow",
  "completion_window": "24h",
  "status": "in_queue",
  "output_file_id": null,
  "error_file_id": null,
  "created_at": 1741685413,
  "in_progress_at": null,
  "expires_at": 1741771813,
  "finalizing_at": null,
  "completed_at": null,
  "failed_at": null,
  "expired_at": null,
  "cancelling_at": null,
  "cancelled_at": null,
  "request_counts": null,
  "metadata": {
    "description": "nightly eval job"
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

batchId
string
required

Response

id
string
Example:
object
string
Example:
endpoint
string
Example:
errors
string[]
Example:
input_file_id
string
Example:
completion_window
string
Example:
status
string
Example:
output_file_id
string
Example:
error_file_id
string
Example:
created_at
integer
Example:
in_progress_at
integer
Example:
expires_at
integer
Example:
finalizing_at
integer
Example:
completed_at
integer
Example:
failed_at
integer
Example:
expired_at
integer
Example:
cancelling_at
integer
Example:
cancelled_at
integer
Example:
request_counts
object
Example:
metadata
object