Skip to content

How should I prevent the wrong source person being selected before a queued swap API request runs?

Persist approved actor mapping as part of the project record and reconstruct the prompt only from that approved version. Do not infer target from the latest thumbnail at dispatch.

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

Record the actual target

Use source revision, timestamp and visible cue, then tie the corresponding replacement reference to that row.

Keep the queue stable

If an editor reassigns a portrait after approval, separate the revised draft from the in-flight job and seek approval for any new attempt.

Review the outgoing payload

Compare stored source roles to the prompt and actual media IDs before submission. Post-generation, check the same marked event.

Pass condition

A later edit to the draft cannot silently swap the wrong actor in a paid dispatched job.

Sources

One task. A recoverable workflow.

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

Open API documentation