Path parameters
-
id
string Required Format should match the following pattern:
^gen-
.
POST
/generation/jobs/{id}/cancel
curl \
--request POST 'https://api.kuaichuti.net/v1/generation/jobs/{id}/cancel' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"id": "gen-67d79d02e88e5d4493374a49",
"object": "generation",
"status": "cancelled",
"created_at": "2025-03-17T11:54:42.437+08:00",
"finished_at": null
}
Response examples (400)
{
"error": {
"type": "invalid_request_error",
"message": "Generation is already finished"
}
}
Response examples (404)
{
"error": {
"type": "invalid_request_error",
"message": "No such Generation job: gen-123"
}
}