Peke ki ngā ihirangi

Alibaba V2.6 · Reference to Video · Flash

Whakauru

id tauira wan/v2.6/reference-to-video/flash
# 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.6/reference-to-video/flash?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"

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

Tikina he kī API
Alibaba Tohutoro ki te Ataata Ororongo taketakeNgā tāuru tohutoroTere5–10 stae atu ki 1080p #reference-to-video

Reference-to-video tere e pupuri ana i ngā kaupapa mai i ngā whakaahua, topenga rānei 5 te nui, mō te 5, 10 hēkona rānei, me te oro

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 tohutohu ataata tae atu ki te 1500 pūāhua, e whakamahi ana i Character1, Character2, me ērā atu hei tautuhi i ngā tāngata, kararehe, mea rānei kei ngā kōnae tohutoro. Ka whai te tatau kaupapa i te video_urls i mua i te image_urls. Mō ngā anga maha, whakamahia: '[0-3s] Shot 1. [3-6s] Shot 2.'

duration 5 s

Tautuhia te roa o te ataata kua whakaputaina, i ngā hēkona. Mō R2V Flash, ko ngā roanga e wātea ana ko 5, 10 hēkona anake.

aspect_ratio taunoa 16:9

Āwehenga āhuatanga mō te ataata putanga.

resolution taunoa 1080p

Te taumata taumira mō te putanga ataata; ka whakaae a R2V Flash ki te 720p, 1080p rānei anake.

Arā atu negative_prompt · videos · images · seed · enable_prompt_expansion · multi_shots · enable_safety_checker
taunoa

He tohutohu kino e tohu ana i ngā ihirangi kāore e hiahiatia, he 500 pūāhua te mōrahi.

video_urls
Whakataka he kōnae,

Whakaratohia 0–3 ataata hei pupuri i te ōritetanga kaupapa; me 16 FPS neke atu ia ataata, kia 2–30 hēkona te roa, ā, kaua e nui ake i te 100 MB. Ko te tapeke tatau i waenga i video_urls me image_urls me kaua e neke ake i te 5. Mā te tatau kaupapa aunoa e tautapa Character1, Character2, me ērā atu ki video_urls i mua i te haere ki image_urls.

image_urls
Whakataka he kōnae,

Whakaratohia 0–5 atahanga hei pupuri i te ōritetanga kaupapa, kaua e neke ake i te 5 ngā tohutoro katoa puta noa i image_urls me video_urls; ka whiwhi image_urls i ngā nama kaupapa i muri i video_urls. Me 240–5000px te taumira o ia atahanga, ā, kaua e nui ake i te 10 MB te rahi o te kōnae. Ko ngā hōputu e whakaaetia ana ko JPEG, JPG, BMP, WEBP me PNG kāore he alpha.

Te kākano e taea ai te tārua o te whakaputanga. Mā te tautuhi ki None e kōwhiri matapōkeretia ai he kākano.

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

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ō Alibaba V2.6 · Reference to Video · Flash

Ka whakaputa ataata ka puta ngā kaupapa mai i ngā kōnae tohutoro hei Character1, Character2, me ērā atu i roto i te `prompt`. Whakakotahitia kia 3 `video_urls` me kia 5 `image_urls`, kaua e neke atu i te 5 ngā tohutoro katoa. Ko te roa he 5, 10 rānei hēkona, ko te taumira he 720p, 1080p rānei, ā, ko te ōwehenga āhuatanga he 16:9, 9:16, 1:1, 4:3, 3:4 rānei. Ka taea te whakakā, te whakaweto rānei i ngā tohutohu multi-shot me te whakaputanga ororongo.

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 tohutohu ataata tae atu ki te 1500 pūāhua, e whakamahi ana i Character1, Character2, me ērā atu hei tautuhi i ngā tāngata, kararehe, mea rānei kei ngā kōnae tohutoro. Ka whai te tatau kaupapa i te video_urls i mua i te image_urls. Mō ngā anga maha, whakamahia: '[0-3s] Shot 1. [3-6s] Shot 2.'
video_urlskōwhiringa videos
Momourl[] · video
Whakaratohia 0–3 ataata hei pupuri i te ōritetanga kaupapa; me 16 FPS neke atu ia ataata, kia 2–30 hēkona te roa, ā, kaua e nui ake i te 100 MB. Ko te tapeke tatau i waenga i video_urls me image_urls me kaua e neke ake i te 5. Mā te tatau kaupapa aunoa e tautapa Character1, Character2, me ērā atu ki video_urls i mua i te haere ki image_urls.
image_urlskōwhiringa images
Momourl[] · image
Whakaratohia 0–5 atahanga hei pupuri i te ōritetanga kaupapa, kaua e neke ake i te 5 ngā tohutoro katoa puta noa i image_urls me video_urls; ka whiwhi image_urls i ngā nama kaupapa i muri i video_urls. Me 240–5000px te taumira o ia atahanga, ā, kaua e nui ake i te 10 MB te rahi o te kōnae. Ko ngā hōputu e whakaaetia ana ko JPEG, JPG, BMP, WEBP me PNG kāore he alpha.
aspect_ratiokōwhiringa
Momoenum
Taunoa16:9
16:99:161:14:33:4
Āwehenga āhuatanga mō te ataata putanga.
resolutionkōwhiringa
Momoenum
Taunoa1080p
720p1080p
Te taumata taumira mō te putanga ataata; ka whakaae a R2V Flash ki te 720p, 1080p rānei anake.
durationkōwhiringa
Momoenum
Taunoa5
510
Tautuhia te roa o te ataata kua whakaputaina, i ngā hēkona. Mō R2V Flash, ko ngā roanga e wātea ana ko 5, 10 hēkona anake.
negative_promptkōwhiringa
Momostring | null
Taunoa
He tohutohu kino e tohu ana i ngā ihirangi kāore e hiahiatia, he 500 pūāhua te mōrahi.
enable_prompt_expansionkōwhiringa
Momoboolean
Taunoatrue
Ka whakahaere mēnā ka tuhi anō te LLM i te tohutohu.
multi_shotskōwhiringa
Momoboolean
Taunoatrue
Te whakahaere wehewehenga anga, e wātea ana ina tautuhia enable_prompt_expansion ki True anake. Mā te taunoa true e whakamahi te wehewehenga atamai hei hanga kōrero taurite puta noa i ngā anga; mā false e pupuri te ataata hei anga kotahi haere tonu.
generate_audiokōwhiringa
Momoboolean
Taunoatrue
Kōwhiria te whakaputa ataata wahangū mā false, whakahohea rānei te ororongo hei whakauru oro ki te ataata kua whakaputaina.
seedkōwhiringa
Momointeger | null
Te kākano e taea ai te tārua o te whakaputanga. Mā te tautuhi ki None e kōwhiri matapōkeretia ai he kākano.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Whakakā/whakaweto tirotiro haumaru, me whakamana pūkete te tautuhinga whakaweto. Ki te kore taua whakamana, ka tirohia ia tono ahakoa te tautuhinga; mā true e whakakā te kaitirotiro.
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.6/reference-to-video/flash",
  "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": "Dance battle between Character1 and Character2, cinematic lighting, dynamic camera movement."
  },
  "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.
seed
integerTe uara kākano i whakamahia i te whakaputanga.
actual_prompt
string | nullTe tohutohu i whakamahia tonutia i te wā e whakahohea ana te tuhi anō.

Ētahi atu tauira: Tohutoro 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.6/reference-to-video/flash.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt