Skip to content

How do I assign a reference clip and an image distinct roles in one video API request?

Treat the source clip's motion and the image's appearance as different inputs. Before generation, verify which media role each uploaded ID occupies in the API request.

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

Label each upload at creation

Record clip and portrait filenames under separate roles. Use the uploaded reference video's returned ID for reference_video_id and the eligible image ID for input_image_id.

Make the prompt reflect those roles

Name the original source performer with a stable visible cue. Say which appearance should change and which actions or camera behavior should stay.

Freeze the exact request

Quote the same asset IDs, output size and requested seconds you intend to send. Keep the source and image mapping for result review.

Pass condition

The paid payload and the saved approval agree about which file supplies motion and which supplies appearance.

Sources

One task. A recoverable workflow.

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

Open API documentation