Input
POST https://gateway.appypie.com/virtual-tryon/v1/r-vton HTTP/1.1

Content-Type: application/json
Cache-Control: no-cache

{
    "category": "upper_body",
    "garm_img": "https://replicate.delivery/pbxt/KgwTlZyFx5aUU3gc5gMiKuD5nNPTgliMlLUWx160G4z99YjO/sweater.webp",
    "human_img": "https://replicate.delivery/pbxt/KgwTlhCMvDagRrcVzZJbuozNJ8esPqiNAIJS3eMgHrYuHmW4/KakaoTalk_Photo_2024-04-04-21-44-45.png",
    "crop": true,
    "seed": 40,
    "steps": 30,
    "force_dc": false,
    "mask_only": false,
    "garment_des": "cute pink sweatshirt"
}
import urllib.request, json

try:
    url = "https://gateway.appypie.com/virtual-tryon/v1/r-vton"

    hdr ={
    # Request headers
    'Content-Type': 'application/json',
    'Cache-Control': 'no-cache',
    }

    # Request body
    data =  
    data = json.dumps(data)
    req = urllib.request.Request(url, headers=hdr, data = bytes(data.encode("utf-8")))

    req.get_method = lambda: 'POST'
    response = urllib.request.urlopen(req)
    print(response.getcode())
    print(response.read())
    except Exception as e:
    print(e)
// Request body
const body = {
    "category": "upper_body",
    "garm_img": "https://replicate.delivery/pbxt/KgwTlZyFx5aUU3gc5gMiKuD5nNPTgliMlLUWx160G4z99YjO/sweater.webp",
    "human_img": "https://replicate.delivery/pbxt/KgwTlhCMvDagRrcVzZJbuozNJ8esPqiNAIJS3eMgHrYuHmW4/KakaoTalk_Photo_2024-04-04-21-44-45.png",
    "crop": true,
    "seed": 40,
    "steps": 30,
    "force_dc": false,
    "mask_only": false,
    "garment_des": "cute pink sweatshirt"
};

fetch('https://gateway.appypie.com/virtual-tryon/v1/r-vton', {
        method: 'POST',
        body: JSON.stringify(body),
        // Request headers
        headers: {
            'Content-Type': 'application/json',
            'Cache-Control': 'no-cache',}
    })
    .then(response => {
        console.log(response.status);
        console.log(response.text());
    })
    .catch(err => console.error(err));
curl -v -X POST "https://gateway.appypie.com/virtual-tryon/v1/r-vton" -H "Content-Type: application/json" -H "Cache-Control: no-cache" --data-raw "{
    \"category\": \"upper_body\",
    \"garm_img\": \"https://replicate.delivery/pbxt/KgwTlZyFx5aUU3gc5gMiKuD5nNPTgliMlLUWx160G4z99YjO/sweater.webp\",
    \"human_img\": \"https://replicate.delivery/pbxt/KgwTlhCMvDagRrcVzZJbuozNJ8esPqiNAIJS3eMgHrYuHmW4/KakaoTalk_Photo_2024-04-04-21-44-45.png\",
    \"crop\": true,
    \"seed\": 40,
    \"steps\": 30,
    \"force_dc\": false,
    \"mask_only\": false,
    \"garment_des\": \"cute pink sweatshirt\"
}"
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
import java.io.UnsupportedEncodingException;
import java.io.DataInputStream;
import java.io.InputStream;
import java.io.FileInputStream;

public class HelloWorld {

  public static void main(String[] args) {
    try {
        String urlString = "https://gateway.appypie.com/virtual-tryon/v1/r-vton";
        URL url = new URL(urlString);
        HttpURLConnection connection = (HttpURLConnection) url.openConnection();

        //Request headers
    connection.setRequestProperty("Content-Type", "application/json");
    
    connection.setRequestProperty("Cache-Control", "no-cache");
    
        connection.setRequestMethod("POST");

        // Request body
        connection.setDoOutput(true);
        connection
            .getOutputStream()
            .write(
             "{ \"category\": \"upper_body\", \"garm_img\": \"https://replicate.delivery/pbxt/KgwTlZyFx5aUU3gc5gMiKuD5nNPTgliMlLUWx160G4z99YjO/sweater.webp\", \"human_img\": \"https://replicate.delivery/pbxt/KgwTlhCMvDagRrcVzZJbuozNJ8esPqiNAIJS3eMgHrYuHmW4/KakaoTalk_Photo_2024-04-04-21-44-45.png\", \"crop\": true, \"seed\": 40, \"steps\": 30, \"force_dc\": false, \"mask_only\": false, \"garment_des\": \"cute pink sweatshirt\" }".getBytes()
             );
    
        int status = connection.getResponseCode();
        System.out.println(status);

        BufferedReader in = new BufferedReader(
            new InputStreamReader(connection.getInputStream())
        );
        String inputLine;
        StringBuffer content = new StringBuffer();
        while ((inputLine = in.readLine()) != null) {
            content.append(inputLine);
        }
        in.close();
        System.out.println(content);

        connection.disconnect();
    } catch (Exception ex) {
      System.out.print("exception:" + ex.getMessage());
    }
  }
}
$url = "https://gateway.appypie.com/virtual-tryon/v1/r-vton";
$curl = curl_init($url);

curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

# Request headers
$headers = array(
    'Content-Type: application/json',
    'Cache-Control: no-cache',);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

# Request body
$request_body = '{
    "category": "upper_body",
    "garm_img": "https://replicate.delivery/pbxt/KgwTlZyFx5aUU3gc5gMiKuD5nNPTgliMlLUWx160G4z99YjO/sweater.webp",
    "human_img": "https://replicate.delivery/pbxt/KgwTlhCMvDagRrcVzZJbuozNJ8esPqiNAIJS3eMgHrYuHmW4/KakaoTalk_Photo_2024-04-04-21-44-45.png",
    "crop": true,
    "seed": 40,
    "steps": 30,
    "force_dc": false,
    "mask_only": false,
    "garment_des": "cute pink sweatshirt"
}';
curl_setopt($curl, CURLOPT_POSTFIELDS, $request_body);

$resp = curl_exec($curl);
curl_close($curl);
var_dump($resp);
Output
virtual-tryon

Virtual Try-On: Experience the Future of Shopping with Appy Pie's Virtual Try-On

meta

Shopping has taken a giant leap forward with technology, and Appy Pie’s Virtual Try-On is at the forefront of this transformation. Offering an innovative AI clothes changer, this cutting-edge tool allows shoppers to explore various outfits from the comfort of their homes. The virtual try-on feature provides a highly realistic and engaging experience, enabling users to visualize different styles effortlessly. With the AI dress changer, users can try on different looks seamlessly, boosting their confidence in finding the perfect fit without any hassle. This tool enhances the shopping journey by making it easy and enjoyable to experiment with multiple outfits, helping users save time while exploring their personal style. By utilizing the free cloth AI changer, shoppers can try out different combinations and get inspired, creating a more immersive and satisfying online shopping experience. Furthermore, this technology helps users avoid the inconvenience of returns, making it a win-win solution for both shoppers and businesses.

This advanced AI clothes changer free option unlocks endless possibilities for creativity, allowing users to swap outfits, change clothes, and redefine their style—all with just a few clicks. The cloth change AI technology ensures a lifelike and seamless experience, enabling users to see themselves in their chosen outfits with remarkable precision. Businesses can take advantage of this innovative tool by integrating Appy Pie’s Virtual Try-On API into their platforms. By doing so, they can offer customers an interactive, personalized, and futuristic shopping experience that surpasses traditional retail limitations. With this feature, e-commerce platforms can stand out, deliver unparalleled customer satisfaction, and redefine the way people shop online, ensuring greater engagement and conversion rates.

How to Transform Online Shopping with Appy Pie’s Virtual Try-On API?

To use Appy Pie’s Virtual Try-On API, follow these simple steps to integrate this innovative technology into your platform:

generate_01

Sign Up and Access the API

Begin by signing up on Appy Pie API’s platform. Once registered, navigate to the Virtual Try-On API section and obtain your unique API key. This key is crucial for accessing the API's features.

generate_02

Integrate the API

Using the provided documentation, integrate the Virtual Try-On API into your website or mobile app. The API can be integrated into various programming languages and frameworks, making it versatile for different platforms.

generate_03

Upload or Capture User Image

Allow users to upload a clear image of themselves or use a live camera feed. This image will be used for the AI clothes changer feature, enabling the virtual try-on experience.

generate_04

Select Outfits

Provide a selection of outfits or designs that users can choose from. The Virtual Try-On API uses AI technology to adapt the chosen outfit onto the user’s image seamlessly, creating a realistic try-on experience.

generate_01

Preview and Adjust

Users can preview the outfits in real-time and make adjustments as needed. The cloth change AI technology ensures the outfit fits accurately on the user's image.

generate_04

Save or Share

Offer options for users to save their try-on images or share them directly on social media, making their shopping experience more interactive and engaging.

Use Cases of Appy Pie’s Virtual Try-On API

cases_1

E-Commerce Fashion Stores

Integrating the Virtual Try-On API allows fashion e-commerce stores to offer customers a personalized shopping experience. Shoppers can visualize themselves in different outfits, accessories, or even makeup products, making it easier to decide on purchases without physically trying on items. This feature significantly reduces return rates and boosts customer confidence in online shopping.

cases_2

Jewelry and Accessories Retailers

Jewelry and accessory retailers can use the API to enable customers to virtually try on rings, necklaces, bracelets, and more. By allowing users to see how these items look on them before purchasing, the shopping experience becomes more interactive and engaging, leading to increased sales and customer satisfaction.

cases_3

Eyewear Brands

Eyewear brands can leverage the Virtual Try-On API to let customers try different frames, styles, and colors of glasses. This makes the selection process more convenient and helps customers find the perfect pair that complements their face shape, ultimately enhancing the online eyewear shopping experience.

cases_4

Footwear Brands

Footwear brands can use this technology to provide a virtual fitting experience. Shoppers can see how different shoes look on their feet, whether it’s sneakers, boots, or heels, without having to visit a physical store. This immersive experience helps customers make informed decisions and fosters a stronger connection with the brand.

cases_5

Beauty and Cosmetics Brands

Beauty brands can integrate the Virtual Try-On API to let customers experiment with different makeup products, such as lipsticks, eyeshadows, and foundation shades, in real-time. This makes the shopping experience more interactive and allows customers to find products that best match their preferences and skin tones.

cases_6

Retailers Offering Custom Apparel

Businesses offering custom apparel can use the Virtual Try-On API to let customers visualize their personalized designs, such as T-shirts, hoodies, or jackets. It helps customers get a better sense of how their custom designs will look when worn, reducing uncertainty and enhancing their satisfaction.

Top Trending Generative AI APIs

 

Maximize the potential of your projects with our Generative AI APIs. From video generation & image creation to text generation, animation, 3D modeling, prompt generation, image restoration, and code generation, our advanced APIs cover all aspects of generative AI to meet your needs.