Njuolgga sisdollui

Kling 4.0 Reference to Video

Integrere

Modealla-id kling/v4/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/kling/v4/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"

Fiillat nugo ovdamearka: 1,175 $ 1 175 API-kreditta du fiillat mihtiduvvojit ovdal vuodjámis Vuodje dán siiddu alde

Oza API-čoavdaga
Kling Referánssas video Referánsa-inputtat3–30 sgitta 1080p #reference-to-video#multi-shot#image-reference#video-reference

Genererer 3–30 sekundda videoid, mat geahčči gitta 10 referánsačáhcego, 5 referánsavideo ja 7 elemeantta

Ráhkaduvvon Doitongis

Doitong-bargosearvvi almmolaš barggut, ráhkaduvvon Kling 4.0 bokte. Geavat fas jearaldaga ovtta deaddilemiin.

Almmolaš barggut čájehuvvojit: 16
**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... Video

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... Video

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... Video

**Duration: 5 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

Уютная база отдыха с деревянными домиками-шале среди сосен. Майя и Клиентка заходят в теплое кафе... Video

Уютная база отдыха с деревянными домиками-шале среди сосен. Майя и Клиентка заходят в теплое кафе с панорамными окнами. Внутри деревянный интерьер, мягкие диваны и живые цветы. Они садятся за столик, перед ними стоят дымящиеся чашки чая. Мягкий свет ламп создает уют. Средний план, уровень глаз. (...

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animat... Video

**Duration: 4 seconds | Aspect ratio: 16:9 | Children's YouTube Intro | Video with Audio** Animate the provided image into a bright, magical, energetic, professional YouTube intro for a children's entertainment channel, with perfectly synchronized sound effects, cheerful music, and a cute child's...

Реалистично оживи старую семейную фотографию. Все люди сохраняют свои оригинальные лица, черты вн... Video

Реалистично оживи старую семейную фотографию. Все люди сохраняют свои оригинальные лица, черты внешности, возраст, причёски и одежду. Мужчины слегка поворачивают головы, естественно моргают и едва заметно улыбаются. Женщина слева спокойно смотрит в камеру и мягко моргает. Маленький ребёнок слегка...

Create a realistic 30-second vertical 9:16 video showing two construction workers installing larg... Video

Create a realistic 30-second vertical 9:16 video showing two construction workers installing large white patio tiles in a modern backyard. Show the entire construction process in a smooth timelapse. Gradually transform the unfinished backyard into a luxurious outdoor living space with an L-shaped...

Create a warm, emotional 8–10 second cinematic video showing the difference between a young child... Video

Create a warm, emotional 8–10 second cinematic video showing the difference between a young child playing alone and playing with their mother. Scene 1: A toddler sits on the floor playing with toys independently. The child is calm and focused, exploring and learning through independent play. The...

Ráhkat jearaldaga

Kontrollat ráhkaduvvojit modealla skeama vuođul. Koda ja haddi ođasmahttojuvvojit go rievddadat daid.

88 / 2500

Ráhkadanrávvagat mat deavdet gáibádusa addit juogo `prompt` dahje `multi_prompt`. Čujuhit addojuvvon sisa-addiide geavat @Image1, @Video1, @Element1 jna.

video_urls
Luoitte fiilla, dahje · gitta 5

Eanemusat 5 čujuhusvideo, maidda čujuhuvvo @Video1, @Video2 jna. bokte; juohkehačča bistin lea 3–30 sekunda (eanemusat 30.05 sekunda), ja daid oktasaš bistin ovttas elemeantavideoguimmiin ii oaččo leat badjel 30 sekunda. Juohke fiilla sturrodat ferte leat eanemusat 300 MB, ja govdodat ja allodat goappašagat gaskal 700 px ja 4553 px. Govvagorri ferte leat gaskal 0.40 ja 2.50, ja rámmadávjodat gaskal 23.9 ja 60.05 FPS.

resolution standárda 1080p

Boađusa resolušuvdna.

aspect_ratio standárda 16:9

Video govvagorri, mii válljejuvvo njuolga dahje mearriduvvo čujuhusaid vuođul válljemiin 'auto'.

standárda 5

Video guhkkodat sekunddain, 3 gitta 30 rádjái.

Viiddiduvvon image · images · multi_prompt · elements
start_image_url
Luoitte fiilla, dahje

Eaktodáhtolaš vuosttaš rámma govva, mii lohkkojuvvo mielde govvačujuhusaid rádjái. Fiilla eanemus sturrodat lea 30.0 MB; govdodat ja allodat ferteba goappašagat leat unnimusat 300 px, ja govvagorri gaskal 0.40 ja 2.50.

image_urls
Luoitte fiilla, dahje · gitta 10

Govvačujuhusat maidda čujuhuvvo @Image1, @Image2 jna. bokte, eanemusat 10 govva. Juohke fiilla sturrodat lea eanemusat 30.0 MB, goappašiid mihtuid fertejit leat unnimusat 300 px, ja govvagorri gaskal 0.40 ja 2.50.

Čuohpahusguovdasaš ráhkadanrávvagat, mas juohke bivdda meroštallá ovtta čuohpahusa, man bistin lea oassin video olles guhkkodagas.

Čoakkáldat mas leat eanemusat 7 figuvrra dahje áđa, main eanemusat 3 sáhttet sisttisdoallat `voice_id` ja eanemusat 3 sáhttet geavahit video. Čujut dáidda elemeanttaide @Element1, @Element2 jna. bokte.

POST /run/kling/v4/reference-to-video?wait=20 haddemearrádus → 1,175 $
# 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/kling/v4/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"

Geavat dán ohcamuša

Du key báhcá dán fierpmádatlogan: dat sáddejuvvo dušše Doitong API:ii ja vurkejuvvo (localStorage) dušše jos válljet Remember. Viečča API-keya

Dát lea Kling 4.0 Reference to Video birra

Ráhkada video čállin `prompt` ja referánsačáhcegoid, referánsavideoid ja persovdna- dahje dávvir-elemeanttaid vuođul, mat čujuhuvvojit promptas @Image1, @Video1 dahje @Element1. Guhkodat lea 3 rájes 30 sekundii (standárda 5), ja boahtos lea 720p dahje 1080p ja govvaráddjeauto auto, 16:9, 9:16, 1:1 dahje 21:9. Geavat `multi_prompt` shot-spesifihkka promp שאל?

Parametterat

Sádde kanonala nama dahje iežas nama, ii goappašiid. Kanonala namat

NammaŠládja StandárdaDohkkehuvvon Govvádus
prompteaktodáhtolaš
Šládjastring | null
≤ 2 500 mearkka
Ráhkadanrávvagat mat deavdet gáibádusa addit juogo `prompt` dahje `multi_prompt`. Čujuhit addojuvvon sisa-addiide geavat @Image1, @Video1, @Element1 jna.
multi_prompteaktodáhtolaš
Šládjaobject[]
Čuohpahusguovdasaš ráhkadanrávvagat, mas juohke bivdda meroštallá ovtta čuohpahusa, man bistin lea oassin video olles guhkkodagas.
multi_prompt[].promptgáibiduvvo
Šládjastring
1 – 512 characters
Dálá čuohpahasa teakstaravvagat.
multi_prompt[].durationeaktodáhtolaš
Šládjainteger
Standárda5
1 – 30
Ovttaskas čuohpahusa bistin, mihtiduvvon sekunddain.
durationeaktodáhtolaš
Šládjainteger
Standárda5
3 – 30
Video guhkkodat sekunddain, 3 gitta 30 rádjái.
start_image_urleaktodáhtolaš image
Šládjaurl · image
Eaktodáhtolaš vuosttaš rámma govva, mii lohkkojuvvo mielde govvačujuhusaid rádjái. Fiilla eanemus sturrodat lea 30.0 MB; govdodat ja allodat ferteba goappašagat leat unnimusat 300 px, ja govvagorri gaskal 0.40 ja 2.50.
image_urlseaktodáhtolaš images
Šládjaurl[] · image
≤ 10 merki
Govvačujuhusat maidda čujuhuvvo @Image1, @Image2 jna. bokte, eanemusat 10 govva. Juohke fiilla sturrodat lea eanemusat 30.0 MB, goappašiid mihtuid fertejit leat unnimusat 300 px, ja govvagorri gaskal 0.40 ja 2.50.
video_urlseaktodáhtolaš videos
Šládjaurl[] · video
≤ 5 merki
Eanemusat 5 čujuhusvideo, maidda čujuhuvvo @Video1, @Video2 jna. bokte; juohkehačča bistin lea 3–30 sekunda (eanemusat 30.05 sekunda), ja daid oktasaš bistin ovttas elemeantavideoguimmiin ii oaččo leat badjel 30 sekunda. Juohke fiilla sturrodat ferte leat eanemusat 300 MB, ja govdodat ja allodat goappašagat gaskal 700 px ja 4553 px. Govvagorri ferte leat gaskal 0.40 ja 2.50, ja rámmadávjodat gaskal 23.9 ja 60.05 FPS.
elementseaktodáhtolaš
Šládjaobject[]
≤ 7 merki
Čoakkáldat mas leat eanemusat 7 figuvrra dahje áđa, main eanemusat 3 sáhttet sisttisdoallat `voice_id` ja eanemusat 3 sáhttet geavahit video. Čujut dáidda elemeanttaide @Element1, @Element2 jna. bokte.
elements[].frontal_image_urleaktodáhtolaš
Šládjaurl · image
Ovddabeale govva mii čájeha elemeantta váldooinnosa. Fiilla eanemus sturrodat lea 30.0 MB; goappašiid mihtuid fertejit leat unnimusat 300 px, ja govvagorri ferte leat gaskal 0.40 ja 2.50.
elements[].reference_image_urlseaktodáhtolaš
Šládjaurl[] · image
≤ 3 items
Lassigovat mat čájehit elemeantta iešguđet čiehkaid, 1 gitta 3 oinnosa. Juohke fiilla sturrodat sáhttá leat eanemusat 30.0 MB, goappašiid mihtuid fertejit leat unnimusat 300 px, ja govvagorri ferte leat gaskal 0.40 ja 2.50.
elements[].video_urleaktodáhtolaš
Šládjaurl · video
Elemeantta videoovdanbuktin govaid sajis, man bistin lea 3–30 sekunda (eanemusat 30.05 sekunda). Fiila ii oaččo leat stuorát go 300 MB; sihke govdodat ja allodat ferteba leat 700–4553 px. Dorjojuvvon govvagorit leat 0.40–2.50, ja rámmadávjodagat 23.9–60.05 FPS.
elements[].voice_ideaktodáhtolaš
Šládjastring | null
Elemeantii meroštallojuvvon jietna.
resolutioneaktodáhtolaš
Šládjaenum
Standárda1080p
720p1080p
Boađusa resolušuvdna.
aspect_ratioeaktodáhtolaš
Šládjaenum
Standárda16:9
auto16:99:161:121:9
Video govvagorri, mii válljejuvvo njuolga dahje mearriduvvo čujuhusaid vuođul válljemiin 'auto'.
gáibiduvvo Kanonala namma, maid sáhttá geavahit

Fiilaparametterat váldet almmolaš https:// URL:a, data: URI:a gitta 10 MB, dahje uploada file_url:a. Fiillat

Boađus

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling/v4/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": 1175,
    "usd": "1.175",
    "charged": 1175,
    "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"
  }
}
Du fiillat, du válljenJuohke outputs[].url lea kopia min vurkemis: bisuhuvvo álo (mákso GB-mánu mielde) dahje 7 beaivvi nuvttá, du konto­o heiveheami dahje ?storage= mielde.
Seammá hápmi juohke modeallastype, url, content_type, width, height ja duration, govvii, videoii ja jienai seammá ládje. output lea modealla iežas boađusobjekta.
Outputa giettit
video
object {url, content_type, file_name, file_size}Modealla ráhkadan video.

Eanet modeallat: Referánssas video

AI-agenttaide: dán siidu Markdowna lea dáppe https://doitong.com/se/developers/models/kling/v4/reference-to-video.md. Buot modeallat ja ráđit: https://doitong.com/developers/llms.txt