Jobs
Create an asynchronous job with uploaded task IDs and text prompts, then poll until it finishes. Request and response fields live in the API reference under createJob, listJobs, and retrieveJob.
Create a job
Video jobs take exactly one task ID and use scoreThreshold, fps or numFrames, and maxFrames instead of the image thresholds. Sending a field that does not belong to the job type returns 400.
Unbilled accounts may submit one to three JPEG, PNG, or WebP images per job. Video and larger batches need paid access. See the free API trial.
Status
retrieveJob returns queued → processing → success or failed per task. It never includes masks. When status is success, go to results.
Start polling after a couple of seconds. Back off up to about 10 seconds between calls. Most image jobs finish in under 30 seconds.