Back to Templates

Generate 360° Virtual Try-on Videos for Clothing with Kling API (unofficial)

Created by

Created by: PiAPI || piapi

PiAPI

Last update

Last update 2 months ago

Share


What's the workflow used for?

Leverage this Kling API (unofficial) provided by PiAPI workflow to streamline virtual try-on video creation. This tool is designed for e-commerce platforms, fashion brands, content creators and content influencers. By uploading model and clothing images and linking PiAPI account, users can swiftly generate a realistic video of the model sporting the outfit with a 360° turn, offering an immersive viewing experience.

Step-by-step Instruction

For basic settings of virtual try-on, check API doc to get best practice.

  1. Fill in your X-API-Key of your PiAPI account in Preset Parameters node.image
  2. Upload the model photo and provide target clothing image urls.
  3. Click Test Workflow to generate virtual try-on image.
  4. Get the video output in the final node.

Param Settings

  1. If you want to change into a dress, input the model_input URL and the dress_input URL in the parameters.
  2. If you want to change into separates, input model_input URL, upper_input URL and lower_input URL in Preset Parameters.
    example

Use Case

Input images:
model
dress

Output Video
<video src="https://static.piapi.ai/n8n-instruction/virtual-try-on/example1.mp4" controls />
The output demonstrates that the model is wearing the clothing from the specified image and showcases a rotating runway-style view.

This workflow enables you to efficiently test garment-on-model presentation effects while reducing business model validation costs to a certain extent.