Dža ko lil

Vidu Q4 Reference to Video

Integriruj

Modelosko id vidu/q4/reference-to-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/vidu/q4/reference-to-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"
  }'

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

Fajlo sar o misalo: $0.333 333 API krediti tire fajlo si merime angl-o phiripen Phir les kate

Lel API klidin
Vidu Referenca ko Video 4K rezultatoReferencaki inputura3–16 sdži 4K #reference-to-video#multi-shot

Q4 reference-to-video dži ko 12 gambarenca thaj 3 lavutne klipenca, 3-16 sekunda, dži ko 4K

Vidu · Video

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul 88 / 5000

Video-generation prompto limitosa 5000 karakterengo. Referencisar kipa lenge list position-enca, sar [@reference_image_1] thaj [@reference_image_2]; audio clipenge vartisar [reference_audio_1] thaj [reference_audio_2], thaj lungar o numeripe vaš majpalune entrya.

aspect_ratio standardno 16:9

E rezultatoskere videosko proporcia e buxlimasko thaj učimasko.

resolution standardno 720p

Rezolucija e rezultatoske videoski.

standardno 5

Video lungipen ande sekunda, katar 3 dži 16.

Lučhe images · reference_audio_urls · seed · audio · enable_safety_checker
reference_image_urls
Čhiv jekh fajl, vaj

Reference kipa vaš subject consistency, dine sar URL vaj base64 data URI. Lel dži 12 kipa ande png, jpeg, jpg vaj webp format.

Čhiv jekh fajl, vaj

Reference audio vaš voice consistency, dine sar URL vaj base64 data URI. Lel dži 3 mp3 clipa, sako 3–12 sekunda thaj majbaro size 50 MB.

Seed savo kerel o generiripe reproducibilno. Te postavil pes pe None, randomno kidel pes seed.

POST /run/vidu/q4/reference-to-video?wait=20 hesab → $0.333
# 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/q4/reference-to-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"
  }'

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

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal Vidu Q4 Reference to Video

Arakhel jekhe karakterenge, objektongo thaj glosengo dikhipen e dži ko 12 `reference_image_urls` thaj dži ko 3 mp3 klipenca andro `reference_audio_urls` (savo-jekh 3-12 sekunda). O prompto, dži ko 5000 karakterja, vakerel e referencenge pozicija. `duration` si 3-16 sekunda, `resolution` dži ko 4K, thaj `audio` si standardno phandlo.

Parametra

Bičhalav vaj e kanonikano nav vaj e native nav, na duj. Kanonikane nava

NavTip standardnoMuklo Vakeripe
prompttrubul
Tipstring
≤ 5,000 simbolura
Video-generation prompto limitosa 5000 karakterengo. Referencisar kipa lenge list position-enca, sar [@reference_image_1] thaj [@reference_image_2]; audio clipenge vartisar [reference_audio_1] thaj [reference_audio_2], thaj lungar o numeripe vaš majpalune entrya.
reference_image_urlsopcionalno images
Tipurl[] · image
Reference kipa vaš subject consistency, dine sar URL vaj base64 data URI. Lel dži 12 kipa ande png, jpeg, jpg vaj webp format.
reference_audio_urlsopcionalno
Tipurl[] · audio
Reference audio vaš voice consistency, dine sar URL vaj base64 data URI. Lel dži 3 mp3 clipa, sako 3–12 sekunda thaj majbaro size 50 MB.
durationopcionalno
Tipinteger
standardno5
3 – 16
Video lungipen ande sekunda, katar 3 dži 16.
seedopcionalno
Tipinteger | null
Seed savo kerel o generiripe reproducibilno. Te postavil pes pe None, randomno kidel pes seed.
aspect_ratioopcionalno
Tipenum
standardno16:9
16:99:164:33:41:1
E rezultatoskere videosko proporcia e buxlimasko thaj učimasko.
resolutionopcionalno
Tipenum
standardno720p
540p720p1080p2K4K
Rezolucija e rezultatoske videoski.
audioopcionalno
Tipboolean
standardnofalse
Video soundtrack togglo: false astarel o rezultato bi lavengo; kana si aktivno, kerel dialogo thaj sound efekta jekhetane le videosa.
enable_safety_checkeropcionalno
Tipboolean
standardnotrue
Screening šaj te avel relaksirime te postavil pes false, numa kana o manglo si autorizuime.
trubul Kanonikano nav, vi akceptime

Fajloske parametra lel jekh publikano https:// URL, jekh data: URI dži 10 MB, vaj e file_url uploadoski. Fajlura

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "vidu/q4/reference-to-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": 333,
    "usd": "0.333",
    "charged": 333,
    "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
    },
    "cover_image": {
      "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
    },
    "seed": 42
  },
  "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"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
video
object {url, content_type, file_name, file_size}Video kerdo le Q4 Preview modelostar referencesa.
cover_image
object {url, content_type, file_name, file_size, width, height} | nullCover kipo vaš o rezultatosko video.
seed
integerRandomno seed uživardo ande keripe.

Bute modeli: Referenca ko Video

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/vidu/q4/reference-to-video.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt