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

Wan Text to Video

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

ਮਾਡਲ id wan/v2.7/text-to-video
# 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/v2.7/text-to-video?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.75 750 API ਕ੍ਰੈਡਿਟ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Alibaba ਟੈਕਸਟ ਤੋਂ ਵੀਡੀਓ ਲਿਪਸਿੰਕ2–15 s1080p ਤੱਕ #stylized#transform#lipsync

2-15 ਸਕਿੰਟ ਦੀਆਂ ਕਲਿੱਪਾਂ, ਪੰਜ ਆਕਾਰ ਅਨੁਪਾਤਾਂ ਅਤੇ ਵਿਕਲਪਿਕ ਡਰਾਈਵਿੰਗ ਆਡੀਓ ਵਾਲਾ ਟੈਕਸਟ-ਤੋਂ-ਵੀਡੀਓ

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

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

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

ਰਿਕਵੈਸਟ ਬਣਾਓ

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

•ਲੋੜੀਂਦਾ

ਬਣਾਏ ਜਾਣ ਵਾਲੇ ਵੀਡੀਓ ਦਾ ਵੇਰਵਾ, 5000 ਅੱਖਰਾਂ ਤੱਕ ਸੀਮਿਤ।

duration 5 s

ਬਣਾਈ ਗਈ ਵੀਡੀਓ ਦੀ ਲੰਬਾਈ, ਸਕਿੰਟਾਂ ਵਿੱਚ, 2 ਤੋਂ 15 ਤੱਕ।

aspect_ratio ਡਿਫ਼ਾਲਟ 16:9

ਨਤੀਜੇ ਵਾਲੀ ਵੀਡੀਓ ਦਾ ਪੱਖ ਅਨੁਪਾਤ।

resolution ਡਿਫ਼ਾਲਟ 1080p

ਨਤੀਜੇ ਵਾਲੀ ਵੀਡੀਓ ਲਈ ਰੈਜ਼ੋਲਿਊਸ਼ਨ ਪੱਧਰ।

ਉੱਨਤ negative_prompt · audio · seed · enable_prompt_expansion · enable_safety_checker

ਵੀਡੀਓ ਵਿੱਚ ਸ਼ਾਮਲ ਨਾ ਕੀਤਾ ਜਾਣ ਵਾਲਾ ਸਮੱਗਰੀ, ਵੱਧ ਤੋਂ ਵੱਧ 500 ਅੱਖਰ।

audio_url
ਫ਼ਾਈਲ ਛੱਡੋ, ਜਾਂ

ਡਰਾਈਵਿੰਗ ਆਡੀਓ ਲਈ ਵਿਕਲਪਿਕ URL, ਜੋ ਉਸ ਬੈਕਗ੍ਰਾਊਂਡ ਸੰਗੀਤ ਦੀ ਥਾਂ ਲੈਂਦਾ ਹੈ ਜੋ ਮਾਡਲ ਨਹੀਂ ਤਾਂ ਆਪਣੇ ਆਪ ਬਣਾਉਂਦਾ। ਦਿੱਤੀ ਫ਼ਾਈਲ WAV ਜਾਂ MP3, 3–30 ਸਕਿੰਟ ਲੰਬੀ ਅਤੇ 15 MB ਤੋਂ ਵੱਧ ਨਾ ਹੋਵੇ।

ਦੁਹਰਾਏ ਜਾ ਸਕਣ ਵਾਲੇ ਨਤੀਜਿਆਂ ਲਈ ਬੇਤਰਤੀਬਾ ਸੀਡ, 0 ਤੋਂ 2147483647 ਤੱਕ।

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

5000 ਅੱਖਰਾਂ ਤੱਕ ਦੇ ਟੈਕਸਟ ਪ੍ਰੌਮਪਟ ਤੋਂ ਵੀਡੀਓ ਬਣਾਉਂਦਾ ਹੈ। ਆਉਟਪੁੱਟ 720p ਜਾਂ 1080p, 16:9, 9:16, 1:1, 4:3 ਜਾਂ 3:4 ਵਿੱਚ, 2 ਤੋਂ 15 ਸਕਿੰਟਾਂ ਦੀ ਮਿਆਦ ਵਾਲੀ ਹੁੰਦੀ ਹੈ। ਕਲਿੱਪ ਨੂੰ ਡਰਾਈਵ ਕਰਨ ਲਈ `audio_url` (WAV ਜਾਂ MP3, 3-30s) ਦਿੱਤਾ ਜਾ ਸਕਦਾ ਹੈ; ਇਸ ਤੋਂ ਬਿਨਾਂ ਮਾਡਲ ਮੇਲ ਖਾਂਦਾ ਬੈਕਗ੍ਰਾਊਂਡ ਸੰਗੀਤ ਬਣਾਉਂਦਾ ਹੈ। ਨੈਗੇਟਿਵ ਪ੍ਰੌਮਪਟ ਅਤੇ ਪ੍ਰੌਮਪਟ ਵਿਸਥਾਰ ਉਪਲਬਧ ਹਨ।

ਪੈਰਾਮੀਟਰ

ਕੈਨੋਨਿਕਲ ਨਾਮ ਜਾਂ ਨੇਟਿਵ ਨਾਮ ਵਿੱਚੋਂ ਕੋਈ ਇੱਕ ਭੇਜੋ, ਦੋਵੇਂ ਨਹੀਂ। ਕੈਨੋਨਿਕਲ ਨਾਮ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
ਬਣਾਏ ਜਾਣ ਵਾਲੇ ਵੀਡੀਓ ਦਾ ਵੇਰਵਾ, 5000 ਅੱਖਰਾਂ ਤੱਕ ਸੀਮਿਤ।
audio_urlਵਿਕਲਪਿਕ audio
ਕਿਸਮurl · audio
ਡਰਾਈਵਿੰਗ ਆਡੀਓ ਲਈ ਵਿਕਲਪਿਕ URL, ਜੋ ਉਸ ਬੈਕਗ੍ਰਾਊਂਡ ਸੰਗੀਤ ਦੀ ਥਾਂ ਲੈਂਦਾ ਹੈ ਜੋ ਮਾਡਲ ਨਹੀਂ ਤਾਂ ਆਪਣੇ ਆਪ ਬਣਾਉਂਦਾ। ਦਿੱਤੀ ਫ਼ਾਈਲ WAV ਜਾਂ MP3, 3–30 ਸਕਿੰਟ ਲੰਬੀ ਅਤੇ 15 MB ਤੋਂ ਵੱਧ ਨਾ ਹੋਵੇ।
aspect_ratioਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ16:9
16:99:161:14:33:4
ਨਤੀਜੇ ਵਾਲੀ ਵੀਡੀਓ ਦਾ ਪੱਖ ਅਨੁਪਾਤ।
resolutionਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ1080p
720p1080p
ਨਤੀਜੇ ਵਾਲੀ ਵੀਡੀਓ ਲਈ ਰੈਜ਼ੋਲਿਊਸ਼ਨ ਪੱਧਰ।
durationਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ5
23456789101112131415
ਬਣਾਈ ਗਈ ਵੀਡੀਓ ਦੀ ਲੰਬਾਈ, ਸਕਿੰਟਾਂ ਵਿੱਚ, 2 ਤੋਂ 15 ਤੱਕ।
negative_promptਵਿਕਲਪਿਕ
ਕਿਸਮstring | null
ਵੀਡੀਓ ਵਿੱਚ ਸ਼ਾਮਲ ਨਾ ਕੀਤਾ ਜਾਣ ਵਾਲਾ ਸਮੱਗਰੀ, ਵੱਧ ਤੋਂ ਵੱਧ 500 ਅੱਖਰ।
enable_prompt_expansionਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
ਪ੍ਰੌਂਪਟ ਦੀ ਬੁੱਧੀਮਾਨ ਮੁੜ-ਲਿਖਤ ਸਮਰੱਥ ਕਰਦਾ ਹੈ।
seedਵਿਕਲਪਿਕ
ਕਿਸਮinteger | null
ਦੁਹਰਾਏ ਜਾ ਸਕਣ ਵਾਲੇ ਨਤੀਜਿਆਂ ਲਈ ਬੇਤਰਤੀਬਾ ਸੀਡ, 0 ਤੋਂ 2147483647 ਤੱਕ।
enable_safety_checkerਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
ਹਰ ਬੇਨਤੀ 'ਤੇ ਲਾਗੂ ਕੀਤੀ ਜਾਣ ਵਾਲੀ ਇਨਪੁੱਟ ਅਤੇ ਆਉਟਪੁੱਟ ਦੋਵਾਂ ਦੀ ਮਾਡਰੇਸ਼ਨ, ਜਦੋਂ ਤੱਕ ਖਾਤਾ ਇਸਨੂੰ ਬੰਦ ਕਰਨ ਲਈ ਅਧਿਕਾਰਤ ਨਾ ਹੋਵੇ ਅਤੇ ਵਿਕਲਪ ਬੰਦ ਨਾ ਕੀਤਾ ਗਿਆ ਹੋਵੇ।
ਲੋੜੀਂਦਾ ਕੈਨੋਨਿਕਲ ਨਾਮ, ਇਹ ਵੀ ਸਵੀਕਾਰਿਆ ਜਾਂਦਾ ਹੈ

ਫ਼ਾਈਲ ਪੈਰਾਮੀਟਰ ਜਨਤਕ https:// URL, 10 MB ਤੱਕ ਦਾ data: URI, ਜਾਂ ਅੱਪਲੋਡ ਦੇ file_url ਨੂੰ ਸਵੀਕਾਰਦੇ ਹਨ। ਫ਼ਾਈਲਾਂ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.7/text-to-video",
  "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": 750,
    "usd": "0.75",
    "charged": 750,
    "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,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    },
    "seed": 42,
    "actual_prompt": "string"
  },
  "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, width, height, fps, duration, num_frames}ਸਿਰਜਣਾ ਨਾਲ ਤਿਆਰ ਕੀਤੀ ਵੀਡੀਓ ਫ਼ਾਈਲ।
seed
integerਸਿਰਜਣਾ ਦੌਰਾਨ ਲਾਗੂ ਕੀਤਾ ਗਿਆ ਸੀਡ ਮੁੱਲ।
actual_prompt
string | nullਪ੍ਰੌਂਪਟ ਰੀਰਾਈਟਿੰਗ ਸਮਰੱਥ ਹੋਣ 'ਤੇ ਅਸਲ ਵਿੱਚ ਲਾਗੂ ਕੀਤਾ ਗਿਆ ਪ੍ਰੌਂਪਟ।

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

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