Ruka hadi kwenye maudhui

Kling O1 Reference Video to Video [Standard]

Unganisha

Kitambulisho cha modeli kling-video/o1/standard/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/o1/standard/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"

Ombi hili: $ 0.63 salio za API 630 Iendeshe kwenye ukurasa huu

Pata ufunguo wa API
Kling Video hadi Video Ingizo za marejeleo3–10 s

Video-kwa-video ya kiwango cha Standard inayounda picha mpya ikiongozwa na klipu ya marejeo, ikiwa na sauti ya hiari iliyohifadhiwa

Imetengenezwa kwenye Doitong

Kazi za umma zilizotengenezwa kwa Kling O1 na jumuiya ya Doitong. Tumia tena kidokezo kwa kubofya mara moja.

Kazi za umma zilizoonyeshwa: 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...

Unda ombi

Vidhibiti vinazalishwa kutoka kwenye schema ya modeli. Msimbo na bei husasishwa unapovibadilisha.

•inahitajika 88 / 2500

Marejeleo yaliyopangwa hutumia @Element1, @Element2, na kuendelea kwa vipengele, na @Image1, @Image2, na kuendelea kwa picha.

•inahitajika video_url
Dondosha faili, au

URL inayoelekeza kwenye video ya marejeleo katika umbizo la .mp4 au .mov, isiyozidi 200MB. Vipimo vyote viwili lazima viwe kati ya 720px na 2160px, kwa kasi ya fremu ya 24.0–60.0 FPS na urefu wa sekunde 3–10 (sekunde 10.05 kwa kiwango cha juu). Muda wa kusubiri ni sekunde 30.0.

duration 5 s

Urefu wa video unaopimwa kwa sekunde.

aspect_ratio chaguomsingi auto

Uwiano wa upana kwa urefu wa fremu katika video inayozalishwa. Kuchagua 'auto' huchagua kiotomatiki uwiano ulio karibu zaidi na wa video ya ingizo.

Ya kina images · enable_safety_checker · keep_audio · elements
image_urls
Dondosha faili, au

Picha zinazoongoza mtindo au mwonekano, zinazorejelewa kwenye kidokezo kwa kutumia @Image1, @Image2, na kuendelea. Kwa ingizo la video, vipengele na picha za marejeleo kwa pamoja haviwezi kuzidi maingizo 4. Kila faili ina kikomo cha 50 MB, huku upana na urefu kila kimoja kikiwa angalau 300 px na uwiano wa pande ukiwa kutoka 0.40 hadi 2.50.

Wahusika au vitu vya kujumuisha, vinavyorejelewa kwenye kidokezo kwa kutumia @Element1, @Element2, na kuendelea. Kwa ingizo la video, vipengele na picha za marejeleo kwa pamoja haviwezi kuzidi maingizo 4.

POST /run/kling-video/o1/standard/video-to-video/reference?wait=20 makadirio → $ 0.63
# 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/o1/standard/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"

Endesha ombi hili

Key yako inabaki kwenye kivinjari hiki: inatumwa kwa Doitong API pekee na kuhifadhiwa (localStorage) tu ukiweka tiki kwenye Kumbuka. Pata ufunguo wa API

Kuhusu Kling O1 Reference Video to Video [Standard]

Hutumia klipu ya marejeo katika `video_url` (mp4 au mov, sekunde 3 hadi 10, 720 hadi 2160 px, hadi 200MB) na `prompt` ili kuzalisha picha mpya. Hadi `elements` 4 na `image_urls` za marejeo zinaweza kuongezwa kwa jumla. `keep_audio` huhifadhi sauti asilia. Uwiano wa picha chaguo-msingi ni auto, unaolingana na ingizo, na muda huwa sekunde 3 hadi 10.

Vigezo

Tuma jina rasmi au jina asilia, si yote mawili. Majina rasmi

JinaAina ChaguomsingiInaruhusiwa Maelezo
enable_safety_checkersi lazima
Ainaboolean
Chaguomsingitrue
Ukaguzi wa usalama unaweza kuzimwa tu kwa idhini ya akaunti; maombi yasiyo na idhini hukaguliwa kila wakati.
promptinahitajika
Ainastring
≤ herufi 2,500
Marejeleo yaliyopangwa hutumia @Element1, @Element2, na kuendelea kwa vipengele, na @Image1, @Image2, na kuendelea kwa picha.
video_urlinahitajika video
Ainaurl · video
URL inayoelekeza kwenye video ya marejeleo katika umbizo la .mp4 au .mov, isiyozidi 200MB. Vipimo vyote viwili lazima viwe kati ya 720px na 2160px, kwa kasi ya fremu ya 24.0–60.0 FPS na urefu wa sekunde 3–10 (sekunde 10.05 kwa kiwango cha juu). Muda wa kusubiri ni sekunde 30.0.
keep_audiosi lazima
Ainaboolean
Chaguomsingifalse
Hudhibiti ikiwa sauti asilia ya video itahifadhiwa.
image_urlssi lazima images
Ainaurl[] · image
Picha zinazoongoza mtindo au mwonekano, zinazorejelewa kwenye kidokezo kwa kutumia @Image1, @Image2, na kuendelea. Kwa ingizo la video, vipengele na picha za marejeleo kwa pamoja haviwezi kuzidi maingizo 4. Kila faili ina kikomo cha 50 MB, huku upana na urefu kila kimoja kikiwa angalau 300 px na uwiano wa pande ukiwa kutoka 0.40 hadi 2.50.
elementssi lazima
Ainaobject[]
Wahusika au vitu vya kujumuisha, vinavyorejelewa kwenye kidokezo kwa kutumia @Element1, @Element2, na kuendelea. Kwa ingizo la video, vipengele na picha za marejeleo kwa pamoja haviwezi kuzidi maingizo 4.
elements[].frontal_image_urlinahitajika
Ainaurl · image
Picha ya mbele inayotoa mwonekano mkuu wa kipengele, yenye kikomo cha 50 MB. Upana na urefu lazima kila kimoja kiwe angalau 300 px, na uwiano wa pande uwe kutoka 0.40 hadi 2.50. Muda wa kusubiri ni sekunde 20.
elements[].reference_image_urlssi lazima
Ainaurl[] · image
Toa picha 1–3 za ziada za marejeleo zinazoonyesha pembe tofauti. Kila picha lazima iwe na uwiano wa pande kati ya 0.40 na 2.50, iwe na angalau 300px katika vipimo vyote viwili, na isiwe kubwa kuliko 50.0MB.
aspect_ratiosi lazima
Ainaenum
Chaguomsingiauto
auto16:99:161:1
Uwiano wa upana kwa urefu wa fremu katika video inayozalishwa. Kuchagua 'auto' huchagua kiotomatiki uwiano ulio karibu zaidi na wa video ya ingizo.
durationsi lazima
Ainaenum
Chaguomsingi5
345678910
Urefu wa video unaopimwa kwa sekunde.
inahitajika Jina rasmi, pia linakubalika

Vigezo vya faili vinakubali URL ya umma ya https://, data: URI ya hadi 10 MB, au file_url ya upakiaji. Faili

Tokeo

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-video/o1/standard/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": 630,
    "usd": "0.63",
    "charged": 630,
    "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"
  }
}
Faili zako, chaguo lakoKila outputs[].url ni nakala kwenye hifadhi yetu: huhifadhiwa milele (hutozwa kwa GB kwa mwezi) au 7 siku bila malipo, kulingana na mpangilio wa akaunti yako au ?storage=.
Muundo uleule kwenye kila modelitype, url, content_type, width, height na duration, kwa picha, video na sauti. output ni kitu cha matokeo cha modeli yenyewe.
Sehemu za tokeo
video
object {url, content_type, file_name, file_size}Video iliyozalishwa na modeli.

Miundo zaidi: Video hadi Video

Kwa mawakala wa AI: ukurasa huu katika Markdown unapatikana kwenye https://doitong.com/sw/developers/models/kling-video/o1/standard/video-to-video/reference.md. Modeli na miongozo yote: https://doitong.com/developers/llms.txt