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 start
processing: Generation is in progress
completed: Generation finished successfully
failed: Generation failed
Progress percentage (0-100).
Description of the current processing step.
Available when status is completed: Unique identifier for the generated video.
Actual video duration in seconds.
Actual credits consumed for generation.
ISO timestamp when generation completed.
Available when status is failed: Error code describing the failure reason.
Human-readable error message.
Example
curl -X GET "https://app.axeimmo.com/api/public/v1/generation/status/run_abcd1234" \
-H "Authorization: Bearer your_api_key"
Pending
Processing
Completed
Failed
Error 404 - Job Not Found
Error 403 - Unauthorized Job
{
"job_id" : "run_abcd1234" ,
"status" : "pending" ,
"progress_step" : 0 ,
"current_step" : "QUEUE"
}
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 exist
UNAUTHORIZED_JOB: Job doesn’t belong to your space
GENERATION_FAILED: General generation failure
SCRIPT_GENERATION_FAILED: Failed to generate script from prompt
VOICE_GENERATION_FAILED: Voice processing failed
AVATAR_PROCESSING_FAILED: Avatar preparation failed
MEDIA_PROCESSING_FAILED: Media file processing failed
ASSEMBLY_FAILED: Final video assembly failed