Virtually try on clothing with a few lines of code
from vto import VirtualTryOnAPI
vto = VirtualTryOnAPI(api_key="YOUR API KEY")
result = vto.generate(model_image_path="img/kim.jpg",
garment_image_path="img/red.jpg",
category="one-pieces")
print(result)
import requests
response = requests.post(
"https://vto.face-swap.co/run",
headers={"Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
json={
"model_image": "https://huggingface.co/spaces/tonyassi/Virtual-Try-On-Pro/resolve/main/examples/kim1.jpg",
"garment_image": "https://huggingface.co/spaces/tonyassi/Virtual-Try-On-Pro/resolve/main/examples/kim2.jpg",
"category": "one-pieces",
},
)
Get a free trial key sent to your email