API reference

API reference · API

Stop a video job

POST/v1/videos/{id}/cancelAPI key

Asks the provider to stop it. One the provider never made is released and costs nothing; one it finishes anyway is billed as made. A job at a provider that documents no cancel (Alibaba's Wan, MiniMax's Hailuo) answers 409 not_cancellable and runs to its end, billed as made.

Parameters

Path and query parameters
FieldTypeWhat it is
id (path)requiredstringThe job's id.

Answer 200

The job as it stands.

Fields of the 200 answer
FieldTypeWhat it is
idrequiredstringvideo_, sound_, mesh_ or still_ then 24 hex digits.
objectrequiredstringOne of "video", "sound", "mesh", "still".
modelrequiredstring
statusrequiredstringOne of "queued", "in_progress", "completed", "failed", "cancelled".
progressinteger0 until completed, then 100.
created_atrequiredinteger
completed_atinteger or null
expires_atinteger or nullWhen the file stops being fetchable: 60 minutes after completion.
promptstring or null
secondsstring
sizestring
resolutionstring
aspect_ratiostring
audioboolean
reference_countintegerHow many reference pictures it was sent; the pictures are not kept.
content_typestring or null
hold_microsrequiredintegerThe worst case held while it runs.
cost_microsinteger or nullWhat it was billed, never past the hold.
cancel_requestedboolean
errorobject or nullgeneration_failed, deadline_exceeded, provider_unanswered (billed its hold), submit_lost or model_unavailable.
error.codestring
error.messagestring

Errors

  • 404OpenAI shaped error.
  • 409OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter