Pixazo APIModelsIDM VTON
Pixazo APIModelsIDM VTON

IDM VTON API - AI Virtual Try-On APIs

by IDM-VTON

IDM VTON API, fashion retailers and e-commerce platforms can implement realistic virtual fitting rooms. The API handles various clothing types and body poses, creating convincing visualizations that help customers make confident purchasing decisions.

Get API Key
IDM VTON API

Models Version

LIMITED TIME OFFER

Get $5 Free Credit on First Payment

No strings attached — add funds and get $5 bonus instantly

Claim Your $5 →

IDM VTON v1 Image to Image (Virtual Try On) API Documentation

Request Code

POST https://gateway.pixazo.ai/idm-vton-api/v1/r-idm-vton
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: your-subscription-key

{
  "garm_img": "https://example.com/garment.jpg",
  "human_img": "https://example.com/human.jpg",
  "garment_des": "A blue cotton dress",
  "category": "dress"
}
import requests

url = "https://gateway.pixazo.ai/idm-vton-api/v1/r-idm-vton"
headers = {
    "Content-Type": "application/json",
    "Cache-Control": "no-cache",
    "Ocp-Apim-Subscription-Key": "your-subscription-key"
}
data = {
    "garm_img": "https://example.com/garment.jpg",
    "human_img": "https://example.com/human.jpg",
    "garment_des": "A blue cotton dress",
    "category": "dress"
}

response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = 'https://gateway.pixazo.ai/idm-vton-api/v1/r-idm-vton';

const data = {
  garm_img: 'https://example.com/garment.jpg',
  human_img: 'https://example.com/human.jpg',
  garment_des: 'A blue cotton dress',
  category: 'dress'
};

fetch(url, {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Cache-Control': 'no-cache',
    'Ocp-Apim-Subscription-Key': 'your-subscription-key'
  },
  body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -v -X POST "https://gateway.pixazo.ai/idm-vton-api/v1/r-idm-vton" \
  -H "Content-Type: application/json" \
  -H "Cache-Control: no-cache" \
  -H "Ocp-Apim-Subscription-Key: your-subscription-key" \
  --data-raw '{
    "garm_img": "https://example.com/garment.jpg",
    "human_img": "https://example.com/human.jpg",
    "garment_des": "A blue cotton dress",
    "category": "dress"
  }'

Output

{
  "result_url": "https://result.pixazo.ai/output.jpg",
  "status": "completed",
  "job_set_id": "job-12345-abcde",
  "processing_time": 2.4
}

Request Parameters - idm-vton

Parameter Required Type Description
garm_imgYesstringURL of the garment image to be tried on
human_imgYesstringURL of the human model image
garment_desYesstringDescription of the garment for better generation
categoryYesstringCategory of garment (e.g., dress, shirt, pants)

Example Request

{
  "garm_img": "https://example.com/garment.jpg",
  "human_img": "https://example.com/human.jpg",
  "garment_des": "A blue cotton dress",
  "category": "dress"
}

Response

{
  "result_url": "https://result.pixazo.ai/output.jpg",
  "status": "completed",
  "job_set_id": "job-12345-abcde",
  "processing_time": 2.4
}

Request Headers

Header Value
Content-Typeapplication/json
Cache-Controlno-cache
Ocp-Apim-Subscription-Keyyour-subscription-key

Response Handling

Common status codes for idm-vton.

Code Meaning
200 Success
Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
Too Many Requests
500 Internal Server Error

IDM VTON v1 Image to Image (Virtual Try On) API Pricing

ResolutionPrice (USD)
All Resolution$0.05