Siirry sisältöön

Kling Video 4K Video to Video

Integroi

Mallin tunniste kling-video/o3/4k/video-to-video/reference
# 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-video/o3/4k/video-to-video/reference?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

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

Tämä pyyntö: 6,30 $ 6 300 API-krediittiä Suorita tällä sivulla

Hanki API-avain

Tehty Doitongilla

Doitong-yhteisön Kling O3-mallilla tekemät julkiset työt. Käytä kehotetta uudelleen yhdellä napsautuksella.

Näytetyt julkiset työt: 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...

Muodosta pyyntö

Säätimet luodaan mallin skeemasta. Koodi ja hinta päivittyvät, kun muutat arvoja.

•pakollinen 88 / 2500

Videon generointiin käytettävät tekstiohjeet. Viittaa viitev videoon tunnisteella @Video1.

•pakollinen video_url
Pudota tiedosto tai

Viitevideon URL-osoite .mp4- tai .mov-muodossa, enintään 200MB. Kummankin mitan on oltava välillä 720px–3840px, ruutunopeuden 23.0–60.0 FPS ja keston 3–15 sekuntia (enintään 15.05 sekuntia).

duration

Videon pituus sekunteina; viitevideon alue on 3–15s.

aspect_ratio oletus auto

Leveyden ja korkeuden suhde.

Lisäasetukset images · shot_type · enable_safety_checker · keep_audio · elements
image_urls
Pudota tiedosto tai

Tyylin tai ulkoasun ohjaamiseen käytettävät kuvat, joihin viitataan kehotteessa tunnisteilla @Image1, @Image2 ja niin edelleen. Videotulosteen kanssa elementtien ja viitekuvien yhteismäärä saa olla enintään 4. Kukin tiedosto saa olla enintään 50 MB, leveyden ja korkeuden on oltava vähintään 300 px ja kuvasuhteen 0.40–2.50.

oletus customize

Usean otoksen videoiden generointiin käytettävä tila.

Sisällytettävät hahmot tai kohteet, joihin viitataan kehotteessa tunnisteilla @Element1 ja @Element2.

POST /run/kling-video/o3/4k/video-to-video/reference?wait=20 hinta → 6,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/kling-video/o3/4k/video-to-video/reference?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

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

Suorita tämä pyyntö

Avaimesi säilyy tässä selaimessa: se lähetetään vain Doitong APIlle ja tallennetaan localStorageen vain, jos valitset Muista. Hanki API-avain

Tietoja: Kling Video 4K Video to Video

Luo uuden videon `video_url`-parametrin viiteleikkeen ohjaamana; leikkeeseen viitataan promptissa muodossa @Video1. Lähteen on oltava mp4 tai mov, kestoltaan 3–15 sekuntia, kooltaan 720–3840 px ja enintään 200MB. Toisin kuin editointiversio, tämä tarjoaa `aspect_ratio`-parametrin (auto, 16:9, 9:16, 1:1) ja `duration`-keston 3–15 sekuntia. Viitekuvia ja elementtejä saa olla yhteensä enintään 4, ja `keep_audio` on oletuksena käytössä.

Parametrit

Lähetä joko kanoninen nimi tai natiivi nimi, älä molempia. Kanoniset nimet

NimiTyyppi OletusSallitut Kuvaus
enable_safety_checkervalinnainen
Tyyppiboolean
Oletustrue
Turvatarkistukset voi poistaa käytöstä vain tilin valtuutuksella; valtuuttamattomat pyynnöt tarkistetaan aina.
promptpakollinen
Tyyppistring
≤ 2 500 merkkiä
Videon generointiin käytettävät tekstiohjeet. Viittaa viitev videoon tunnisteella @Video1.
video_urlpakollinen video
Tyyppiurl · video
Viitevideon URL-osoite .mp4- tai .mov-muodossa, enintään 200MB. Kummankin mitan on oltava välillä 720px–3840px, ruutunopeuden 23.0–60.0 FPS ja keston 3–15 sekuntia (enintään 15.05 sekuntia).
image_urlsvalinnainen images
Tyyppiurl[] · image
Tyylin tai ulkoasun ohjaamiseen käytettävät kuvat, joihin viitataan kehotteessa tunnisteilla @Image1, @Image2 ja niin edelleen. Videotulosteen kanssa elementtien ja viitekuvien yhteismäärä saa olla enintään 4. Kukin tiedosto saa olla enintään 50 MB, leveyden ja korkeuden on oltava vähintään 300 px ja kuvasuhteen 0.40–2.50.
keep_audiovalinnainen
Tyyppiboolean
Oletustrue
Määrittää, säilytetäänkö viitevideon alkuperäinen ääni.
elementsvalinnainen
Tyyppiobject[]
Sisällytettävät hahmot tai kohteet, joihin viitataan kehotteessa tunnisteilla @Element1 ja @Element2.
elements[].frontal_image_urlvalinnainen
Tyyppiurl · image
Elementin päänäkymän näyttävä etukuva. Tiedoston koko saa olla enintään 50 MB, leveyden ja korkeuden on oltava vähintään 300px ja kuvasuhteen 0.40–2.50.
elements[].reference_image_urlsvalinnainen
Tyyppiurl[] · image
Toimita 1–3 lisäviitekuvaa eri kulmista. Kunkin kuvan kuvasuhteen on oltava 0.40–2.50, kummankin mitan vähintään 300px ja koon enintään 50.0MB.
shot_typevalinnainen
Tyyppistring
Oletuscustomize
Usean otoksen videoiden generointiin käytettävä tila.
aspect_ratiovalinnainen
Tyyppienum
Oletusauto
auto16:99:161:1
Leveyden ja korkeuden suhde.
durationvalinnainen
Tyyppienum
3456789101112131415
Videon pituus sekunteina; viitevideon alue on 3–15s.
pakollinen Kanoninen nimi, myös hyväksytty

Tiedostoparametrit hyväksyvät julkisen https://-URL:n, enintään 10 MB:n data:-URI:n tai lähetyksen file_url-arvon. Tiedostot

Tulos

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-video/o3/4k/video-to-video/reference",
  "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": 6300,
    "usd": "6.30",
    "charged": 6300,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "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"
  }
}
Tiedostosi, valintasiJokainen outputs[].url on kopio tallennustilassamme: säilytetään ikuisesti (maksetaan gigatavu-kuukauden mukaan) tai 7 päivää ilmaiseksi tiliasetuksesi tai ?storage= perusteella.
Sama rakenne kaikissa malleissatype, url, content_type, width, height ja duration kuville, videolle ja äänelle. output on mallin oma tulosobjekti.
Tuloksen kentät
video
object {url, content_type, file_name, file_size}Mallin tuottama video.

Lisää malleja: Videosta videoksi

Tekoälyagenteille: tämän sivun Markdown-muoto on osoitteessa https://doitong.com/fi/developers/models/kling-video/o3/4k/video-to-video/reference.md. Kaikki mallit ja oppaat: https://doitong.com/developers/llms.txt