مواد پر جائیں

Wan 2.5 Image to Image

انٹیگریٹ کریں

ماڈل id wan-25-preview/image-to-image
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/wan-25-preview/image-to-image?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",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

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

یہ درخواست: ⁨$0.05⁩ 50 API کریڈٹس اس صفحے پر چلائیں

API کلید حاصل کریں
Alibaba · تصویر

آپ کا پہلا نتیجہ یہاں آئے گا

ذیل میں درخواست بنائیں اور اپنی API کلید کے ساتھ چلائیں۔ آؤٹ پٹس ہمارے اسٹوریج میں کاپی ہو جاتے ہیں، ہمیشہ کے لیے یا مفت میں 7 دن تک محفوظ رہتے ہیں۔

درخواست بنائیں

کنٹرولز ماڈل اسکیما سے تیار ہوتے ہیں۔ آپ کے بدلنے کے ساتھ کوڈ اور قیمت اپ ڈیٹ ہوتے ہیں۔

•لازمی

تصویر ایڈٹ کرنے کے لیے متنی ہدایات، 2000 حروف تک محدود۔

•لازمی image_urls
فائل ڈراپ کریں، یا

ایڈیٹنگ کے لیے تصویر URLs؛ زیادہ URLs فراہم ہونے پر صرف پہلے 2 استعمال ہوتے ہیں۔ single-image editing میں 1 URL، جبکہ multi-reference تخلیق میں زیادہ سے زیادہ 2 URLs قبول ہیں۔

image_size ڈیفالٹ square

تخلیق کردہ تصویر کے ابعاد مقرر کریں؛ چوڑائی اور اونچائی دونوں 384–1440 پکسلز کے درمیان ہوں۔

num_images ڈیفالٹ 1

تصاویر کی تخلیق کی تعداد، 1 سے 4 تک۔

ایڈوانسڈ negative_prompt · seed · enable_safety_checker

ناپسندیدہ مواد کی وضاحت کرنے والا منفی پرامپٹ، 500 حروف تک محدود۔

تخلیق کو قابلِ تکرار بنانے والا سیڈ۔ اسے None پر سیٹ کرنے سے سیڈ تصادفی طور پر منتخب ہوتا ہے۔

POST /run/wan-25-preview/image-to-image?wait=20 قیمت → ⁨$0.05⁩
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/wan-25-preview/image-to-image?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",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  }'

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

یہ درخواست چلائیں

آپ کی key اسی براؤزر میں رہتی ہے: یہ صرف Doitong API کو بھیجی جاتی ہے اور صرف اس صورت میں localStorage میں محفوظ ہوتی ہے جب آپ Remember منتخب کریں۔ API کلید حاصل کریں

Wan 2.5 Image to Image کے بارے میں

زیادہ سے زیادہ 2000 حروف کے متن `prompt` سے تصویر ایڈٹ کرتا ہے۔ `image_urls` واحد ایڈیٹ کے لیے ایک یا کثیر حوالہ تخلیق کے لیے دو تصاویر لیتا ہے؛ دو سے زائد اضافی تصاویر نظرانداز ہوتی ہیں۔ `image_size` چھ پری سیٹ فراہم کرتا ہے، جن میں چوڑائی اور اونچائی 384 سے 1440 پکسل تک ہے۔ ہر کال میں 1 سے 4 تصاویر واپس کر سکتا ہے اور `negative_prompt` اور `seed` قبول کرتا ہے۔

پیرامیٹرز

معیاری نام یا مقامی نام میں سے صرف ایک بھیجیں، دونوں نہیں۔ معیاری نام

نامقسم ڈیفالٹمجاز تفصیل
promptلازمی
قسمstring
تصویر ایڈٹ کرنے کے لیے متنی ہدایات، 2000 حروف تک محدود۔
image_urlsلازمی images
قسمurl[] · image
ایڈیٹنگ کے لیے تصویر URLs؛ زیادہ URLs فراہم ہونے پر صرف پہلے 2 استعمال ہوتے ہیں۔ single-image editing میں 1 URL، جبکہ multi-reference تخلیق میں زیادہ سے زیادہ 2 URLs قبول ہیں۔
negative_promptاختیاری
قسمstring | null
ناپسندیدہ مواد کی وضاحت کرنے والا منفی پرامپٹ، 500 حروف تک محدود۔
image_sizeاختیاری
قسمobject
ڈیفالٹsquare
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
تخلیق کردہ تصویر کے ابعاد مقرر کریں؛ چوڑائی اور اونچائی دونوں 384–1440 پکسلز کے درمیان ہوں۔
num_imagesاختیاری num_outputs
قسمinteger
ڈیفالٹ1
1 – 4
تصاویر کی تخلیق کی تعداد، 1 سے 4 تک۔
seedاختیاری
قسمinteger | null
تخلیق کو قابلِ تکرار بنانے والا سیڈ۔ اسے None پر سیٹ کرنے سے سیڈ تصادفی طور پر منتخب ہوتا ہے۔
enable_safety_checkerاختیاری
قسمboolean
ڈیفالٹtrue
Safety-checking switch؛ off setting کے لیے account authorization ضروری ہے۔ authorization کے بغیر setting سے قطع نظر ہر درخواست check کی جاتی ہے؛ true checker فعال کرتا ہے۔
لازمی معیاری نام، یہ بھی قبول ہے

فائل پیرامیٹرز عوامی https:// URL، 10 MB تک کی data: URI، یا اپ لوڈ کے file_url کو قبول کرتے ہیں۔ فائلیں

آؤٹ پٹ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-25-preview/image-to-image",
  "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": 50,
    "usd": "0.05",
    "charged": 50,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_urls": [
      "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",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "seeds": [
      42
    ],
    "actual_prompt": "Reimagine the scene under a raging thunderstorm at night: lightning forks across the sky, illuminating the samurai in stark flashes of white light."
  },
  "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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/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}ترمیم کے نتیجے میں حاصل ہونے والی تصاویر۔
seeds
array of integerانفرادی تصاویر کی تخلیق کے لیے استعمال ہونے والی سیڈ قدریں۔
actual_prompt
string | nullاصل پرامپٹ متن؛ تصویر کی تدوین میں پرامپٹ کی توسیع معاونت یافتہ نہیں۔

مزید ماڈلز: تصویر میں ترمیم

AI ایجنٹس کے لیے: یہ صفحہ Markdown میں یہاں موجود ہے https://doitong.com/ur/developers/models/wan-25-preview/image-to-image.md. تمام ماڈلز اور گائیڈز: https://doitong.com/developers/llms.txt