Dža ko lil

FASHN Virtual Try-On V1.5

Integriruj

Modelosko id fashn/tryon/v1.5
# 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/fashn/tryon/v1.5?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_image": "example",
    "garment_image": "example"
  }'

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

Kava mangipen: $0.075 75 API krediti · ≈ ₽7.85 Phir les kate

Lel API klidin
FASHN Editime e kipesko #try-on#fashion#clothing

Virtuano proba-saradipe savo čhinel jekh modeleski fotografija ande astaradipe fotografijake, v1.5 rezolucijasa

FASHN · Kip

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul

Modeloskoro kipo dino sar URL vaj base64-data.

•trubul

Gadžoskoro kipo dino sar URL vaj base64-data.

standardno 1

Gendo e kipongi pala jekh runo, savo mukel but pokušaja jekhetane te vazdel o šajipen pala lačho rezultato, malgré e slučajnost ande keripe.

Lučhe category · mode · garment_photo_type · moderation_level · output_format · seed · segmentation_free · enable_safety_checker
category standardno auto

Kategorija e gadžoski try-on; 'auto' mangela pokušaj te identifikinen la automatikane.

mode standardno balanced

Operacijako modo e speed–quality tradeoffoske: 'balanced' rodel maškarutno than, 'quality' del majlačhe rezultatura lokhestar procesinga, thaj 'performance' kerel sigeder, ama šaj te xasarel kvaliteto.

garment_photo_type standardno auto

Kategorija e gadžoskere kiposki pala tuning e internal parametrengi. Flat-lay-shotura thaj ghost-mannequin-kipa uživaren 'flat-lay'; kipa kaj si o gadžo uravdo modelosa uživaren 'model'. 'auto' pokušal te identifikarel la kategorija korkori.

moderation_level standardno permissive

Moderaciako politika e gadžoskere kiposki. Te phandel e filterura 'none' mangela accountoskoro autorizacia; bizo late, ada alosaripen kerel sar 'permissive'. 'permissive' blokiril numa eksplicitno kontento, vaj 'conservative' čhinel vi underwear thaj swimwear.

output_format standardno png

Alosaripen e kiposkere formatosko maškar 'png' pala maksimalno kvaliteto thaj 'jpeg' pala sigeder keripe.

Seed pala reproducibilno keripe: fixiril e slučajnost, ta identično inputura šaj te den jekhajekh rezultato, thaj paruvdo seed zorarel aver rezultato.

POST /run/fashn/tryon/v1.5?wait=20 hesab → $0.075
# 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/fashn/tryon/v1.5?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model_image": "example",
    "garment_image": "example"
  }'

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

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal FASHN Virtual Try-On V1.5

Lel `model_image` thaj `garment_image` (URL vaj base64) thaj sikavel e astaradipe pe manuš. `category` si vaš tops, bottoms, one-pieces vaj auto, a `garment_photo_type` vaš on-model vaj flat-lay. `mode` kerel kompromiso maškar sigutnipe thaj kvalita, a `num_samples` del 1 dži 4 fotografije.

Parametra

NavTip standardnoMuklo Vakeripe
model_imagetrubul
Tipstring
Modeloskoro kipo dino sar URL vaj base64-data.
garment_imagetrubul
Tipstring
Gadžoskoro kipo dino sar URL vaj base64-data.
categoryopcionalno
Tipenum
standardnoauto
topsbottomsone-piecesauto
Kategorija e gadžoski try-on; 'auto' mangela pokušaj te identifikinen la automatikane.
modeopcionalno
Tipenum
standardnobalanced
performancebalancedquality
Operacijako modo e speed–quality tradeoffoske: 'balanced' rodel maškarutno than, 'quality' del majlačhe rezultatura lokhestar procesinga, thaj 'performance' kerel sigeder, ama šaj te xasarel kvaliteto.
garment_photo_typeopcionalno
Tipenum
standardnoauto
automodelflat-lay
Kategorija e gadžoskere kiposki pala tuning e internal parametrengi. Flat-lay-shotura thaj ghost-mannequin-kipa uživaren 'flat-lay'; kipa kaj si o gadžo uravdo modelosa uživaren 'model'. 'auto' pokušal te identifikarel la kategorija korkori.
moderation_levelopcionalno
Tipenum
standardnopermissive
nonepermissiveconservative
Moderaciako politika e gadžoskere kiposki. Te phandel e filterura 'none' mangela accountoskoro autorizacia; bizo late, ada alosaripen kerel sar 'permissive'. 'permissive' blokiril numa eksplicitno kontento, vaj 'conservative' čhinel vi underwear thaj swimwear.
seedopcionalno
Tipinteger | null
Seed pala reproducibilno keripe: fixiril e slučajnost, ta identično inputura šaj te den jekhajekh rezultato, thaj paruvdo seed zorarel aver rezultato.
num_samplesopcionalno
Tipinteger
standardno1
1 – 4
Gendo e kipongi pala jekh runo, savo mukel but pokušaja jekhetane te vazdel o šajipen pala lačho rezultato, malgré e slučajnost ande keripe.
segmentation_freeopcionalno
Tipboolean
standardnotrue
Phandel o manušikano parsing pala o modeloskoro kipo.
output_formatopcionalno
Tipenum
standardnopng
pngjpeg
Alosaripen e kiposkere formatosko maškar 'png' pala maksimalno kvaliteto thaj 'jpeg' pala sigeder keripe.
enable_safety_checkeropcionalno
Tipboolean
standardnotrue
Screening šaj te avel relaksirime te postavil pes false, numa kana o manglo si autorizuime.
trubul

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "fashn/tryon/v1.5",
  "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": 75,
    "usd": "0.075",
    "charged": 75,
    "refunded": 0
  },
  "input": {
    "model_image": "example",
    "garment_image": "example"
  },
  "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
      }
    ]
  },
  "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"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
images
array of object {url, content_type, file_name, file_size}

Bute modeli: Editime e kipesko

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/fashn/tryon/v1.5.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt