Saltar al cuntegna

Kling 4.0 Reference to Video

Integrar

ID dal model 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"

Datotecas sco l'exempel: $1,175 1 175 credits API tias datotecas vegnan mesiradas avant l'execuziun Lantschar sin questa pagina

Obtegna ina clav API
Kling Referenza a video Inputs da referenza3–30 sfin a 1080p #reference-to-video#multi-shot#image-reference#video-reference

Generescha videos da 3-30 secundas che mantegnan l'apparientscha da fin a 10 maletgs da referenza, 5 videos da referenza e 7 elements

Fatg sin Doitong

Ovras publicas fatgas cun Kling 4.0 da la communitad Doitong. Reutilisescha in prompt cun in clic.

Ovras publicas mussadas: 16
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... Video

Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while speaking, with realistic facial expressions and synchronized lip movements, as if she is promoting something to the viewer. She maintains eye contact with the camera, smiles slightly, and uses subtle...

Slow, subtle push-in on the woman's face. The light from the laptop flickers softly across her ey... Video

Slow, subtle push-in on the woman's face. The light from the laptop flickers softly across her eyes and cheeks, as if the blurry image on the screen is changing. Her eyes move slightly as she studies the screen, and she takes one slow, tense breath. Behind her, shadows of the snowstorm move...

The enormous ancient dragon descends slowly toward the snowy cliff and lands at the cave mouth. I... Video

The enormous ancient dragon descends slowly toward the snowy cliff and lands at the cave mouth. Its huge dark leathery wings beat twice with slow, heavy strokes, sending snow swirling off the cliff in big clouds. Then it folds its wings and settles on the rock, the giant elk still held in its...

**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...

Authentic 1990s wide-angle film footage. The left man slowly pulls one wooden block from the Jeng... Video

Authentic 1990s wide-angle film footage. The left man slowly pulls one wooden block from the Jenga tower. As the block comes out, the tower naturally loses balance and realistically collapses onto the table. Frustrated, he angrily sweeps all the fallen wooden blocks off the table with both hands....

Thermal-camera view of a snowy mountain cliff at night in false-color, deep blue and violet cold ... Video

Thermal-camera view of a snowy mountain cliff at night in false-color, deep blue and violet cold rock, a huge orange-white heat shape hidden inside a rock crevice, two small bright amber spots glowing like eyes, faint noise grain. Cinematic videorealistic, ultra detailed, 16:9, volumetric light,...

**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...

**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...

Construir ina dumonda

Ils controls vegnan generads dal schema dal model. Il code e ​​il pretsch s'actualiseschan durant che ti als midas.

88 / 2500

Instrucziuns da generaziun che ademplan il basegn da furnir u `prompt` u `multi_prompt`. Per far referenza a inputs furnids, utilisescha @Image1, @Video1, @Element1, e.u.v.

video_urls
Trametta in datoteca u · fin a 5

Fin a 5 videos da referenza, referenziads cun @Video1, @Video2, e.u.v.; mintgin dura 3–30 secundas (maximalmain 30.05 secundas), e lur durada totala ensemen cun ils videos dals elements na dastga betg surpassar 30 secundas. Mintga datoteca sto esser pli pitschna che 300 MB, cun ladezza ed autezza mintgina tranter 700 px e 4553 px. La proporziun sto esser tranter 0.40 e 2.50, e la frequenza tranter 23.9 e 60.05 FPS.

resolution standard 1080p

Resoluziun da l’output.

aspect_ratio standard 16:9

Proporziuns dal video, tschernidas explicitamain u deduidas da las referenzas cun la selecziun da 'auto'.

standard 5

Durada dal video en secundas, da 3 fin 30.

Avanzà image · images · multi_prompt · elements
start_image_url
Trametta in datoteca u

Maletg opziunal dal prim frame che vegn quintà envers la limita dals maletgs da referenza. La datoteca po avair maximalmain 30.0 MB; ladezza ed autezza ston avair mintgina 300 px, cun ina proporziun tranter 0.40 e 2.50.

image_urls
Trametta in datoteca u · fin a 10

Referenzas da maletgs referenziadas cun @Image1, @Image2, e.u.v., cun maximalmain 10 maletgs. Mintga datoteca è limitada a 30.0 MB, dovra almain 300 px en omaduas dimensiuns e sto avair ina proporziun tranter 0.40 e 2.50.

Instrucziuns da generaziun plan per plan, cun mintga prompt che definescha in plan, la durada dal qual contribuescha a la durada totala dal video.

Collecziun da fin a 7 persunas u objects, dals quals maximalmain 3 pon cuntegnair in `voice_id` e maximalmain 3 pon utilisar video. Referenziescha quests elements sco @Element1, @Element2, e.u.v.

POST /run/kling/v4/reference-to-video?wait=20 calculaziun → $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"

Executar questa dumonda

Tia clav resta en quest browser: ella vegn tramessa mo al Doitong API e memorisada (localStorage) mo sch'ella scheccas Tiar a memoria. Obtegnair ina clav API

Davart Kling 4.0 Reference to Video

Crea in video a partir d'in `prompt` da text, plus maletgs da referenza, videos da referenza ed elements da persunas u objects, che vegnan citads en il prompt sco @Image1, @Video1 u @Element1. La durada varia da 3 fin 30 secundas (default 5), cun output en 720p u 1080p e proporziuns da l'ima auto, 16:9, 9:16, 1:1 u 21:9. Utilisescha `multi_prompt` per prompts per singulas scenas; en quest cas è la durada totala la summa da las duradas da las scenas. Ils limits èn 10 maletgs, 5 videos da 3-30s mintgin e 7 elements, dals quals fin a 3 pon cuntegnair ina vusch.

Parameters

Invia u il num canonic u il num nativ, betg omaduas. Nums canonics

NumTip StandardPermess Descripziun
promptopziunal
Tipstring | null
≤ 2 500 caracters
Instrucziuns da generaziun che ademplan il basegn da furnir u `prompt` u `multi_prompt`. Per far referenza a inputs furnids, utilisescha @Image1, @Video1, @Element1, e.u.v.
multi_promptopziunal
Tipobject[]
Instrucziuns da generaziun plan per plan, cun mintga prompt che definescha in plan, la durada dal qual contribuescha a la durada totala dal video.
multi_prompt[].promptobligatori
Tipstring
1 – 512 characters
Instrucziuns da text per il plan actual.
multi_prompt[].durationopziunal
Tipinteger
Standard5
1 – 30
Durada d’in plan singul, mesirada en secundas.
durationopziunal
Tipinteger
Standard5
3 – 30
Durada dal video en secundas, da 3 fin 30.
start_image_urlopziunal image
Tipurl · image
Maletg opziunal dal prim frame che vegn quintà envers la limita dals maletgs da referenza. La datoteca po avair maximalmain 30.0 MB; ladezza ed autezza ston avair mintgina 300 px, cun ina proporziun tranter 0.40 e 2.50.
image_urlsopziunal images
Tipurl[] · image
≤ 10 elements
Referenzas da maletgs referenziadas cun @Image1, @Image2, e.u.v., cun maximalmain 10 maletgs. Mintga datoteca è limitada a 30.0 MB, dovra almain 300 px en omaduas dimensiuns e sto avair ina proporziun tranter 0.40 e 2.50.
video_urlsopziunal videos
Tipurl[] · video
≤ 5 elements
Fin a 5 videos da referenza, referenziads cun @Video1, @Video2, e.u.v.; mintgin dura 3–30 secundas (maximalmain 30.05 secundas), e lur durada totala ensemen cun ils videos dals elements na dastga betg surpassar 30 secundas. Mintga datoteca sto esser pli pitschna che 300 MB, cun ladezza ed autezza mintgina tranter 700 px e 4553 px. La proporziun sto esser tranter 0.40 e 2.50, e la frequenza tranter 23.9 e 60.05 FPS.
elementsopziunal
Tipobject[]
≤ 7 elements
Collecziun da fin a 7 persunas u objects, dals quals maximalmain 3 pon cuntegnair in `voice_id` e maximalmain 3 pon utilisar video. Referenziescha quests elements sco @Element1, @Element2, e.u.v.
elements[].frontal_image_urlopziunal
Tipurl · image
Maletg frontal che mussa la vista principala da l’element. La datoteca po avair maximalmain 30.0 MB; omaduas dimensiuns ston avair almain 300 px, e la proporziun sto esser tranter 0.40 e 2.50.
elements[].reference_image_urlsopziunal
Tipurl[] · image
≤ 3 items
Maletgs supplementars che mussan differents anguls da l’element, cun 1 fin 3 vistas. Mintga datoteca po avair maximalmain 30.0 MB, sto mesirar almain 300 px en omaduas dimensiuns e sto avair ina proporziun tranter 0.40 e 2.50.
elements[].video_urlopziunal
Tipurl · video
Rapresentaziun video d’in element empè da maletgs, cun ina durada da 3–30 secundas (maximalmain 30.05 secundas). La datoteca na dastga betg surpassar 300 MB; ladezza ed autezza ston esser tranter 700–4553 px. Las proporziuns sustegnidas èn 0.40–2.50, cun frequenzas da 23.9–60.05 FPS.
elements[].voice_idopziunal
Tipstring | null
Vusch attribuida a l’element.
resolutionopziunal
Tipenum
Standard1080p
720p1080p
Resoluziun da l’output.
aspect_ratioopziunal
Tipenum
Standard16:9
auto16:99:161:121:9
Proporziuns dal video, tschernidas explicitamain u deduidas da las referenzas cun la selecziun da 'auto'.
obligatori Num canonic, er acceptà

Ils parameters da datotecas acceptan ina URL publica https://, ina URI data: fin a 10 MB u il file_url d'ina chargiada. Datotecas

Output

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"
  }
}
Tias datotecas, tia decisiunMintga outputs[].url è ina copia en nossa memorisaziun: conservada per adina (pajà per GB-mes) u 7 dis gratuitamain, tenor la configuraziun dal conto u ?storage=.
La medema structura per mintga modeltype, url, content_type, width, height e duration, tant per maletgs sco per video e audio. output è l'object da resultat dal model sez.
Champs da l'output
video
object {url, content_type, file_name, file_size}Video producì dal model.

Dapli models: Referenza a video

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/kling/v4/reference-to-video.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt