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

Wan-2.1 Text-to-Video

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ id wan-t2v
# 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-t2v?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.40 400 API ਕ੍ਰੈਡਿਟ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Alibaba ਟੈਕਸਟ ਤੋਂ ਵੀਡੀਓ 720p ਤੱਕ #text-to-video#motion

Wan 2.1 ਟੈਕਸਟ-ਟੂ-ਵੀਡੀਓ, ਜਿਸ ਵਿੱਚ 480p ਤੋਂ 720p ਤੱਕ ਆਉਟਪੁੱਟ, ਪੋਰਟਰੇਟ ਜਾਂ ਲੈਂਡਸਕੇਪ ਅਤੇ ਵਿਕਲਪਿਕ ਟਰਬੋ ਮੋਡ ਹੈ

Doitong ’ਤੇ ਬਣਾਇਆ ਗਿਆ

Doitong ਭਾਈਚਾਰੇ ਵੱਲੋਂ Wan 2.1 ਨਾਲ ਬਣਾਏ ਜਨਤਕ ਕੰਮ। ਇੱਕ ਕਲਿੱਕ ਨਾਲ ਪ੍ਰੌਮਪਟ ਦੁਬਾਰਾ ਵਰਤੋ।

ਦਿਖਾਏ ਗਏ ਜਨਤਕ ਕੰਮ: 4
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...

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

•ਲੋੜੀਂਦਾ

ਵੀਡੀਓ ਸਿਰਜਣਾ ਨੂੰ ਦਿਸ਼ਾ ਦੇਣ ਵਾਲੀਆਂ ਟੈਕਸਟ ਹਦਾਇਤਾਂ।

resolution ਡਿਫ਼ਾਲਟ 720p

ਆਉਟਪੁੱਟ ਵੀਡੀਓ ਰੈਜ਼ੋਲਿਊਸ਼ਨ: 480p, 580p, ਜਾਂ 720p।

aspect_ratio ਡਿਫ਼ਾਲਟ 16:9

ਆਉਟਪੁੱਟ ਵੀਡੀਓ ਦਾ ਪੱਖ ਅਨੁਪਾਤ, 16:9 ਜਾਂ 9:16।

ਡਿਫ਼ਾਲਟ 81

ਸਿਰਜਣਾ ਲਈ ਫ੍ਰੇਮ ਗਿਣਤੀ, 81 ਤੋਂ 100 ਤੱਕ, ਦੋਵੇਂ ਸਮੇਤ।

ਉੱਨਤ negative_prompt · frames_per_second · num_inference_steps · seed · enable_safety_checker · enable_prompt_expansion · turbo_mode
ਡਿਫ਼ਾਲਟ bright colors, overex...

ਵੀਡੀਓ ਸਿਰਜਣ ਵੇਲੇ ਲਾਗੂ ਕੀਤਾ negative ਪ੍ਰੌਂਪਟ।

ਡਿਫ਼ਾਲਟ 16

ਸਿਰਜੇ ਗਏ ਵੀਡੀਓ ਦੀ ਫ੍ਰੇਮ ਦਰ, ਪ੍ਰਤੀ ਸਕਿੰਟ 5 ਤੋਂ 24 ਫ੍ਰੇਮ ਤੱਕ।

ਡਿਫ਼ਾਲਟ 30

Sampling ਕਦਮਾਂ ਦੀ ਗਿਣਤੀ; ਗਿਣਤੀ ਵਧਣ ਨਾਲ ਵੱਧ ਪ੍ਰੋਸੈਸਿੰਗ ਸਮੇਂ ਦੇ ਬਦਲੇ ਬਿਹਤਰ ਗੁਣਵੱਤਾ ਮਿਲਦੀ ਹੈ।

ਸਿਰਜਣਾ ਨੂੰ ਦੁਹਰਾਉਣਯੋਗ ਬਣਾਉਣ ਵਾਲਾ ਸੀਡ। ਇਸਨੂੰ None ਸੈੱਟ ਕਰਨ ਨਾਲ ਸੀਡ ਬੇਤਰਤੀਬੇ ਢੰਗ ਨਾਲ ਚੁਣਿਆ ਜਾਂਦਾ ਹੈ।

POST /run/wan-t2v?wait=20 ਕੋਟ → $0.40
# 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-t2v?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.1 Text-to-Video ਬਾਰੇ

ਟੈਕਸਟ `prompt` ਤੋਂ ਛੋਟੀ ਵੀਡੀਓ ਕਲਿੱਪ ਬਣਾਉਂਦਾ ਹੈ। ਰੈਜ਼ੋਲਿਊਸ਼ਨ 480p, 580p ਜਾਂ 720p ਹੋ ਸਕਦਾ ਹੈ, ਅਤੇ ਆਸਪੈਕਟ ਰੇਸ਼ੋ 16:9 ਜਾਂ 9:16 ਹੁੰਦਾ ਹੈ। `num_frames` 81 ਤੋਂ 100 ਅਤੇ `frames_per_second` 5 ਤੋਂ 24 ਤੱਕ ਹੁੰਦਾ ਹੈ। ਇਹ `negative_prompt`, `seed`, ਵਿਕਲਪਿਕ ਪ੍ਰੌਮਪਟ ਵਿਸਤਾਰ ਅਤੇ ਤੇਜ਼ ਰਨ ਲਈ `turbo_mode` ਸਵਿੱਚ ਵੀ ਸਵੀਕਾਰ ਕਰਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
ਵੀਡੀਓ ਸਿਰਜਣਾ ਨੂੰ ਦਿਸ਼ਾ ਦੇਣ ਵਾਲੀਆਂ ਟੈਕਸਟ ਹਦਾਇਤਾਂ।
negative_promptਵਿਕਲਪਿਕ
ਕਿਸਮstring
ਡਿਫ਼ਾਲਟbright colors, overexposed, static, blurred details, subtitles, style, artwork, painting, picture, still, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, malformed limbs, fused fingers, still picture, cluttered background, three legs, many people in the background, walking backwards
ਵੀਡੀਓ ਸਿਰਜਣ ਵੇਲੇ ਲਾਗੂ ਕੀਤਾ negative ਪ੍ਰੌਂਪਟ।
num_framesਵਿਕਲਪਿਕ
ਕਿਸਮinteger | null
ਡਿਫ਼ਾਲਟ81
81 – 100
ਸਿਰਜਣਾ ਲਈ ਫ੍ਰੇਮ ਗਿਣਤੀ, 81 ਤੋਂ 100 ਤੱਕ, ਦੋਵੇਂ ਸਮੇਤ।
frames_per_secondਵਿਕਲਪਿਕ
ਕਿਸਮinteger | null
ਡਿਫ਼ਾਲਟ16
5 – 24
ਸਿਰਜੇ ਗਏ ਵੀਡੀਓ ਦੀ ਫ੍ਰੇਮ ਦਰ, ਪ੍ਰਤੀ ਸਕਿੰਟ 5 ਤੋਂ 24 ਫ੍ਰੇਮ ਤੱਕ।
seedਵਿਕਲਪਿਕ
ਕਿਸਮinteger | null
ਸਿਰਜਣਾ ਨੂੰ ਦੁਹਰਾਉਣਯੋਗ ਬਣਾਉਣ ਵਾਲਾ ਸੀਡ। ਇਸਨੂੰ None ਸੈੱਟ ਕਰਨ ਨਾਲ ਸੀਡ ਬੇਤਰਤੀਬੇ ਢੰਗ ਨਾਲ ਚੁਣਿਆ ਜਾਂਦਾ ਹੈ।
resolutionਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ720p
480p580p720p
ਆਉਟਪੁੱਟ ਵੀਡੀਓ ਰੈਜ਼ੋਲਿਊਸ਼ਨ: 480p, 580p, ਜਾਂ 720p।
aspect_ratioਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ16:9
9:1616:9
ਆਉਟਪੁੱਟ ਵੀਡੀਓ ਦਾ ਪੱਖ ਅਨੁਪਾਤ, 16:9 ਜਾਂ 9:16।
num_inference_stepsਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ30
2 – 40
Sampling ਕਦਮਾਂ ਦੀ ਗਿਣਤੀ; ਗਿਣਤੀ ਵਧਣ ਨਾਲ ਵੱਧ ਪ੍ਰੋਸੈਸਿੰਗ ਸਮੇਂ ਦੇ ਬਦਲੇ ਬਿਹਤਰ ਗੁਣਵੱਤਾ ਮਿਲਦੀ ਹੈ।
enable_safety_checkerਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟfalse
ਸੁਰੱਖਿਆ ਜਾਂਚ ਸਵਿੱਚ, ਜਿਸ ਦੀ ਬੰਦ ਸੈਟਿੰਗ ਲਈ ਖਾਤਾ ਅਧਿਕਾਰ ਲੋੜੀਂਦਾ ਹੈ। ਇਸ ਅਧਿਕਾਰ ਤੋਂ ਬਿਨਾਂ ਸੈਟਿੰਗ ਦੀ ਪਰਵਾਹ ਕੀਤੇ ਬਿਨਾਂ ਹਰ ਬੇਨਤੀ ਦੀ ਜਾਂਚ ਕੀਤੀ ਜਾਂਦੀ ਹੈ; true ਜਾਂਚਕਰਤਾ ਨੂੰ ਸਮਰੱਥ ਕਰਦਾ ਹੈ।
enable_prompt_expansionਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟfalse
ਨਿਯੰਤਰਿਤ ਕਰਦਾ ਹੈ ਕਿ ਪ੍ਰੌਂਪਟ ਵਿਸਥਾਰ ਸਮਰਥਿਤ ਹੈ ਜਾਂ ਨਹੀਂ।
turbo_modeਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟfalse
ਤੇਜ਼ ਵੀਡੀਓ ਸਿਰਜਣਾ ਟੌਗਲ। ਇਸਨੂੰ ਚਾਲੂ ਕਰਨ ਨਾਲ ਦ੍ਰਿਸ਼ ਗੁਣਵੱਤਾ ਵਿੱਚ ਧਿਆਨਯੋਗ ਘਾਟ ਤੋਂ ਬਿਨਾਂ ਸਿਰਜਣਾ ਦਾ ਸਮਾਂ ਘੱਟ ਹੁੰਦਾ ਹੈ।
ਲੋੜੀਂਦਾ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-t2v",
  "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": 400,
    "usd": "0.40",
    "charged": 400,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "seed": 42
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "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 ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
video
object {url, content_type, file_name, file_size}ਸਿਰਜਣਾ ਨਾਲ ਤਿਆਰ ਕੀਤੀ ਵੀਡੀਓ ਫ਼ਾਈਲ।
seed
integerਸਿਰਜਣਾ ਦੌਰਾਨ ਲਾਗੂ ਕੀਤਾ ਗਿਆ ਸੀਡ ਮੁੱਲ।

ਹੋਰ ਮਾਡਲ: ਟੈਕਸਟ ਤੋਂ ਵੀਡੀਓ

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