Stop a generation job
Stop a generation job of your account. If the job is stopped before generation starts, the reserved credits are refunded in full; if generation has started, they are not refunded. Pass queued_only=true to stop the job only while it is still queued. Repeated requests incur no extra charge.
Authentication
API Key: X-API-Key: <API Key> or Authorization: Bearer <API Key>.
Credentials in the examples are placeholders. Replace them and run the examples on your server.
Code examples
curl -X POST 'https://shixux.com/api/v1/jobs/job_id_example/cancel' \ -H 'X-API-Key: yb_xxx_yyy'{ "job_status": "queued", "ok": true}job_id*Job Idqueued_only?booleanWhen true, stop the job only while it is still queued. If generation has started, the API returns 409 and does not stop the job.
Request succeeded
application/json- response
job_status?|nullok?OkDefault
true