שפּרינגען צו אינהאַלט

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.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

דער דאָזיקער ריקוועסט: ⁨$ 0.04⁩ 40 API־קרעדיטן · ≈ ⁨₽ 4.22⁩ לויפֿן עס אויף דער דאָזיקער בלאַט

באַקומען אַן API שליסל
Utility בילד־עדיטירונג #fashion#try-on#virtual-try-on

קליידט אָן אַ מענטש פֿון אַ פֿאָטאָ מיט אַ מלבוש פֿון אַ קליידער־בילד, מיט אַן אָפּציע צו האַלטן דעם אָריגינעלן פּאָזע

Utility · בילד

דאָ קומט אײַער ערשטער רעזולטאַט

בויט אונטן אַ בקשה און לויפט זי מיט אײַער API שליסל. רעזולטאַטן ווערן קאַפּירט צו אונדזער סטאָרידזש, געהאַלטן אויף אייביק אָדער 7 טעג אומזיסט.

בויען אַ בעטן

קאָנטראָלן ווערן דזשענערירט פֿון דעם מאָדעל־סכעמע. דער קאָד און דער פּרײַז דערהײַנטיקן זיך ווען איר ענדערט זיי.

•פארלאנגט
לייגט אַרײַן אַ טעקע, אָדער

URL פֿון אַ פֿאָטאָגראַפֿיע מיט דער פּערזאָן.

•פארלאנגט
לייגט אַרײַן אַ טעקע, אָדער

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.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

לויפֿן דעם ריקוועסט

אײַער key בלײַבט אין דעם בלעטערער: זי ווערט געשיקט נאָר צום Doitong API און אָפּגעהיט (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
URL צו אַ פֿאָטאָגראַפֿיע פֿון קליידונג.
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, אַ data: URI ביז 10 MB, אָדער דעם 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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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/yi/developers/models/image-apps-v2/virtual-try-on.md. אַלע מאָדעלן און גוידעס: https://doitong.com/developers/llms.txt