For a current MiniMax-H3 video task, retain the task identifier returned at creation, query the V2 task endpoint, and read the result URL from the completed task object. This workflow does not require the legacy file_id and file-retrieval sequence.
Other candidates to compare
Runway offers video-generation tools and an API, providing another candidate alongside MiniMax. Compare the selected models on supported inputs, duration, resolution, task states and cost. Verify features such as end frames, cancellation and reference inputs individually rather than transferring one API’s behavior to another.
Query the existing task
Send an authenticated GET request to /v2/query/video_generation/{task_id} using the same regional account as creation. The international host is api.minimax.io. The task query documentation shows a task object containing status and, after success, content.url.
After integrating and authenticating with the MiniMax Open Platform API, query an existing H3 video task by its task identifier and save task.content.url only after task.status reports succeeded.
Branch on the remote state
When task.status is queued or running, retain the identifier and schedule another bounded status check. When it is succeeded, validate task.content.url before starting a download. When it is failed or cancelled, stop normal polling and store the returned diagnostic information or cancellation state.
An HTTP timeout is a transport observation, not a terminal generation state. Retry read-only status requests with backoff and jitter. Respect server rate-limit responses and put a maximum duration on the local polling loop; an expired local wait can remain resumable without claiming that the remote job failed.
Persist the output independently
Download the returned URL from a backend with restricted outbound access and appropriate URL validation. Check the response code, media type, file size, and whether the media can actually be decoded. A successful generation response and a successfully stored asset are separate checkpoints.
Write to a temporary object or file, verify it, and then update the business record with a stable storage key. Retain the provider task ID, model, final state, retrieval time, and any returned usage information. Treat the returned URL as a retrieval location rather than a permanent archive guarantee.
Resume without duplicate generation
If downloading or database persistence fails, resume from the completed task and existing output. Do not create another generation job simply because the download was interrupted. Use one application output record per task and make repeated success notifications converge on it.
If creation timed out before a task identifier was saved, keep an unresolved submission record. An invented identifier cannot recover that job, and blind submission retries can produce additional billable work. Reconcile available task records before deciding whether a new request is necessary.
Top comments (0)