Video modelsAPI referenceStop a generation job

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}

Path Parameters

job_id*Job Id

Query Parameters

queued_only?boolean

When true, stop the job only while it is still queued. If generation has started, the API returns 409 and does not stop the job.

Response Body

Request succeeded

application/json
  1. response
job_status?|null
ok?Ok
Defaulttrue

On this page