Jobs
Cancel a job
Changed onAbort a job. A job that is still queued, being sent, uploading references or waiting for its next attempt is cancelled at once and nothing is charged. A job that is already rendering is stopped at the provider where the provider allows it; some providers (BytePlus) refuse to stop a task that has started — then the call returns 409 and the job completes and is charged as usual. A job that is already terminal is returned unchanged.
post/jobs/{id}/cancel
Request
- Base URL: https://api.varg.ai/v2
- URL: https://api.varg.ai/v2/jobs/{id}/cancel
- Auth: HTTP bearer
Path parameters
idstring required
Response
The cancelled job
Example response
{
"id": "job_a1b2c3d4e5f6",
"attempts": [
{
"n": 1,
"provider": "byteplus",
"model_key": "byteplus:dreamina-seedance-2-5-260628",
"reason": "real person in the reference images"
}
],
"tool": "tool_2001a2b3c4d5",
"tool_key": "video",
"output": {
"outputs": [
{
"media_type": "video/mp4"
}
]
},
"progress_message": "stitching 3/8 (40%)",
"step_state": {
"current_step": "extend"
},
"pricing": {
"billed_units": {
"images": 1
}
},
"provider": "fal",
"provider_model": "fal:flux_schnell"
}Changes
- info
added the required property
to the response with the status
- info
- info
endpoint added
- info