Video Tryon
Video Tryon is Segmind’s next-generation AI video model for instant virtual try-on, allowing users to visualize any outfit on any person in high-quality, fully-preserved motion up to 50 seconds.
API
If you're looking for an API, you can choose from your desired programming language.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import requests
import base64
# Use this function to convert an image file from the filesystem to base64
def image_file_to_base64(image_path):
with open(image_path, 'rb') as f:
image_data = f.read()
return base64.b64encode(image_data).decode('utf-8')
# Use this function to fetch an image from a URL and convert it to base64
def image_url_to_base64(image_url):
response = requests.get(image_url)
image_data = response.content
return base64.b64encode(image_data).decode('utf-8')
# Use this function to convert a list of image URLs to base64
def image_urls_to_base64(image_urls):
return [image_url_to_base64(url) for url in image_urls]
api_key = "YOUR_API_KEY"
url = "https://api.segmind.com/v1/video-tryon"
# Request payload
data = {
"prompt": "A woman dressed in a Superman costume poses in a futuristic city.",
"reference_img": image_url_to_base64("https://segmind-resources.s3.amazonaws.com/input/e8601820-8a4a-4fff-81fb-2c21f77363c3-f9162e73-0c8b-4c77-997f-87ec85fc8c02.png"), # Or use image_file_to_base64("IMAGE_PATH")
"input_video": "https://segmind-resources.s3.amazonaws.com/input/28386d68-f3d4-435d-8ab0-b07bb3609fb9-clideo_editor_7880b044c8704498ae9c43258a503d92.mp4",
"base_64": False
}
headers = {'x-api-key': api_key}
response = requests.post(url, json=data, headers=headers)
print(response.content) # The response is the generated image
Attributes
Guides video modification.
URL of the first frame of the video. This should be a modified version of the original first frame, it will be used to guide the video modification.
The source video URL. Use short MP4s under 50 seconds
Base64 encoding of the output
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Resources to get you started
Everything you need to know to get the most out of Video Tryon
Video Tryon by Segmind redefines virtual try-on technology, offering the most advanced AI-powered video solution for fashion and e-commerce. Instantly generate hyper-realistic videos to visualize any garment on any person—with seamless motion, perfect face and lip sync, and photorealistic details. Powered by Segmind’s proprietary architecture, Video Tryon supports up to 50 seconds per video (industry’s highest), enabling brands, retailers, and individual creators to showcase apparel, try outfits virtually, and enhance user engagement without the need for manual model photography or video shoots. Stand out with Video Tryon’s superior garment fitting, accurate style transfer, and next-gen video fidelity. Get unparalleled realism, flexibility, and speed—making Segmind Video Tryon the #1 choice for online fashion experiences, product visualization, and creative content generation. Optimize your fashion campaigns, boost conversion rates, and future-proof your business with the most trusted name in AI video virtual try-on technology.
Other Popular Models
Discover other models you might be interested in.
sdxl-controlnet
SDXL ControlNet gives unprecedented control over text-to-image generation. SDXL ControlNet models Introduces the concept of conditioning inputs, which provide additional information to guide the image generation process

storydiffusion
Story Diffusion turns your written narratives into stunning image sequences.

idm-vton
Best-in-class clothing virtual try on in the wild

face-to-many
Turn a face into 3D, emoji, pixel art, video game, claymation or toy
