1.
Submit a video-generation request and save Resp.video_id.
2.
Poll the same video_id every 3-5 seconds while the task is processing.
3.
Treat the task as complete only when status=1 and Resp.url is accessible.
4.
Stop polling after a terminal failure and review the request before creating a new task.
Use a new Ai-trace-id for every status request.
Do not submit a duplicate generation request only because processing takes longer than expected.
Preserve the original video_id, request time, HTTP status, ErrCode, and Ai-trace-id when contacting support.
For failed tasks, verify any applicable refund in the account ledger before treating reconciliation as complete.