Peke ki ngā ihirangi

try-on

Whakauru

id tauira cat-vton
# 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/cat-vton?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "human_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "garment_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "cloth_type": "upper"
  }'

# 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"

Tēnei tono: ≈$ 0.018 18 whiwhinga API · ≈ ₽ 1.90 Whakahaerehia ki tēnei whārangi

Tikina he kī API
Open model Whakatika Atahanga #try-on#fashion#clothing

Whakamātautau kākahu mariko e whakakākahu ana i tētahi tangata whakaahua ki te atahanga kākahu, me te momo kākahu ka taea te kōwhiri

Open model · Atahanga

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana
Whakataka he kōnae,

URL e tohu ana ki te atahanga o te tangata.

•e hiahiatia ana
Whakataka he kōnae,

URL e tohu ana ki te atahanga o te kākahu.

cloth_type •e hiahiatia ana

Kāwai kākahu mō te whakamātau: ko upper ngā kākahu tinana runga; ko lower ngā kākahu tinana raro; ko overall ngā kākahu tinana katoa; ko inner he paparanga o roto, pērā i te T-shirt i raro i te koti; ko outer he paparanga o waho, pērā i te koti e hipoki ana i te T-shirt.

image_size taunoa portrait_4_3

Ngā inenga o te atahanga kua whakaputaina.

Arā atu num_inference_steps · guidance_scale · seed · enable_safety_checker
taunoa 30

Tau o ngā hipanga whakatauira hei whakahaere.

taunoa 2.5

Te kaha ū ki te tohutohu mō te kōwhiringa atahanga, kua whakaaturia hei CFG (Classifier Free Guidance).

Kākano mō te whakahoki anō i te atahanga. Me pupuri kia ōrite te kākano, te tāuru me te putanga tauira; i raro i aua tikanga, ka ōrite te putanga i ia oma.

POST /run/cat-vton?wait=20 utu → $ 0.018
# 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/cat-vton?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "human_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "garment_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "cloth_type": "upper"
  }'

# 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"

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō try-on

Ka whakaputa i tētahi tangata e mau ana i tētahi kākahu kua hoatu. Me whai `human_image_url`, `garment_image_url` me `cloth_type`, ka taea ko upper, lower, overall, inner, outer rānei. Ka whakamahi te rahinga putanga i ngā tatūkē pērā i portrait_4_3, square_hd rānei. Ka taea te whakarite `num_inference_steps` (1 ki te 50), `guidance_scale` me te kākano.

Ngā tawhā

IngoaMomo TaunoaE whakaaetia ana Whakamārama
human_image_urle hiahiatia ana
Momourl · image
URL e tohu ana ki te atahanga o te tangata.
garment_image_urle hiahiatia ana
Momourl · image
URL e tohu ana ki te atahanga o te kākahu.
cloth_typee hiahiatia ana
Momoenum
upperloweroverallinnerouter
Kāwai kākahu mō te whakamātau: ko upper ngā kākahu tinana runga; ko lower ngā kākahu tinana raro; ko overall ngā kākahu tinana katoa; ko inner he paparanga o roto, pērā i te T-shirt i raro i te koti; ko outer he paparanga o waho, pērā i te koti e hipoki ana i te T-shirt.
image_sizekōwhiringa
Momoobject
Taunoaportrait_4_3
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Ngā inenga o te atahanga kua whakaputaina.
num_inference_stepskōwhiringa
Momointeger
Taunoa30
1 – 50
Tau o ngā hipanga whakatauira hei whakahaere.
guidance_scalekōwhiringa
Momonumber
Taunoa2.5
0 – 20
Te kaha ū ki te tohutohu mō te kōwhiringa atahanga, kua whakaaturia hei CFG (Classifier Free Guidance).
seedkōwhiringa
Momointeger | null
Kākano mō te whakahoki anō i te atahanga. Me pupuri kia ōrite te kākano, te tāuru me te putanga tauira; i raro i aua tikanga, ka ōrite te putanga i ia oma.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Ka taea te whakangāwari i te tātari mā te tautuhi false, mēnā he mana tō te kaiwhakatuwhera.
e hiahiatia ana

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "cat-vton",
  "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": 18,
    "usd": "0.018",
    "charged": 18,
    "refunded": 0
  },
  "input": {
    "human_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "garment_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "cloth_type": "upper"
  },
  "output": {
    "image": {
      "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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
image
object {url, content_type, file_name, file_size, width, height}Atahanga i whakaputaina hei putanga.

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/cat-vton.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt