ᡤᡝᠯᡳ ᡩᡝ ᠵᡠᠸᡝᠨ

Virtual Try-on

ᠵᡠᠸᡝᠪᡠᠮᠪᡳ

ᠮᠣᡩᡝᠯ id image-apps-v2/virtual-try-on
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/image-apps-v2/virtual-try-on?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "person_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "clothing_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ᡝᠨᡳ ᠵᠠᠯᡳᠨ: $0.04 40 API ᠺᠷᡝᡩᡳᠲ ᡝᡵᡝ ᠵᠠᠯᡳᠨᡩᡝ ᠠᠰᡠᠮᠪᡳ

API ᡩᠠᠮᡠᠨ ᡤᠠᠯᠠ
Utility ᡤᠠᠳᠠᠨ ᠵᠠᠰᡳᠨ #fashion#try-on#virtual-try-on

ᠨᡝᠮᡝᠨᡳ ᡳᠯᡥᠠᠨ ᠪᡝ ᡤᠠᠯᠠᠨᡳ ᡳᠯᡥᠠᠨ ᡩᡝᡵᡤᡳ ᠵᡠᠯᡤᠠᠨ ᠪᡝ ᡠᠯᡥᡳᠨ ᠣᠮᡝ ᡤᠠᠯᠠᠮᠪᡳ᠈ ᠠᠩᡤᠠᠨᡳ ᡩᠠᠯᠵᡳᠨ ᠪᡝ ᠪᠠᡳᠯᠠᠮᡝ ᠣᠮᡮᡳ ᠪᡳ

Utility · ᡤᠠᠳᠠᠨ

ᡳᠨᡝ ᡝᠮᡠᠨᡳᠩᡤᡝ ᡝᡵᡝᠮᡝ ᡩᡝ

ᡝᡵᡝ ᠵᡠᠯᡝᠨ ᡩᡝ ᡤᡝᡪᡳᠯᡝᠨ ᠪᠠᠶᠠᠨᠠᠮᡝ ᠠᠮᡪᠠᠯᠠ ᡶᡳᠯᡝᠮᡝ ᠪᡝᠶᡝᠮᡝ᠃ API ᠵᡳᡵᡤᠠᡳ ᡤᠠᡳᡥᠠᡩᡝ ᡤᡝᡪᡳᠯᡝᠨ ᠵᠠᠯᠠᠨᠠᠮᡝ ᠪᡠᠶᡝᠮᡝ ᠮᡠᠰᡝᡳ ᠰᡠᠯᡠᠨᡩᡝ ᠪᠠᠶᠠᠨᠠᠮᡝ᠂ ᠝ᠮᡤᡳ ᠮᡠᠰᡝ ᠠᠶᠠᠨ 7 ᡥᠠᠨ ᠰᠠᡳᠨᠠᠮᡝ᠃

ᡤᡳᠰᡠᠨ ᠪᡠᠶᡝᠮᡝ

ᠵᠠᡴᡠᠨᡳ ᠵᡠᠯᡝ ᡩᡝᡵᡤᡳ ᡩᡝᠪᡝᠰᡠᠮᡝ ᠵᡠᠯᡤᡝ ᠪᡠᠶᡝᠮᡝ᠈ ᡳᠨᡳ ᡤᡳᠰᡠᠨ ᠪᠠᡳ ᡝᠨᡝᠩᡤᡳ ᠠᠮᠪᡳ

•ᡴᠠᠷᠠᡴᡡ
ᠪᡠᠮᠪᡳ ᡝᠮᡠ ᡩᠠᡵᠠᠮᡝ

ᠨᡳᠶᠠᠯᠮᠠ ᠪᡝ ᠵᡠᡵᡤᠠᠨ ᡤᠠᠳᠠᠨ URL.

•ᡴᠠᠷᠠᡴᡡ
ᠪᡠᠮᠪᡳ ᡝᠮᡠ ᡩᠠᡵᠠᠮᡝ

ᠪᡠᠶᡝᠮᡝ ᡩᡝ ᠠᠪᠰᡳᡴᠠᠨ ᡳ ᠵᠠᠯᠠᠨ ᡳ ᡠᡵᡤᡠᠨ

4K ᠵᠠᠯᠠᠨ ᡳ ᠪᡠᠶᡝᠮᡝ ᡳ ᠠᠴᠠᠨ ᡝᠮᡤᡳ ᠵᠠᠯᠠᠨ ᡳᠨᡠ 3:4 ᠪᡳᠮᠪᡳ

ᠵᡠᠯᡤᡝ ᠵᡝᡵᡤᡳ preserve_pose
POST /run/image-apps-v2/virtual-try-on?wait=20 ᠵᠠᠯᡳᠨ → $0.04
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/image-apps-v2/virtual-try-on?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "person_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "clothing_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ᡝᠨᡳ ᠵᠠᠯᡳᠨ ᠪᡝ ᠵᠠᠯᠠᠨᠠᠮᡝ

ᡳᠨᡝ ᠵᠠᠯᠠᠨ ᡝᡵᡝ ᠪᡠᡵᡝᠪᡝᡵᡳ ᡩᡝ ᠪᡳᠮᡝ᠈ Doitong API ᡩᡝ ᠵᡝᠯᡤᡳ ᡩᠠᡵᠠᠮᡝ᠈ Remember ᠵᡠᠯᡝᠮᡝ ᡤᡳᠯᠠᠮᡝ localStorage ᡩᡝ ᠰᡠᠯᡝᠮᡝ ᠪᡳᠮᡝ API ᠵᠠᠯᠠᠨ ᠠᠪᠠᠮᡝ

Virtual Try-on ᡠᡵᡝᠮᡝ

ᡝᠮᡠ ᠨᡝᠮᡝᠨᡳ ᡳᠯᡥᠠᠨ (`person_image_url`) ᠪᡝ ᡝᠮᡠ ᡤᠠᠯᠠᠨᡳ ᡳᠯᡥᠠᠨ (`clothing_image_url`) ᡩᡝ ᡳᠯᡥᠠᠮᡝ᠈ ᠨᡝᠮᡝᠨ ᡤᠠᠯᠠᠨ ᠪᡝ ᡠᠯᡥᡳᠨ ᡩᡝ ᠪᠠᠨᠵᡳᠮᠪᡳ᠉ `preserve_pose` ᠠᠩᡤᠠᠨᡳ ᠵᠠᠯᡳᠨᠠᠮᠪᡳ᠈ ᠵᠠᠯᡳᠨ ᡩᡝ ᠪᠠᡳᠯᡳᠩᡤᠠᠨ ᡩᠠᠯᠵᡳᠨ ᠪᡝ ᠪᠠᡳᠯᠠᠮᠪᡳ᠉ `aspect_ratio` ᡳᠯᡥᠠᠨ ᡤᡳᠰᡠᠨᡳ ᡝᠮᡠᠨ ᠰᡠᠯᡤᠠᠨᠠᠮᠪᡳ᠈ ᠵᡠᠯᡤᠠᠨᡳ 3:4 ᠠᠩᡤᠠᠨᡳ ᠪᡳ᠉

ᠵᠠᡴᡠᠨ

ᠵᡝᡵᡤᡳᡠᠯᠠᠮᡝ ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝᠠᠪᠠᠮᡝ ᠵᠠᠪᡠᠨ ᠵᠠᠯᠠᠨᡳ ᡤᡳᠰᡠᠨ
person_image_urlᡴᠠᠷᠠᡴᡡ
ᡠᠯᠠᠮᡝurl · image
ᠨᡳᠶᠠᠯᠮᠠ ᠪᡝ ᠵᡠᡵᡤᠠᠨ ᡤᠠᠳᠠᠨ URL.
clothing_image_urlᡴᠠᠷᠠᡴᡡ
ᡠᠯᠠᠮᡝurl · image
ᠪᡠᠶᡝᠮᡝ ᡩᡝ ᠠᠪᠰᡳᡴᠠᠨ ᡳ ᠵᠠᠯᠠᠨ ᡳ ᡠᡵᡤᡠᠨ
preserve_poseᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝboolean
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝtrue
aspect_ratioᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝobject
4K ᠵᠠᠯᠠᠨ ᡳ ᠪᡠᠶᡝᠮᡝ ᡳ ᠠᠴᠠᠨ ᡝᠮᡤᡳ ᠵᠠᠯᠠᠨ ᡳᠨᡠ 3:4 ᠪᡳᠮᠪᡳ
aspect_ratio.ratioᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ1:1
1:116:99:164:33:4
4K ᠵᠠᠯᠠᠨ ᠪᡠᠶᡝᠮᡝ ᠵᠠᠯᠠᠨ.
ᡴᠠᠷᠠᡴᡡ

ᠪᡠᠮᠪᡳᠯᡝᠰᡝ ᡝᠮᡠ ᡤᡝᠮᡠᠨᡳ https:// URL᠈ 10 MB ᡩᡝ ᡩᡝᠷᡤᡳ data: URI ᠵᡝᡵᡤᡳ ᡝᠮᡝ᠈ ᡳᠨᡝ ᠪᡠᠮᠪᡳᠯᡝᠰᡝᠨᡳ file_url ᠠᠪᠠᠮᠪᡳ ᠪᡠᠮᠪᡳ

ᠪᡠᠶᡝᠮᡝ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "image-apps-v2/virtual-try-on",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 40,
    "usd": "0.04",
    "charged": 40,
    "refunded": 0
  },
  "input": {
    "person_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "clothing_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ]
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ᡤᡝᠯᡝᠮᡝ ᡥᡡᠯᡤᡠᠨᡳ ᡳᠨᡠᡝᠯᡝᡥᡝ outputs[].url ᠰᡠᠯᡠᠨ ᡩᡝ ᠰᡳᡵᡝ ᡶᡳᠯᡝ᠈ ᠝ᠮᡤᡳ ᠮᡠᠰᡝ ᠠᠪᠠᠯᡳ ᠵᡝᠮᡤᡳᠨ GB-ᠪᡳᠶᠠ ᠵᡝᠮᡤᡳᠨ ᠪᡝ ᡝᠮᡠᠯᡝᠮᡝ ᠠᠪᠠᠯᡳ 7 ᡥᠠᠨ ᠰᡳᠯᡤᠠᠨ ᡩᡝ᠈ ᠰᡳᠨᡳ ᠪᠠᠯᠠᠨᠰᡳ ᠵᡠᠶᡝᡵᡝᠨ ᠠᠪᠠᠯᡳ ?storage= ᡩᡝ ᡝᠵᡝᠨ ᡥᠠᠯᠠᠮᡝ᠉
ᡝᠮᡠ ᡤᡳᠰᡠᠨ ᡝᠮᡠ ᠮᠣᡩᡝᠯ ᡩᡝtype, url, content_type, width, height ᠮᠠᠩᡤᡳ duration᠈ ᠵᠠᠯᠠᠨ᠈ ᠪᡠᠵᡠᠮᠪᡳ ᠮᠠᠩᡤᡳ ᠵᡝᡵᡤᡳ ᡩᡝᠨᡳ᠈ output ᠮᠣᡩᡝᠯᡳᠨᡳ ᡝᠮᡠ ᠵᠠᠯᠠᠨ
ᠪᡠᠶᡝᠮᡝᠨᡳ ᡤᡳᠰᡠᠨ
images
array of object {url, content_type, file_name, file_size, width, height}ᠠᠪᠰᡳᡴᠠᠨ ᠪᡝ ᠵᠠᠰᡠᠮᡝ ᠵᠠᠯᠠᠨ ᠰᡳᠮᡝ ᠠᡵᠠᡥᠠ ᠤᠨᠳᠠᠯᠠᠨ

ᡝᠯᡤᡳ ᡩᠠᠯᡳᠨ: ᡤᠠᠳᠠᠨ ᠵᠠᠰᡳᠨ

AI ᠠᡤᡝᠨᡨᡳ ᡠᠴᡠᠷᡳ᠈ ᡝᡵᡝ ᡩᡝᠪᡝᡵᡳ Markdown ᠰᡳᠨᡩᠠᡵᡳ https://doitong.com/mnc/developers/models/image-apps-v2/virtual-try-on.md. ᡝᡵᡝ ᠮᠣᡩᡝᠯ ᠵᠠᡴᡠᠨ ᠰᡠᠯᡠᠮᡝ https://doitong.com/developers/llms.txt