Input
POST https://gateway.appypie.com/kling-ai-vton/v1/getVirtualTryOnTask HTTP/1.1

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

{
    "human_image": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/vt_human.jpg",
    "cloth_image": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/vt_top.jpeg",
    "callback_url": ""
}
import urllib.request, json

try:
    url = "https://gateway.appypie.com/kling-ai-vton/v1/getVirtualTryOnTask"

    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 = {
    "human_image": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/vt_human.jpg",
    "cloth_image": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/vt_top.jpeg",
    "callback_url": ""
};

fetch('https://gateway.appypie.com/kling-ai-vton/v1/getVirtualTryOnTask', {
        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/kling-ai-vton/v1/getVirtualTryOnTask" -H "Content-Type: application/json" -H "Cache-Control: no-cache" --data-raw "{
    \"human_image\": \"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/vt_human.jpg\",
    \"cloth_image\": \"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/vt_top.jpeg\",
    \"callback_url\": \"\"
}"
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/kling-ai-vton/v1/getVirtualTryOnTask";
        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(
             "{ \"human_image\": \"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/vt_human.jpg\", \"cloth_image\": \"https://pub-582b7213209642b9b995c96c95a30381.r2.dev/vt_top.jpeg\", \"callback_url\": \"\" }".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/kling-ai-vton/v1/getVirtualTryOnTask";
$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 = '{
    "human_image": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/vt_human.jpg",
    "cloth_image": "https://pub-582b7213209642b9b995c96c95a30381.r2.dev/vt_top.jpeg",
    "callback_url": ""
}';
curl_setopt($curl, CURLOPT_POSTFIELDS, $request_body);

$resp = curl_exec($curl);
curl_close($curl);
var_dump($resp);
Output
Kolors VTON

Kolors Virtual Try-On: Online Clothes Changer & Virtual Outfit Try-On

meta

Kolors Virtual Try-On by Kling AI is a game-changing solution for enhancing online shopping experiences. This online clothes changer allows customers to try on outfits and accessories virtually, providing a realistic and seamless way to visualize styles and fits in real-time. Powered by advanced AI technology, it delivers lifelike previews, helping shoppers make confident purchasing decisions. With its virtual outfit try-on capabilities, users can explore different styles, colors, and combinations effortlessly, personalizing their shopping journey. This innovative feature not only improves customer engagement but also helps reduce return rates by enabling shoppers to make informed choices.

Ideal for the e-commerce, fashion, and retail industries, the Kolors Virtual Try-On provides real-time visualization and customizable interactions that replicate an in-store experience online. Businesses can leverage this AI clothes changer to boost conversions and customer satisfaction while offering a tailored, interactive shopping experience. By integrating the Kolors Virtual Try-On through our API into their website, retailers can stay ahead of the competition, delivering a convenient, engaging, and futuristic shopping platform. This technology empowers brands to redefine online shopping with authenticity and personalization, ensuring a memorable and engaging customer journey that drives results.

How to Enhance Your Online Store with Kolors Virtual Try-On APIs

generate_01

Sign Up and Access the API

To gain access, start by registering on the Kolors API platform. Once registered, navigate to the Virtual Try-On API section and obtain your unique API key. This key is essential for authentication and accessing the API’s features.

generate_02

Integrate the API

Use the provided documentation to integrate the Kolors Virtual Try-On API into your website or mobile app. The API supports multiple programming languages and frameworks, making it adaptable to various platforms.

generate_04

Upload or Capture User Image

Allow users to upload a clear image of themselves or use a live camera feed. This image will serve as the basis for the AI clothes changer, enabling a realistic virtual try-on experience for clothing and accessories.

generate_03

Select Outfits

Provide a selection of outfits and styles for users to choose from. The Kolors Virtual Try-On API seamlessly overlays the selected outfit onto the user’s image, delivering a lifelike and interactive try-on experience.

generate_03

Preview and Adjust

Users can preview the outfits in real-time and make adjustments as needed. The API’s cloth change AI technology ensures precise fitting and realistic visualization for an engaging shopping experience.

generate_03

Save or Share

Enable users to save their try-on images or share them on social media platforms. This feature makes the shopping journey more interactive, fun, and engaging, encouraging customer satisfaction and brand loyalty.

Use Cases of Kolors Virtual Try-On API

cases_1

Revolutionizing E-Commerce Shopping

The Kolors Virtual Try-On API empowers e-commerce platforms to deliver interactive and personalized shopping experiences. By enabling users to try on clothes and accessories virtually, this API increases customer engagement, reduces return rates, and boosts conversions. Its AI-powered technology provides lifelike visuals that replicate in-store experiences, making online shopping convenient, immersive, and satisfying.

cases_2

Enhancing Fashion Retail Platforms

Fashion retailers can leverage the Kolors Virtual Try-On API to create a dynamic shopping experience. The API enables customers to visualize outfits and accessories on themselves in real-time, improving their confidence in purchasing decisions. By integrating this technology, fashion brands can attract more customers, foster brand loyalty, and stay competitive in the rapidly evolving online retail landscape.

cases_3

Improving Product Marketing and Showcases

The Kolors Virtual Try-On API helps businesses create impactful marketing campaigns by generating engaging visuals for products. Shoppers can interact with virtual try-on features, gaining a better understanding of how products fit and look. This increases the appeal of the showcased items, making marketing efforts more effective and driving higher sales.

cases_4

Personalizing Customer Shopping Experiences

Personalization is key in modern e-commerce, and the Kolors Virtual Try-On API delivers just that. Shoppers can try on a variety of outfits and accessories tailored to their preferences. The API’s AI-driven customization fosters a unique, personalized experience, helping businesses establish deeper connections with their customers and encouraging repeat purchases.

cases_5

Reducing Returns with Virtual Fitting

The Kolors Virtual Try-On API minimizes product return rates by allowing users to visualize how clothing fits before purchasing. Its real-time visualization and accurate cloth change AI technology eliminate the guesswork, ensuring that customers are satisfied with their purchases. This saves businesses time and resources while improving customer satisfaction.

cases_6

Transforming Social Media Engagement

With the Kolors Virtual Try-On API, businesses can enhance social media campaigns by allowing customers to share their virtual try-on experiences. This interactive feature drives user-generated content, boosts brand visibility, and engages audiences in a fun, meaningful way, creating a powerful blend of technology and marketing for social platforms.

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.