Dža ko lil

Vidu · Q2 · Reference to Video · Pro

Integriruj

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

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

Lel API klidin
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 / 2000

Tekst instrukcije vaš video keripe, limitime pe 2000 karaktera.

resolution standardno 720p

Rezolucija e rezultatoske videoski.

standardno 16:9

Setisar e videoske width-to-height proportions sar auto, 16:9, 9:16, 1:1, vaj aver W:H vrednost.

standardno 4

Video lungipen ande sekunda; 0 kidel avtomatikno duripen.

Lučhe images · reference_video_urls · movement_amplitude · seed · bgm
reference_image_urls
Čhiv jekh fajl, vaj

Referentne kiponge URL vaš e subjektonengo dićhipe, limitime ko 7 kipo bi video inputonengo. Te dena vi video, o numero e mukhle kipongo ciknjarel pe ko 4.

Čhiv jekh fajl, vaj

Reference video inputa dine URL-esa, limitime pe 2; servirin sar editing material vaj motion references.

movement_amplitude standardno auto

Extent e objektoske halin ande o kadro.

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

POST /run/vidu/q2/reference-to-video/pro?wait=20 hesab → $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"

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 · Q2 · Reference to Video · Pro

Kerel video katar prompto dži ko 2000 karakterja thaj referentno media. `reference_image_urls` lel dži ko 7 kipo, vaj 4 kana si dine videja; `reference_video_urls` lel dži ko 2 videja pala editiripen vaj haljipeski referenca. `duration` si 1-8 sekunda, `resolution` si 540p, 720p vaj 1080p, thaj `aspect_ratio` si slobodno. `bgm` si opcionalno.

Parametra

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

NavTip standardnoMuklo Vakeripe
prompttrubul
Tipstring
≤ 2,000 simbolura
Tekst instrukcije vaš video keripe, limitime pe 2000 karaktera.
reference_image_urlsopcionalno images
Tipurl[] · image
Referentne kiponge URL vaš e subjektonengo dićhipe, limitime ko 7 kipo bi video inputonengo. Te dena vi video, o numero e mukhle kipongo ciknjarel pe ko 4.
reference_video_urlsopcionalno
Tipurl[] · video
Reference video inputa dine URL-esa, limitime pe 2; servirin sar editing material vaj motion references.
seedopcionalno
Tipinteger | null
Seed savo kerel o generiripe reproducibilno. Te postavil pes pe None, randomno kidel pes seed.
durationopcionalno
Tipinteger
standardno4
1 – 8
Video lungipen ande sekunda; 0 kidel avtomatikno duripen.
resolutionopcionalno
Tipenum
standardno720p
540p720p1080p
Rezolucija e rezultatoske videoski.
aspect_ratioopcionalno
Tipstring
standardno16:9
Setisar e videoske width-to-height proportions sar auto, 16:9, 9:16, 1:1, vaj aver W:H vrednost.
movement_amplitudeopcionalno
Tipenum
standardnoauto
autosmallmediumlarge
Extent e objektoske halin ande o kadro.
bgmopcionalno
Tipboolean
standardnofalse
Kontrolinel te si background music ande o kerdo video.
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/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"
  }
}
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}Q2 Pro video rezultato savesko keripe si sikavdo video vaj kiponge referencendar.

Bute modeli: Referenca ko Video

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