কনটেন্টে যান

Leffa Virtual TryOn

ইন্টিগ্রেট করুন

মডেল id leffa/virtual-tryon
# 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/leffa/virtual-tryon?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",
    "garment_type": "upper_body"
  }'

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

এই অনুরোধ: ০.১০$ ১০০ API ক্রেডিট · ≈ ১০.৫৫₽ এই পেজে চালান

API কী পান
Meta ছবি সম্পাদনা #try-on#fashion#clothing

ভার্চুয়াল ট্রাই-অন, যা উপরের, নিচের বা পোশাক ধরনের ভিত্তিতে একজন ব্যক্তির ছবিতে পোশাকের ছবি বসায়

Meta · ছবি

আপনার প্রথম ফলাফল এখানে আসবে

নিচে একটি রিকোয়েস্ট তৈরি করে আপনার API কী দিয়ে চালান। আউটপুট আমাদের স্টোরেজে কপি করা হয়, চিরকাল বা বিনামূল্যে ৭ দিন পর্যন্ত রাখা হয়।

একটি অনুরোধ তৈরি করুন

মডেল স্কিমা থেকে কন্ট্রোল তৈরি করা হয়। এগুলো পরিবর্তন করলে কোড ও মূল্য আপডেট হয়।

•আবশ্যক
একটি ফাইল ড্রপ করুন, অথবা

ব্যক্তির ছবির দিকে নির্দেশ করা URL।

•আবশ্যক
একটি ফাইল ড্রপ করুন, অথবা

পোশাকের ছবির দিকে নির্দেশ করা URL।

garment_type •আবশ্যক

Virtual try-on-এর জন্য garment category।

অ্যাডভান্সড output_format · num_inference_steps · guidance_scale · seed · enable_safety_checker
output_format ডিফল্ট png

ফলাফল ছবির ফাইল ফরম্যাট।

ডিফল্ট 50

চালানোর জন্য inference ধাপের সংখ্যা।

ডিফল্ট 2.5

CFG (Classifier Free Guidance) scale, যা ছবি জেনারেশন আপনার ইনপুট কত ঘনিষ্ঠভাবে অনুসরণ করবে তা নিয়ন্ত্রণ করে।

ছবি পুনরুৎপাদনের জন্য seed। ছবি পুনরুৎপাদন করতে seed, ইনপুট এবং মডেলের সংস্করণ অপরিবর্তিত রাখতে হবে; এই শর্তে প্রতিবার ফলাফল অভিন্ন হবে।

POST /run/leffa/virtual-tryon?wait=20 মূল্য → ০.১০$
# 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/leffa/virtual-tryon?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",
    "garment_type": "upper_body"
  }'

# 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-তে পাঠানো হয় এবং Remember টিক দিলে কেবল localStorage-এ সংরক্ষিত হয়। একটি API কী পান

Leffa Virtual TryOn সম্পর্কে

একটি ছবি থেকে পোশাক নিয়ে অন্য ছবির ব্যক্তির গায়ে রেন্ডার করে। ইনপুট হলো `human_image_url`, `garment_image_url` এবং প্রয়োজনীয় `garment_type`, যার মান upper_body, lower_body অথবা dresses। `num_inference_steps` সর্বোচ্চ 50 (ডিফল্ট 50) এবং `guidance_scale` সর্বোচ্চ 20 পর্যন্ত যায়। আউটপুট একটি png বা jpeg, এবং পুনরাবৃত্তিযোগ্য ফলাফলের জন্য `seed` ব্যবহার করা যায়।

প্যারামিটার

নামধরন ডিফল্টঅনুমোদিত বিবরণ
num_inference_stepsঐচ্ছিক
ধরনinteger
ডিফল্ট50
১ – ৫০
চালানোর জন্য inference ধাপের সংখ্যা।
seedঐচ্ছিক
ধরনinteger | null
ছবি পুনরুৎপাদনের জন্য seed। ছবি পুনরুৎপাদন করতে seed, ইনপুট এবং মডেলের সংস্করণ অপরিবর্তিত রাখতে হবে; এই শর্তে প্রতিবার ফলাফল অভিন্ন হবে।
guidance_scaleঐচ্ছিক
ধরনnumber
ডিফল্ট2.5
০ – ২০
CFG (Classifier Free Guidance) scale, যা ছবি জেনারেশন আপনার ইনপুট কত ঘনিষ্ঠভাবে অনুসরণ করবে তা নিয়ন্ত্রণ করে।
enable_safety_checkerঐচ্ছিক
ধরনboolean
ডিফল্টtrue
নিরাপত্তা পরীক্ষা, যা অনিরাপদ হিসেবে চিহ্নিত ছবির বদলে কালো ছবি ফেরত দেয়। true মান পরীক্ষা সক্ষম করে; false তা শুধু অনুমোদিত অ্যাকাউন্টের জন্য নিষ্ক্রিয় করে, অথরাইজেশনহীন রিকোয়েস্ট সবসময় পরীক্ষা করা হয়।
output_formatঐচ্ছিক
ধরনenum
ডিফল্টpng
jpegpng
ফলাফল ছবির ফাইল ফরম্যাট।
human_image_urlআবশ্যক
ধরনurl · image
ব্যক্তির ছবির দিকে নির্দেশ করা URL।
garment_image_urlআবশ্যক
ধরনurl · image
পোশাকের ছবির দিকে নির্দেশ করা URL।
garment_typeআবশ্যক
ধরনenum
upper_bodylower_bodydresses
Virtual try-on-এর জন্য garment category।
আবশ্যক

ফাইল প্যারামিটার হিসেবে একটি পাবলিক https:// URL, 10 MB পর্যন্ত একটি data: URI, অথবা আপলোডের file_url গ্রহণ করা হয়। ফাইল

আউটপুট

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "leffa/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": 100,
    "usd": "0.10",
    "charged": 100,
    "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",
    "garment_type": "upper_body"
  },
  "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
    },
    "seed": 42,
    "has_nsfw_concepts": false
  },
  "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-মাস অনুযায়ী অর্থপ্রদত্ত) অথবা অ্যাকাউন্ট সেটিংস বা ?storage= অনুযায়ী বিনামূল্যে ৭ দিন পর্যন্ত।
প্রতিটি মডেলে একই গঠনছবি, ভিডিও এবং অডিও—সব ক্ষেত্রেই type, url, content_type, width, height এবং duration। output হলো মডেলের নিজস্ব ফলাফল অবজেক্ট।
আউটপুটের ফিল্ড
image
object {url, content_type, file_name, file_size, width, height}আউটপুট হিসেবে তৈরি ছবি।
seed
integerinference-এর সময় ব্যবহৃত seed।
has_nsfw_concepts
booleanছবির মধ্যে NSFW concepts-এর indicator।

আরও মডেল: ছবি সম্পাদনা

AI এজেন্টদের জন্য: এই পৃষ্ঠাটি Markdown হিসেবে এখানে আছে https://doitong.com/bn/developers/models/leffa/virtual-tryon.md. সব মডেল ও গাইড: https://doitong.com/developers/llms.txt