Peke ki ngā ihirangi

Vidu · Q2 · Reference to Video · Pro

Whakauru

id tauira vidu/q2/reference-to-video/pro
# 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/vidu/q2/reference-to-video/pro?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.30 300 whiwhinga API ka inea ō kōnae i mua i te whakahaere Whakahaerehia ki tēnei whārangi

Tikina he kī API
Vidu · 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 88 / 2000

Tohutohu kuputuhi mō te whakaputa ataata, 2000 pūāhua te mōrahi.

resolution taunoa 720p

Taumira o te ataata hua.

taunoa 16:9

Tautuhia ngā ōwehenga whanui-ki-teitei o te ataata mā auto, 16:9, 9:16, 1:1, tētahi atu uara W:H rānei.

taunoa 4

Roa ataata i roto i ngā hēkona; mā te 0 e kōwhiri te roanga aunoa.

Arā atu images · reference_video_urls · movement_amplitude · seed · bgm
reference_image_urls
Whakataka he kōnae,

URL atahanga tohutoro āhua kaupapa, 7 te mōrahi ina kāore he tāuru ataata. Mā te whakauru ataata ka heke te whakaaetanga atahanga ki te 4.

Whakataka he kōnae,

Ngā tāuru ataata tohutoro mā URL, 2 te mōrahi; hei rawa whakatika, hei tohutoro nekehanga rānei.

movement_amplitude taunoa auto

Te whānui o te nekehanga ahanoa i roto i te anga.

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/vidu/q2/reference-to-video/pro?wait=20 utu → $ 0.30
# 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/vidu/q2/reference-to-video/pro?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ō Vidu · Q2 · Reference to Video · Pro

Ka whakaputa ataata mai i tētahi tohutohu tae atu ki te 2000 pūāhua me ngā pāpāho tohutoro. Ka whakaaetia e `reference_image_urls` kia 7 atahanga, kia 4 rānei ina tukuna ngā ataata; ka whakaaetia e `reference_video_urls` kia 2 ataata mō te whakatika, mō te tohutoro nekehanga rānei. Ko `duration` 1-8 hēkona, ko `resolution` 540p, 720p, 1080p rānei, ā, he āhuatanga wātea noa a `aspect_ratio`. He kōwhiringa `bgm`.

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
≤ 2,000 pūāhua
Tohutohu kuputuhi mō te whakaputa ataata, 2000 pūāhua te mōrahi.
reference_image_urlskōwhiringa images
Momourl[] · image
URL atahanga tohutoro āhua kaupapa, 7 te mōrahi ina kāore he tāuru ataata. Mā te whakauru ataata ka heke te whakaaetanga atahanga ki te 4.
reference_video_urlskōwhiringa
Momourl[] · video
Ngā tāuru ataata tohutoro mā URL, 2 te mōrahi; hei rawa whakatika, hei tohutoro nekehanga rānei.
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.
durationkōwhiringa
Momointeger
Taunoa4
1 – 8
Roa ataata i roto i ngā hēkona; mā te 0 e kōwhiri te roanga aunoa.
resolutionkōwhiringa
Momoenum
Taunoa720p
540p720p1080p
Taumira o te ataata hua.
aspect_ratiokōwhiringa
Momostring
Taunoa16:9
Tautuhia ngā ōwehenga whanui-ki-teitei o te ataata mā auto, 16:9, 9:16, 1:1, tētahi atu uara W:H rānei.
movement_amplitudekōwhiringa
Momoenum
Taunoaauto
autosmallmediumlarge
Te whānui o te nekehanga ahanoa i roto i te anga.
bgmkōwhiringa
Momoboolean
Taunoafalse
Ka whakahaere mēnā he pūoru papamuri kei roto i te ataata kua whakaputaina.
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": "vidu/q2/reference-to-video/pro",
  "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": 300,
    "usd": "0.30",
    "charged": 300,
    "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
    }
  },
  "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}Putanga ataata Q2 Pro, e ārahina ana tōna whakaputanga e ngā tohutoro ataata, atahanga rānei.

Ē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/vidu/q2/reference-to-video/pro.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt