generate-video 409s: preview_not_ready vs preview_image_not_ready

generate-video on an avatar preview can return two 409s: the job is unfinished, or a public preview image is missing. How to tell them apart.

3 min readSume
All posts

Two checks before the final render

POST /v1/avatar-video-previews/:id/generate-video turns an approved preview into the final video. Before it submits, the API runs two checks, and each has its own 409.

The two generate-video 409s
CodeTriggerDetails returned
avatar_video_preview_not_readyThe preview job is not completedavatar_video_preview_id and the job status
avatar_video_preview_image_not_readyPreview finished but no public preview image yet, or a multi-scene preview misses an image for some sceneavatar_video_preview_id

Reading the first one

The message is: Avatar video preview must be completed before generating the final video. The status in details tells you whether the job is still queued or processing, or ended failed. If failed, regenerate the preview rather than waiting.

Reading the second one

The message is: Avatar video preview does not include a public preview image yet. For multi-scene plans the check is stricter: with more than one scene, every scene needs its own public image. Fetch the preview resource again after a short delay and retry when preview_image_url is present.

curl https://api.sume.com/v1/avatar-video-previews/$PREVIEW_ID \
  -H "Authorization: Bearer $SUME_API_KEY"

Retry rule

Both errors are about timing, not a bad request. Read the preview, wait for completion and an image URL, then call generate-video again with the same Idempotency-Key you intended to use.

Sources

Related posts

More in Developers

All Developers posts

Written by Sume