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

Wan 2.5 Text to Image

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

मॉडल id wan-25-preview/text-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/text-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"
  }'

# 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 कुंजी प्राप्त करें

चीनी और अंग्रेज़ी प्रॉम्प्ट तथा प्रति कॉल अधिकतम चार इमेज वाला Wan 2.5 टेक्स्ट-टू-इमेज

Doitong पर बनाया गया

Doitong समुदाय द्वारा Wan 2.5 से बनाए गए सार्वजनिक कार्य। एक क्लिक में प्रॉम्प्ट का पुनः उपयोग करें।

दिखाए गए सार्वजनिक कार्य: 5
Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a... वीडियो

Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a daytime flight. Natural cabin lighting, subtle handheld camera movement, authentic airplane ambience, realistic passengers and natural acting. The video must feel like a real spontaneous phone...

**SORA 2 PROMPT — 20 seconds, vertical 9:16** Create a highly realistic UGC-style smartphone vide... वीडियो

**SORA 2 PROMPT — 20 seconds, vertical 9:16** Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a daytime flight. Natural cabin lighting, subtle handheld camera movement, authentic airplane ambience, realistic passengers and natural acting. The video...

Create a realistic cinematic 20-second video, filmed like a high-budget modern commercial with na... वीडियो

Create a realistic cinematic 20-second video, filmed like a high-budget modern commercial with natural acting, realistic lighting and believable facial expressions. All dialogue is spoken naturally in French. **SCENE 1 — EXPENSIVE RESTAURANT, EVENING — 0–5 sec** A young man in his late 20s is...

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... वीडियो

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scene takes place inside a modern passenger airplane during a daytime flight. Natural smartphone-like cinematography, realistic airplane cabin, authentic passengers, natural lighting, realistic skin...

TITLE: Santa's Secret Christmas Selfie with Dasha 🎄 VIDEO FORMAT: 15–20 seconds, vertical 9:16, c... वीडियो

TITLE: Santa's Secret Christmas Selfie with Dasha 🎄 VIDEO FORMAT: 15–20 seconds, vertical 9:16, cinematic Christmas short film, high-quality realistic 3D animation. REFERENCE IMAGE — DASHA_001 Use the uploaded image as the exact character reference for Dasha. Preserve her recognizable face,...

अनुरोध बनाएँ

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

•आवश्यक

इमेज-निर्माण निर्देश, 2000 वर्णों तक सीमित और चीनी या अंग्रेज़ी में लिखे गए।

image_size डिफ़ॉल्ट square

निर्मित इमेज के आयाम, जिनमें कुल पिक्सेल संख्या 768×768 से 1440×1440 और आस्पेक्ट रेशियो 1:4 से 4:1 तक होना चाहिए। आयाम सीधे निर्दिष्ट करें या 'square' या 'landscape_16_9' जैसे नामित प्रीसेट चुनें।

num_images डिफ़ॉल्ट 1

इमेज निर्माण की संख्या, 1 से 4 तक।

उन्नत negative_prompt · seed · enable_prompt_expansion · enable_safety_checker

अवांछित सामग्री निर्दिष्ट करने वाला नेगेटिव प्रॉम्प्ट, 500 वर्णों तक सीमित।

निर्माण को पुनरुत्पाद्य बनाने वाली सीड। इसे None पर सेट करने से सीड यादृच्छिक रूप से चुनी जाती है।

POST /run/wan-25-preview/text-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/text-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"
  }'

# 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 Text to Image के बारे में

चीनी या अंग्रेजी में 2000 कैरेक्टर्स तक के टेक्स्ट `prompt` से इमेज जेनरेट करता है। `num_images` 1 से 4 तक होता है और `image_size` प्रीसेट्स या स्पष्ट डाइमेंशन्स स्वीकार करता है, जिसमें कुल पिक्सेल 768x768 और 1440x1440 के बीच होते हैं। प्रॉम्प्ट एक्सपेंशन, जो LLM के साथ प्रॉम्प्ट को फिर से लिखता है, डिफ़ॉल्ट रूप से ऑन है। एक `negative_prompt` और `seed` भी उपलब्ध हैं।

पैरामीटर

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

नामप्रकार डिफ़ॉल्टअनुमत विवरण
promptआवश्यक
प्रकारstring
इमेज-निर्माण निर्देश, 2000 वर्णों तक सीमित और चीनी या अंग्रेज़ी में लिखे गए।
negative_promptवैकल्पिक
प्रकारstring | null
अवांछित सामग्री निर्दिष्ट करने वाला नेगेटिव प्रॉम्प्ट, 500 वर्णों तक सीमित।
num_imagesवैकल्पिक num_outputs
प्रकारinteger
डिफ़ॉल्ट1
1 – 4
इमेज निर्माण की संख्या, 1 से 4 तक।
image_sizeवैकल्पिक
प्रकारobject
डिफ़ॉल्टsquare
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
निर्मित इमेज के आयाम, जिनमें कुल पिक्सेल संख्या 768×768 से 1440×1440 और आस्पेक्ट रेशियो 1:4 से 4:1 तक होना चाहिए। आयाम सीधे निर्दिष्ट करें या 'square' या 'landscape_16_9' जैसे नामित प्रीसेट चुनें।
enable_prompt_expansionवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
LLM-आधारित प्रॉम्प्ट पुनर्लेखन, जो छोटे प्रॉम्प्ट के साथ बेहतर परिणामों के बदले अतिरिक्त प्रोसेसिंग समय लेता है।
seedवैकल्पिक
प्रकारinteger | null
निर्माण को पुनरुत्पाद्य बनाने वाली सीड। इसे None पर सेट करने से सीड यादृच्छिक रूप से चुनी जाती है।
enable_safety_checkerवैकल्पिक
प्रकारboolean
डिफ़ॉल्टtrue
सुरक्षा-जांच स्विच, जिसकी off सेटिंग के लिए खाते का प्राधिकरण आवश्यक है। उस प्राधिकरण के बिना, सेटिंग की परवाह किए बिना प्रत्येक अनुरोध की जांच की जाती है; true जाँचकर्ता को सक्षम करता है।
आवश्यक कैनोनिकल नाम, यह भी स्वीकार्य है

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-25-preview/text-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"
  },
  "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": "A lone samurai standing on the edge of a cliff at twilight, overlooking a vast valley shrouded in mist. The sky burns with deep orange and purple hues from the setting sun, casting long, dramatic shadows. The samurai’s silhouette glows against the horizon, with their sword reflecting a glint of fading light. The overall style is hyper-realistic, cinematic, and moody, with dramatic contrast and atmospheric depth."
  },
  "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/hi/developers/models/wan-25-preview/text-to-image.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt