Preskoči na vsebino

Kling 4.0 Reference to Video

Integracija

ID modela 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"

Datoteke, kot je primer: 1,175 $ 1175 API kreditov vaše datoteke se izmerijo pred zagonom Zaženi na tej strani

Pridobi ključ API
Kling Referenca v videoposnetek Referenčni vnosi3–30 sdo 1080p #reference-to-video#multi-shot#image-reference#video-reference

Ustvari 3–30-sekundne videoposnetke, ki ohranijo videz do 10 referenčnih slik, 5 referenčnih videoposnetkov in 7 elementov

Ustvarjeno v Doitong

Javna dela, ki jih je skupnost Doitong ustvarila z Kling 4.0. Poziv znova uporabite z enim klikom.

Prikazana javna dela: 16
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... Videoposnetek

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

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

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

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

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

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

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

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

Ustvari zahtevo

Kontrolniki se ustvarijo iz sheme modela. Koda in cena se posodobita, ko ju spreminjate.

88 / 2500

Navodila za generiranje, ki izpolnjujejo zahtevo po posredovanju `prompt` ali `multi_prompt`. Za sklicevanje na posredovane vhode uporabite @Image1, @Video1, @Element1 in tako naprej.

video_urls
Spustite datoteko ali · do 5

Do 5 referenčnih videov, naslovljenih z @Video1, @Video2 in tako naprej; vsak traja 3–30 sekund (največ 30.05 sekunde), njihovo skupno trajanje skupaj z videi elementov pa ne sme preseči 30 sekund. Vsaka datoteka je lahko velika največ 300 MB, širina in višina pa morata biti med 700 px in 4553 px. Razmerje stranic mora biti med 0.40 in 2.50, hitrost sličic pa med 23.9 in 60.05 FPS.

resolution privzeto 1080p

Ločljivost izhoda.

aspect_ratio privzeto 16:9

Razmerja videa, izbrano izrecno ali izpeljano iz referenc z izbiro 'auto'.

privzeto 5

Dolžina videa v sekundah, od 3 do 30.

Napredno image · images · multi_prompt · elements
start_image_url
Spustite datoteko ali

Izbirna slika prve sličice, ki se šteje v omejitev referenc slik. Največja velikost datoteke je 30.0 MB; širina in višina morata biti dolgi najmanj 300 px, razmerje stranic pa mora biti med 0.40 in 2.50.

image_urls
Spustite datoteko ali · do 10

Reference slik, naslovljene z @Image1, @Image2 in tako naprej, z največ 10 slikami. Vsaka datoteka je omejena na 30.0 MB, obe dimenziji morata biti dolgi najmanj 300 px, razmerje stranic pa mora biti med 0.40 in 2.50.

Navodila za generiranje po kadrih, pri katerih vsak poziv določa en kader, njegovo trajanje pa prispeva k skupni dolžini videa.

Zbirka do 7 likov ali predmetov, od katerih lahko največ 3 vključujejo `voice_id` in največ 3 uporabljajo video. Te elemente naslovite z @Element1, @Element2 in tako naprej.

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

Zaženi to zahtevo

Vaš ključ ostane v tem brskalniku: pošlje se samo v Doitong API in shrani v localStorage samo, če označite možnost Zapomni si. Pridobi ključ API

O modelu Kling 4.0 Reference to Video

Ustvari videoposnetek iz besedilnega `prompt` ter referenčnih slik, referenčnih videoposnetkov in elementov likov ali predmetov, ki so v pozivu navedeni kot @Image1, @Video1 ali @Element1. Trajanje je od 3 do 30 sekund (privzeto 5), izhod pa je v ločljivosti 720p ali 1080p in z razmerjem stranic auto, 16:9, 9:16, 1:1 ali 21:9. Za pozive za posamezne kadre uporabite `multi_prompt`; v tem primeru je skupna dolžina enaka vsoti trajanj kadrov. Omejitve so 10 slik, 5 videoposnetkov, dolgih po 3–30 s, in 7 elementov, od katerih imajo lahko največ 3 glas.

Parametri

Pošlji kanonično ali izvorno ime, ne obeh. Kanonična imena

ImeVrsta PrivzetoDovoljeno Opis
promptneobvezno
Vrstastring | null
≤ 2500 znakov
Navodila za generiranje, ki izpolnjujejo zahtevo po posredovanju `prompt` ali `multi_prompt`. Za sklicevanje na posredovane vhode uporabite @Image1, @Video1, @Element1 in tako naprej.
multi_promptneobvezno
Vrstaobject[]
Navodila za generiranje po kadrih, pri katerih vsak poziv določa en kader, njegovo trajanje pa prispeva k skupni dolžini videa.
multi_prompt[].promptobvezno
Vrstastring
1 – 512 characters
Besedilna navodila za trenutni kader.
multi_prompt[].durationneobvezno
Vrstainteger
Privzeto5
1 – 30
Trajanje posameznega kadra, merjeno v sekundah.
durationneobvezno
Vrstainteger
Privzeto5
3 – 30
Dolžina videa v sekundah, od 3 do 30.
start_image_urlneobvezno image
Vrstaurl · image
Izbirna slika prve sličice, ki se šteje v omejitev referenc slik. Največja velikost datoteke je 30.0 MB; širina in višina morata biti dolgi najmanj 300 px, razmerje stranic pa mora biti med 0.40 in 2.50.
image_urlsneobvezno images
Vrstaurl[] · image
≤ 10 elementov
Reference slik, naslovljene z @Image1, @Image2 in tako naprej, z največ 10 slikami. Vsaka datoteka je omejena na 30.0 MB, obe dimenziji morata biti dolgi najmanj 300 px, razmerje stranic pa mora biti med 0.40 in 2.50.
video_urlsneobvezno videos
Vrstaurl[] · video
≤ 5 elementov
Do 5 referenčnih videov, naslovljenih z @Video1, @Video2 in tako naprej; vsak traja 3–30 sekund (največ 30.05 sekunde), njihovo skupno trajanje skupaj z videi elementov pa ne sme preseči 30 sekund. Vsaka datoteka je lahko velika največ 300 MB, širina in višina pa morata biti med 700 px in 4553 px. Razmerje stranic mora biti med 0.40 in 2.50, hitrost sličic pa med 23.9 in 60.05 FPS.
elementsneobvezno
Vrstaobject[]
≤ 7 elementov
Zbirka do 7 likov ali predmetov, od katerih lahko največ 3 vključujejo `voice_id` in največ 3 uporabljajo video. Te elemente naslovite z @Element1, @Element2 in tako naprej.
elements[].frontal_image_urlneobvezno
Vrstaurl · image
Čelna slika glavnega pogleda elementa. Največja velikost datoteke je 30.0 MB; obe dimenziji morata biti dolgi najmanj 300 px, razmerje stranic pa mora biti med 0.40 in 2.50.
elements[].reference_image_urlsneobvezno
Vrstaurl[] · image
≤ 3 items
Dodatne slike različnih kotov elementa, z 1 do 3 pogledi. Vsaka datoteka je lahko velika največ 30.0 MB, obe dimenziji morata biti dolgi najmanj 300 px, razmerje stranic pa mora biti med 0.40 in 2.50.
elements[].video_urlneobvezno
Vrstaurl · video
Video, ki predstavlja element namesto slik, dolg 3–30 sekund (največ 30.05 sekunde). Datoteka ne sme presegati 300 MB; širina in višina morata biti med 700–4553 px. Podprta razmerja stranic so 0.40–2.50, hitrost sličic pa 23.9–60.05 FPS.
elements[].voice_idneobvezno
Vrstastring | null
Glas, dodeljen elementu.
resolutionneobvezno
Vrstaenum
Privzeto1080p
720p1080p
Ločljivost izhoda.
aspect_rationeobvezno
Vrstaenum
Privzeto16:9
auto16:99:161:121:9
Razmerja videa, izbrano izrecno ali izpeljano iz referenc z izbiro 'auto'.
obvezno Kanonično ime, prav tako sprejeto

Parametri datotek sprejmejo javni https:// URL, podatkovni URI data: do 10 MB ali file_url naložene datoteke. Datoteke

Izhod

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"
  }
}
Vaše datoteke, vaša izbiraVsak outputs[].url je kopija v naši shrambi: hrani se za vedno (plačilo na GB-mesec) ali 7 dni brezplačno, glede na nastavitev računa ali ?storage=.
Enaka struktura pri vsakem modelutype, url, content_type, width, height in duration za slike, videoposnetke in zvok. output je lasten objekt rezultata modela.
Polja izhoda
video
object {url, content_type, file_name, file_size}Video, ki ga ustvari model.

Več modelov: Referenca v videoposnetek

Za agente AI: ta stran je v obliki Markdown na voljo na https://doitong.com/sl/developers/models/kling/v4/reference-to-video.md. Vsi modeli in vodniki: https://doitong.com/developers/llms.txt