ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

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 ਕੁੰਜੀ ਲਵੋ

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
ਸੁਰੱਖਿਆ ਜਾਂਚ ਸਵਿੱਚ, ਜਿਸ ਦੀ ਬੰਦ ਸੈਟਿੰਗ ਲਈ ਖਾਤਾ ਅਧਿਕਾਰ ਲੋੜੀਂਦਾ ਹੈ। ਇਸ ਅਧਿਕਾਰ ਤੋਂ ਬਿਨਾਂ ਸੈਟਿੰਗ ਦੀ ਪਰਵਾਹ ਕੀਤੇ ਬਿਨਾਂ ਹਰ ਬੇਨਤੀ ਦੀ ਜਾਂਚ ਕੀਤੀ ਜਾਂਦੀ ਹੈ; 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ਵੱਖ-ਵੱਖ ਚਿੱਤਰ ਬਣਾਉਣ ਲਈ ਵਰਤੇ ਗਏ seed ਮੁੱਲ।
actual_prompt
string | nullਮੁੜ-ਲਿਖਣ ਸਮਰੱਥ ਹੋਣ 'ਤੇ ਅਸਲ ਵਿੱਚ ਵਰਤਿਆ ਗਿਆ ਪ੍ਰੌਂਪਟ।

ਹੋਰ ਮਾਡਲ: ਟੈਕਸਟ ਤੋਂ ਚਿੱਤਰ

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/wan-25-preview/text-to-image.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt