सामग्री पर जाएँ

Flux 2 Lora Gallery · Virtual Tryon

इंटीग्रेट करें

मॉडल id flux-2-lora-gallery/virtual-tryon
# 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-2-lora-gallery/virtual-tryon?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ],
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

यह अनुरोध: ≈$0.021 21 API क्रेडिट इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें
Black Forest Labs · इमेज

आपका पहला परिणाम यहाँ आएगा

नीचे एक अनुरोध बनाएँ और उसे अपनी API कुंजी से चलाएँ। आउटपुट हमारे स्टोरेज में कॉपी किए जाते हैं और हमेशा के लिए या 7 दिन तक मुफ़्त में रखे जाते हैं।

अनुरोध बनाएँ

कंट्रोल मॉडल स्कीमा से जनरेट होते हैं। इन्हें बदलने पर कोड और कीमत अपडेट होती है।

•आवश्यक

वर्चुअल ट्राय-ऑन दिखाने वाली इमेज बनाने का प्रॉम्प्ट।

•आवश्यक image_urls
फ़ाइल ड्रॉप करें, या

वर्चुअल ट्राय-ऑन के लिए उपयोग किए जाने वाले इमेज URL, जिनमें व्यक्ति की इमेज और कपड़ों की इमेज शामिल हैं।

image_size

आउटपुट आकार ओवरराइड; इसे निर्दिष्ट न करने पर इनपुट इमेज के आयाम बने रहते हैं।

num_images डिफ़ॉल्ट 1

बनाई जाने वाली इमेज की संख्या।

उन्नत acceleration · output_format · guidance_scale · num_inference_steps · lora_scale · seed · enable_safety_checker
acceleration डिफ़ॉल्ट regular

इमेज निर्माण त्वरण सेटिंग। गति और गुणवत्ता के बीच संतुलन के लिए 'regular' चुनें।

output_format डिफ़ॉल्ट png

परिणामी इमेज का फ़ॉर्मैट।

डिफ़ॉल्ट 2.5

CFG स्केल का उपयोग करके प्रॉम्प्ट अनुपालन नियंत्रण, जहाँ CFG का अर्थ Classifier Free Guidance है।

डिफ़ॉल्ट 40

चलाए जाने वाले inference चरणों की संख्या।

डिफ़ॉल्ट 1

वर्चुअल ट्राय-ऑन के लिए उपयोग किए गए प्रभाव की तीव्रता।

यादृच्छिक निर्माण seed, जो प्रॉम्प्ट और seed दोनों को अपरिवर्तित रखकर परिणाम को पुनरुत्पादित करने देता है।

POST /run/flux-2-lora-gallery/virtual-tryon?wait=20 कोटेशन → $0.021
# 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-2-lora-gallery/virtual-tryon?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ],
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

यह अनुरोध चलाएँ

आपकी key इसी ब्राउज़र में रहती है: इसे केवल Doitong API को भेजा जाता है और केवल तभी (localStorage) में सेव किया जाता है जब आप Remember चुनते हैं। API कुंजी प्राप्त करें

Flux 2 Lora Gallery · Virtual Tryon के बारे में

`image_urls` में दो इमेज लेता है: एक व्यक्ति की और एक कपड़े की। आवश्यक `prompt` के अनुसार यह व्यक्ति को उस कपड़े में दिखाता है। `lora_scale` (0 से 2) प्रभाव की तीव्रता तय करता है। आउटपुट आकार इनपुट के अनुसार होता है, जब तक `image_size` सेट न किया जाए, और 1 से 4 इमेज लौटाई जा सकती हैं।

पैरामीटर

कैनोनिकल नाम या नेटिव नाम में से कोई एक भेजें, दोनों नहीं। कैनोनिकल नाम

नामप्रकार डिफ़ॉल्टअनुमत विवरण
image_urlsआवश्यक images
प्रकारurl[] · image
वर्चुअल ट्राय-ऑन के लिए उपयोग किए जाने वाले इमेज URL, जिनमें व्यक्ति की इमेज और कपड़ों की इमेज शामिल हैं।
promptआवश्यक
प्रकारstring
वर्चुअल ट्राय-ऑन दिखाने वाली इमेज बनाने का प्रॉम्प्ट।
image_sizeवैकल्पिक
प्रकारobject
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
आउटपुट आकार ओवरराइड; इसे निर्दिष्ट न करने पर इनपुट इमेज के आयाम बने रहते हैं।
guidance_scaleवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट2.5
0 – 20
CFG स्केल का उपयोग करके प्रॉम्प्ट अनुपालन नियंत्रण, जहाँ CFG का अर्थ Classifier Free Guidance है।
num_inference_stepsवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट40
4 – 50
चलाए जाने वाले inference चरणों की संख्या।
accelerationवैकल्पिक
प्रकारenum
डिफ़ॉल्टregular
noneregular
इमेज निर्माण त्वरण सेटिंग। गति और गुणवत्ता के बीच संतुलन के लिए 'regular' चुनें।
seedवैकल्पिक
प्रकारinteger | null
यादृच्छिक निर्माण seed, जो प्रॉम्प्ट और seed दोनों को अपरिवर्तित रखकर परिणाम को पुनरुत्पादित करने देता है।
enable_safety_checkerवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
निर्मित-इमेज सुरक्षा-जाँच टॉगल, जिसे केवल अधिकृत खाते अक्षम कर सकते हैं। बिना प्राधिकरण वाले अनुरोधों के लिए जाँच अनिवार्य रहती है।
output_formatवैकल्पिक
प्रकारenum
डिफ़ॉल्टpng
pngjpegwebp
परिणामी इमेज का फ़ॉर्मैट।
num_imagesवैकल्पिक num_outputs
प्रकारinteger
डिफ़ॉल्ट1
1 – 4
बनाई जाने वाली इमेज की संख्या।
lora_scaleवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट1
0 – 2
वर्चुअल ट्राय-ऑन के लिए उपयोग किए गए प्रभाव की तीव्रता।
आवश्यक कैनोनिकल नाम, यह भी स्वीकार्य है

फ़ाइल पैरामीटर में सार्वजनिक https:// URL, 10 MB तक का data: URI, या अपलोड का file_url लिया जाता है। फ़ाइलें

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "flux-2-lora-gallery/virtual-tryon",
  "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": 21,
    "usd": "0.021",
    "charged": 21,
    "refunded": 0
  },
  "input": {
    "image_urls": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ],
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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
      }
    ],
    "seed": 42,
    "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"
  }
}
आपकी फ़ाइलें, आपकी पसंदहर 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}वर्चुअल ट्राय-ऑन प्रक्रिया से बनाई गई इमेज।
seed
integerनिर्माण के दौरान उपयोग किया गया seed मान।
prompt
stringनिर्माण के दौरान उपयोग किया गया प्रॉम्प्ट।

और मॉडल: इमेज एडिटिंग

AI एजेंट के लिए: इस पेज का Markdown यहाँ है https://doitong.com/hi/developers/models/flux-2-lora-gallery/virtual-tryon.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt