Overview
This endpoint allows you to check the current status of a video generation job. Use this to monitor progress and retrieve the final video when generation is complete.Authentication
This endpoint requires API key authentication. Include your API key in the
Authorization
header.Path Parameters
The job ID returned from the
/generation/start
endpoint.Response
The unique identifier for the generation job.
Current job status:
pending
: Job is queued and waiting to startprocessing
: Generation is in progresscompleted
: Generation finished successfullyfailed
: Generation failed
Progress percentage (0-100).
Description of the current processing step.
Available when status is
completed
:Available when status is
failed
:Example
Polling Best Practices
Recommended polling strategy:
- Start with a 5-second interval for the first minute
- Increase to 10-second intervals after 1 minute
- Increase to 30-second intervals after 5 minutes
- Use webhooks for more efficient status updates
Next Steps
Once your video generation is complete (status: "completed"
):
- Note the
video_id
from the result - Use the
/export/start
endpoint to export your video in the desired format - Monitor the export progress with
/export/status/{job_id}
Error Codes
Common error codes you might encounter:JOB_NOT_FOUND
: Job ID doesn’t existUNAUTHORIZED_JOB
: Job doesn’t belong to your spaceGENERATION_FAILED
: General generation failureSCRIPT_GENERATION_FAILED
: Failed to generate script from promptVOICE_GENERATION_FAILED
: Voice processing failedAVATAR_PROCESSING_FAILED
: Avatar preparation failedMEDIA_PROCESSING_FAILED
: Media file processing failedASSEMBLY_FAILED
: Final video assembly failed