Skip to content

Why does the video API job use the wrong portrait even though all uploads succeeded?

A successful upload establishes that the service received a file. It does not establish the role the generation request assigned to it. Inspect the final request's reference order and safe asset identifiers against the intended source and replacement pair.

SHIP A RELIABLE INTEGRATIONAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval

Log the final assignment

Record the original role label, input asset identifier and each replacement reference slot before dispatch. Retain the logical assignment even when upload workers finish in a different order.

Reproduce without sending a paid request

Feed a test response where the second upload finishes first. Confirm that your code still builds the correct role mapping and that the approval preview uses the same data.

Example

Presenter and Listener both upload correctly, but a Promise completion list reverses the two references. A test where the smaller Listener file finishes first reveals the bug without sending media to a model.

Pass condition

Changing upload completion order does not change the approved role assignment or dispatch preview.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation