Peke ki ngā ihirangi

Wan · v2.7 · Edit Video

Whakauru

id tauira 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"

Ngā kōnae pēnei i te tauira: $ 1.50 1,500 whiwhinga API ka inea ō kōnae i mua i te whakahaere Whakahaerehia ki tēnei whārangi

Tikina he kī API
Alibaba Ataata ki te Ataata Ngā tāuru tohutoroTukutahi Ngutu0–10 stae atu ki 1080p #stylized#transform#lipsync

Te whakatika ataata me te whakawhiti kāhua a Wan 2.7 mai i tētahi tohutohu, me te whakahaere kōwhiringa i te atahanga tohutoro me te ororongo

Alibaba · Ataata

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana

He whakaahuatanga o te whakatika hei mahi, o te kāhua rānei hei whakawhiti.

•e hiahiatia ana video_url
Whakataka he kōnae,

URL e tohu ana ki te ataata e whakatikahia ana, me MP4, MOV rānei, kaua e nui ake i te 100 MB, ā, kia 2 ki te 10 hēkona te roa. He 30 hēkona te wā tatari.

duration 0 s

Te tautuhinga roa ataata: mā tētahi uara motuhake mai i te 2–10 e pupuri taua maha o ngā hēkona mai i te tīmatanga o te tāuru, ā, mā te uara taunoa 0 e whakamahi te roanga katoa o te tāuru.

resolution taunoa 1080p

Te taumata taumira mō te ataata ka puta.

aspect_ratio

Tautuhia ngā ōwehenga o te ataata kua whakaputaina, waiho rānei tēnei uara kia whiwhi i te ōwehenga āhuatanga o te ataata tāuru.

Arā atu reference_image_url · audio_setting · seed · enable_safety_checker
Whakataka he kōnae,

URL e tohu ana ki te atahanga ka whakamahia hei tohutoro whakatika.

audio_setting taunoa auto

Kōwhiria te whakahaere ororongo: pupuritia te ara oro o te ataata tāuru mā 'origin', tukuna rānei mā te tauira e whakatau mēnā ka whakaputa anō mā 'auto'.

Te kākano matapōkere mō ngā putanga ka taea te tārua, mai i te 0 ki te 2147483647.

POST /run/wan/v2.7/edit-video?wait=20 utu → $ 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"

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Wan · v2.7 · Edit Video

Whakatika ai i tētahi `video_url` MP4, MOV rānei 2 ki te 10 hēkona te roa (tae atu ki te 100 MB) e whai ana i tētahi `prompt`. Ka ārahi pea te whakatikanga e tētahi `reference_image_url`. Ko `resolution` he 720p, he 1080p rānei, ā, ko `aspect_ratio` pea 16:9, 9:16, 1:1, 4:3, 3:4 rānei, ko te mea taunoa ko tō te tāuru. Mā `duration` 2 ki te 10 hēkona e poro te putanga, ā, ka taea e `audio_setting` te pupuri i te oro taketake.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
prompte hiahiatia ana
Momostring
He whakaahuatanga o te whakatika hei mahi, o te kāhua rānei hei whakawhiti.
video_urle hiahiatia ana video
Momourl · video
URL e tohu ana ki te ataata e whakatikahia ana, me MP4, MOV rānei, kaua e nui ake i te 100 MB, ā, kia 2 ki te 10 hēkona te roa. He 30 hēkona te wā tatari.
reference_image_urlkōwhiringa
Momourl · image
URL e tohu ana ki te atahanga ka whakamahia hei tohutoro whakatika.
resolutionkōwhiringa
Momoenum
Taunoa1080p
720p1080p
Te taumata taumira mō te ataata ka puta.
aspect_ratiokōwhiringa
Momoenum
16:99:161:14:33:4
Tautuhia ngā ōwehenga o te ataata kua whakaputaina, waiho rānei tēnei uara kia whiwhi i te ōwehenga āhuatanga o te ataata tāuru.
durationkōwhiringa
Momoenum
Taunoa0
02345678910
Te tautuhinga roa ataata: mā tētahi uara motuhake mai i te 2–10 e pupuri taua maha o ngā hēkona mai i te tīmatanga o te tāuru, ā, mā te uara taunoa 0 e whakamahi te roanga katoa o te tāuru.
audio_settingkōwhiringa
Momoenum
Taunoaauto
autoorigin
Kōwhiria te whakahaere ororongo: pupuritia te ara oro o te ataata tāuru mā 'origin', tukuna rānei mā te tauira e whakatau mēnā ka whakaputa anō mā 'auto'.
seedkōwhiringa
Momointeger | null
Te kākano matapōkere mō ngā putanga ka taea te tārua, mai i te 0 ki te 2147483647.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Te āta tirotiro i te tāuru me te putanga, ka whakatinanahia ki ia tono ki te kore e whai mana te pūkete ki te whakakore, ā, kua whakawetohia te kōwhiringa.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}Te kōnae ataata ka puta i te whakatika.
seed
integerTe uara kākano i whakamahia i te whakaputanga.
actual_prompt
string | nullTe tohutohu i whakamahia tonutia i te wā i whakahohea ai te tuhi anō tohutohu.

Ētahi atu tauira: Ataata ki te Ataata

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/wan/v2.7/edit-video.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt