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

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 वीडियो संपादन और स्टाइल ट्रांसफ़र, जिसमें वैकल्पिक संदर्भ इमेज और ऑडियो हैंडलिंग है

Alibaba · वीडियो

आपका पहला परिणाम यहाँ आएगा

नीचे एक अनुरोध बनाएँ और उसे अपनी API कुंजी से चलाएँ। आउटपुट हमारे स्टोरेज में कॉपी किए जाते हैं और हमेशा के लिए या 7 दिन तक मुफ़्त में रखे जाते हैं।

अनुरोध बनाएँ

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

•आवश्यक

किए जाने वाले संपादन या स्थानांतरित की जाने वाली शैली का विवरण।

•आवश्यक video_url
फ़ाइल ड्रॉप करें, या

संपादित की जा रही वीडियो का URL; यह MP4 या MOV फ़ाइल होनी चाहिए, 100 MB से बड़ी नहीं और 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; यह MP4 या MOV फ़ाइल होनी चाहिए, 100 MB से बड़ी नहीं और 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/hi/developers/models/wan/v2.7/edit-video.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt