Virtual Try-On API

Virtually try on clothing with a few lines of code

Virtual Try-On Example
Python SDK See docs
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)
API See docs
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",
    },
)