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

Wan · v2.7 · Edit Video

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

ਮਾਡਲ id wan/v2.7/edit-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/edit-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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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"

ਉਦਾਹਰਨ ਵਰਗੀਆਂ ਫ਼ਾਈਲਾਂ: $1.50 1,500 API ਕ੍ਰੈਡਿਟ ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ ਚਲਾਉਣ ਤੋਂ ਪਹਿਲਾਂ ਮਾਪੀਆਂ ਜਾਂਦੀਆਂ ਹਨ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Alibaba ਵੀਡੀਓ ਤੋਂ ਵੀਡੀਓ ਹਵਾਲਾ ਇਨਪੁੱਟਲਿਪਸਿੰਕ0–10 s1080p ਤੱਕ #stylized#transform#lipsync

ਵਿਕਲਪਿਕ ਹਵਾਲਾ ਚਿੱਤਰ ਅਤੇ ਆਡੀਓ ਹੈਂਡਲਿੰਗ ਨਾਲ ਪ੍ਰੌਂਪਟ-ਅਧਾਰਿਤ Wan 2.7 ਵੀਡੀਓ ਸੰਪਾਦਨ ਅਤੇ ਸਟਾਈਲ ਟ੍ਰਾਂਸਫਰ

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

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

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

ਰਿਕਵੈਸਟ ਬਣਾਓ

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

•ਲੋੜੀਂਦਾ

ਕੀਤੇ ਜਾਣ ਵਾਲੇ ਸੰਪਾਦਨ ਜਾਂ ਟ੍ਰਾਂਸਫ਼ਰ ਕੀਤੀ ਜਾਣ ਵਾਲੀ ਸਟਾਈਲ ਦਾ ਵੇਰਵਾ।

•ਲੋੜੀਂਦਾ video_url
ਫ਼ਾਈਲ ਛੱਡੋ, ਜਾਂ

ਸੰਪਾਦਿਤ ਕੀਤੀ ਜਾ ਰਹੀ ਵੀਡੀਓ ਵੱਲ ਇਸ਼ਾਰਾ ਕਰਦਾ URL; ਇਹ 100 MB ਤੋਂ ਵੱਡੀ ਨਾ ਹੋਣ ਵਾਲੀ MP4 ਜਾਂ MOV ਫ਼ਾਈਲ ਅਤੇ 2 ਤੋਂ 10 ਸਕਿੰਟ ਲੰਬੀ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ। ਟਾਈਮਆਉਟ 30 ਸਕਿੰਟ ਹੈ।

duration 0 s

ਵੀਡੀਓ ਲੰਬਾਈ ਸੈਟਿੰਗ: 2–10 ਵਿਚਕਾਰ ਸਪਸ਼ਟ ਮੁੱਲ ਇਨਪੁੱਟ ਦੇ ਸ਼ੁਰੂ ਤੋਂ ਉਨੇ ਸਕਿੰਟ ਰੱਖਦਾ ਹੈ, ਜਦਕਿ ਪੂਰਵ-ਨਿਰਧਾਰਤ ਮੁੱਲ 0 ਇਨਪੁੱਟ ਦੀ ਪੂਰੀ ਮਿਆਦ ਵਰਤਦਾ ਹੈ।

resolution ਡਿਫ਼ਾਲਟ 1080p

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

aspect_ratio

ਤਿਆਰ ਕੀਤੇ ਵੀਡੀਓ ਦੇ ਅਨੁਪਾਤ ਸਪਸ਼ਟ ਤੌਰ 'ਤੇ ਸੈੱਟ ਕਰੋ, ਜਾਂ ਇਨਪੁੱਟ ਵੀਡੀਓ ਦਾ aspect ratio ਅਪਣਾਉਣ ਲਈ ਇਹ ਮੁੱਲ ਛੱਡ ਦਿਓ।

ਉੱਨਤ reference_image_url · audio_setting · seed · enable_safety_checker
ਫ਼ਾਈਲ ਛੱਡੋ, ਜਾਂ

ਸੰਪਾਦਨ ਹਵਾਲੇ ਵਜੋਂ ਵਰਤੇ ਗਏ ਚਿੱਤਰ ਵੱਲ ਇਸ਼ਾਰਾ ਕਰਦਾ URL।

audio_setting ਡਿਫ਼ਾਲਟ auto

ਆਡੀਓ ਸੰਭਾਲਣ ਦਾ ਤਰੀਕਾ ਚੁਣੋ: 'origin' ਨਾਲ ਇਨਪੁੱਟ ਵੀਡੀਓ ਦਾ ਸਾਊਂਡਟ੍ਰੈਕ ਰੱਖੋ, ਜਾਂ 'auto' ਨਾਲ ਮਾਡਲ ਨੂੰ ਇਹ ਨਿਰਧਾਰਤ ਕਰਨ ਦਿਓ ਕਿ ਇਸਨੂੰ ਦੁਬਾਰਾ ਬਣਾਉਣਾ ਹੈ ਜਾਂ ਨਹੀਂ।

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

POST /run/wan/v2.7/edit-video?wait=20 ਕੋਟ → $1.50
# 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/edit-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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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 · v2.7 · Edit Video ਬਾਰੇ

`prompt` ਦੇ ਅਨੁਸਾਰ 2 ਤੋਂ 10 ਸਕਿੰਟ ਦੀ MP4 ਜਾਂ MOV `video_url` (ਵੱਧ ਤੋਂ ਵੱਧ 100 MB) ਸੰਪਾਦਿਤ ਕਰਦਾ ਹੈ। `reference_image_url` ਸੰਪਾਦਨ ਲਈ ਮਾਰਗਦਰਸ਼ਨ ਕਰ ਸਕਦਾ ਹੈ। `resolution` 720p ਜਾਂ 1080p ਹੁੰਦਾ ਹੈ ਅਤੇ `aspect_ratio` 16:9, 9:16, 1:1, 4:3 ਜਾਂ 3:4 ਹੋ ਸਕਦਾ ਹੈ, ਜਿਸ ਦਾ ਮੂਲ ਮੁੱਲ ਇਨਪੁਟ ਵਾਲਾ ਹੁੰਦਾ ਹੈ। 2 ਤੋਂ 10 ਸਕਿੰਟ ਦਾ `duration` ਆਉਟਪੁੱਟ ਨੂੰ ਕੱਟਦਾ ਹੈ ਅਤੇ `audio_setting` ਮੂਲ ਆਡੀਓ ਨੂੰ ਸੁਰੱਖਿਅਤ ਰੱਖ ਸਕਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

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

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
ਕੀਤੇ ਜਾਣ ਵਾਲੇ ਸੰਪਾਦਨ ਜਾਂ ਟ੍ਰਾਂਸਫ਼ਰ ਕੀਤੀ ਜਾਣ ਵਾਲੀ ਸਟਾਈਲ ਦਾ ਵੇਰਵਾ।
video_urlਲੋੜੀਂਦਾ video
ਕਿਸਮurl · video
ਸੰਪਾਦਿਤ ਕੀਤੀ ਜਾ ਰਹੀ ਵੀਡੀਓ ਵੱਲ ਇਸ਼ਾਰਾ ਕਰਦਾ URL; ਇਹ 100 MB ਤੋਂ ਵੱਡੀ ਨਾ ਹੋਣ ਵਾਲੀ MP4 ਜਾਂ MOV ਫ਼ਾਈਲ ਅਤੇ 2 ਤੋਂ 10 ਸਕਿੰਟ ਲੰਬੀ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ। ਟਾਈਮਆਉਟ 30 ਸਕਿੰਟ ਹੈ।
reference_image_urlਵਿਕਲਪਿਕ
ਕਿਸਮurl · image
ਸੰਪਾਦਨ ਹਵਾਲੇ ਵਜੋਂ ਵਰਤੇ ਗਏ ਚਿੱਤਰ ਵੱਲ ਇਸ਼ਾਰਾ ਕਰਦਾ URL।
resolutionਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ1080p
720p1080p
ਨਤੀਜੇ ਵਾਲੀ ਵੀਡੀਓ ਲਈ ਰੈਜ਼ੋਲਿਊਸ਼ਨ ਪੱਧਰ।
aspect_ratioਵਿਕਲਪਿਕ
ਕਿਸਮenum
16:99:161:14:33:4
ਤਿਆਰ ਕੀਤੇ ਵੀਡੀਓ ਦੇ ਅਨੁਪਾਤ ਸਪਸ਼ਟ ਤੌਰ 'ਤੇ ਸੈੱਟ ਕਰੋ, ਜਾਂ ਇਨਪੁੱਟ ਵੀਡੀਓ ਦਾ aspect ratio ਅਪਣਾਉਣ ਲਈ ਇਹ ਮੁੱਲ ਛੱਡ ਦਿਓ।
durationਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ0
02345678910
ਵੀਡੀਓ ਲੰਬਾਈ ਸੈਟਿੰਗ: 2–10 ਵਿਚਕਾਰ ਸਪਸ਼ਟ ਮੁੱਲ ਇਨਪੁੱਟ ਦੇ ਸ਼ੁਰੂ ਤੋਂ ਉਨੇ ਸਕਿੰਟ ਰੱਖਦਾ ਹੈ, ਜਦਕਿ ਪੂਰਵ-ਨਿਰਧਾਰਤ ਮੁੱਲ 0 ਇਨਪੁੱਟ ਦੀ ਪੂਰੀ ਮਿਆਦ ਵਰਤਦਾ ਹੈ।
audio_settingਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟauto
autoorigin
ਆਡੀਓ ਸੰਭਾਲਣ ਦਾ ਤਰੀਕਾ ਚੁਣੋ: 'origin' ਨਾਲ ਇਨਪੁੱਟ ਵੀਡੀਓ ਦਾ ਸਾਊਂਡਟ੍ਰੈਕ ਰੱਖੋ, ਜਾਂ 'auto' ਨਾਲ ਮਾਡਲ ਨੂੰ ਇਹ ਨਿਰਧਾਰਤ ਕਰਨ ਦਿਓ ਕਿ ਇਸਨੂੰ ਦੁਬਾਰਾ ਬਣਾਉਣਾ ਹੈ ਜਾਂ ਨਹੀਂ।
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/edit-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": 1500,
    "usd": "1.50",
    "charged": 1500,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "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/edit-video.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt