Peke ki ngā ihirangi

FLUX Virtual Try-On

Whakauru

id tauira flux-pro/v1/vto
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/flux-pro/v1/vto?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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"
  }'

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

Ngā kōnae pēnei i te tauira: $ 0.048 48 whiwhinga API ka inea ō kōnae i mua i te whakahaere Whakahaerehia ki tēnei whārangi

Tikina he kī API
Black Forest Labs Whakatika Atahanga #image-to-image#vton

Whakamātautau kākahu mariko hei whakanoho i tētahi atahanga kākahu ki runga i te whakaahua tangata

Black Forest Labs · 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

Ngā tohutohu whakairo kakahu kua tuhia ki te reo māori: tautuhia tōna whakatakotoranga ki runga i te tangata, tae atu ki te whakatakere paparanga, te kuhu ki roto, te hurihuri rānei i ngā ringaringa.

•e hiahiatia ana
Whakataka he kōnae,

URL mō te whakaahua tangata ka mau i te kākahu, he 2 mekapika te mōrahi, ā, e taunakitia ana kia iti iho i te 1 MP. Mā tēnei whakaahua e whakatau te ōwehenga āhuatanga putanga.

•e hiahiatia ana
Whakataka he kōnae,

Tukuna he tohutoro kākahu mā te URL atahanga, ka whakakotahi i ngā kākahu maha hei atahanga hiato kotahi i mua i te tuku. Kia kaua e neke atu i te 1 mekapika; e taunakitia ana kia 0.5 MP pea.

Arā atu output_format · seed · enable_safety_checker
output_format taunoa jpeg

Te hōputu kōnae mō te atahanga ka puta.

Kākano whakaputanga, ka kōwhiria matapōkeretia ina waiho. Mā te tuku kākano pūmau ka taea te whakahoki ōrite i ngā putanga atahanga ina noho ōrite tonu te tāuru.

POST /run/flux-pro/v1/vto?wait=20 utu → $ 0.048
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/flux-pro/v1/vto?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/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ō FLUX Virtual Try-On

Ka whakatakoto i tētahi kākahu mai i `garment_image_url` ki runga i te tangata i `human_image_url`, i runga i tētahi `prompt` e whakaahua ana i te mau. Ka pupuri te putanga i te ōwehenga āhuatanga o te atahanga tangata. Ka herea te atahanga tangata ki te 2 mekapika, ā, ko te kākahu ki te 1; hanumia ngā kākahu maha hei atahanga hiato kotahi.

Ngā tawhā

IngoaMomo TaunoaE whakaaetia ana Whakamārama
prompte hiahiatia ana
Momostring
Ngā tohutohu whakairo kakahu kua tuhia ki te reo māori: tautuhia tōna whakatakotoranga ki runga i te tangata, tae atu ki te whakatakere paparanga, te kuhu ki roto, te hurihuri rānei i ngā ringaringa.
human_image_urle hiahiatia ana
Momourl · image
URL mō te whakaahua tangata ka mau i te kākahu, he 2 mekapika te mōrahi, ā, e taunakitia ana kia iti iho i te 1 MP. Mā tēnei whakaahua e whakatau te ōwehenga āhuatanga putanga.
garment_image_urle hiahiatia ana
Momourl · image
Tukuna he tohutoro kākahu mā te URL atahanga, ka whakakotahi i ngā kākahu maha hei atahanga hiato kotahi i mua i te tuku. Kia kaua e neke atu i te 1 mekapika; e taunakitia ana kia 0.5 MP pea.
seedkōwhiringa
Momointeger | null
Kākano whakaputanga, ka kōwhiria matapōkeretia ina waiho. Mā te tuku kākano pūmau ka taea te whakahoki ōrite i ngā putanga atahanga ina noho ōrite tonu te tāuru.
output_formatkōwhiringa
Momoenum
Taunoajpeg
jpegpng
Te hōputu kōnae mō te atahanga ka puta.
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": "flux-pro/v1/vto",
  "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": 48,
    "usd": "0.048",
    "charged": 48,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "width": 1024,
        "height": 768,
        "content_type": "image/jpeg"
      }
    ],
    "timings": {},
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "string"
  },
  "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/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
images
array of object {url, width, height, content_type}Pārongo kōnae mō ngā atahanga kua whakaputaina.
timings
object
seed
integerKākano whakaputa atahanga, tae atu ki te uara i kōwhiria matapōkeretia mēnā kāore i tukuna he kākano ki te tāuru; ki te kore, ka tukurua te uara i tukuna.
has_nsfw_concepts
array of booleanKa tohu mēnā ka puta ngā ariā NSFW i ngā atahanga kua whakaputaina.
prompt
stringTe tohutohu e whakamahia ana i te whakaputanga atahanga.

Ētahi atu tauira: Whakatika Atahanga

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