Pāriet uz saturu

Kling Video · O3 · 4k · Reference to Video

Integrēt

Modeļa id kling-video/o3/4k/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-video/o3/4k/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"

Šis pieprasījums: 2,10 $ 2100 API kredītu Izpildīt šajā lapā

Iegūt API atslēgu

Izveidots vietnē Doitong

Doitong kopienas publiskie darbi, kas izveidoti ar Kling O3. Izmantojiet uzvedni atkārtoti ar vienu klikšķi.

Rādīti publiskie darbi: 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...

Izveidot pieprasījumu

Vadīklas tiek ģenerētas no modeļa shēmas. Kods un cena tiek atjaunināti, kad tos maināt.

88 / 2500

Teksta norādījumi video ģenerēšanai. Norādiet tieši vienu no `prompt` vai `multi_prompt`.

duration 5 s

Video ilgums no 3 līdz 15 sekundēm.

aspect_ratio noklusējums 16:9

Ģenerētā video kadru platuma un augstuma attiecība.

Papildu image · end_image · images · shot_type · enable_safety_checker · multi_prompt · elements
start_image_url
Nometiet failu vai

Attēls video sākuma kadram. Faila lielums nedrīkst pārsniegt 50 MB; platumam un augstumam jābūt vismaz 300px, bet malu attiecībai — no 0.40 līdz 2.50.

end_image_url
Nometiet failu vai

Attēls, kas nodrošina video beigu kadru; lielums nedrīkst pārsniegt 50 MB. Platumam un augstumam jābūt vismaz 300 px, bet malu attiecībai — no 0.40 līdz 2.50.

image_urls
Nometiet failu vai

Attēli stila vai izskata atsaucēm, uz kuriem uzvednē atsaucas ar @Image1, @Image2 utt. Elementi un atsauces attēli kopā nedrīkst pārsniegt 7. Katra faila lielums nedrīkst pārsniegt 50 MB, platumam un augstumam jābūt vismaz 300px, bet malu attiecībai — no 0.40 līdz 2.50.

shot_type noklusējums customize

Izvēlieties, kā vairāku kadru ģenerēšana plāno kadrējumus; izvēloties 'intelligent', kadrējumu struktūras izveide tiek uzticēta modelim.

Uzvedņu saraksts video ar vairākiem kadriem ģenerēšanai.

Iekļaujamie tēli vai objekti, uz kuriem uzvednē atsaucas ar @Element1 un @Element2.

POST /run/kling-video/o3/4k/reference-to-video?wait=20 cena → 2,10 $
# 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/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"

Palaist šo pieprasījumu

Jūsu atslēga paliek šajā pārlūkprogrammā: tā tiek nosūtīta tikai uz Doitong API un saglabāta (localStorage) tikai tad, ja atzīmējat Atcerēties. Iegūt API atslēgu

Par Kling Video · O3 · 4k · Reference to Video

Izveido video no līdz 2500 rakstzīmēm gara `prompt` vai no `multi_prompt` vairākām ainām, bet ne no abiem. Izmanto `start_image_url`, `end_image_url`, atsauces `image_urls` un `elements`, kas promptā tiek norādīti kā @Image1 vai @Element1; kopā ne vairāk kā 7. Ilgums ir 3–15 sekundes, malu attiecība 16:9, 9:16 vai 1:1, bet `generate_audio` pievieno skaņu.

Parametri

Nosūti vai nu kanonisko nosaukumu, vai vietējo nosaukumu, bet ne abus. Kan啤niskie nosaukumi

NosaukumsTips NoklusējumsAtļauts Apraksts
enable_safety_checkerneobligāts
Tipsboolean
Noklusējumstrue
Drošības pārbaudes var atspējot tikai ar konta autorizāciju; pieprasījumi bez autorizācijas vienmēr tiek pārbaudīti.
promptneobligāts
Tipsstring | null
≤ 2500 rakstzīmju
Teksta norādījumi video ģenerēšanai. Norādiet tieši vienu no `prompt` vai `multi_prompt`.
multi_promptneobligāts
Tipsobject[]
Uzvedņu saraksts video ar vairākiem kadriem ģenerēšanai.
multi_prompt[].promptobligāts
Tipsstring
Teksta norādījumi pašreizējam kadrējumam.
multi_prompt[].durationneobligāts
Tipsenum
Noklusējums5
123456789101112131415
Pašreizējā kadrējuma ilgums sekundēs.
start_image_urlneobligāts image
Tipsurl · image
Attēls video sākuma kadram. Faila lielums nedrīkst pārsniegt 50 MB; platumam un augstumam jābūt vismaz 300px, bet malu attiecībai — no 0.40 līdz 2.50.
end_image_urlneobligāts end_image
Tipsurl · image
Attēls, kas nodrošina video beigu kadru; lielums nedrīkst pārsniegt 50 MB. Platumam un augstumam jābūt vismaz 300 px, bet malu attiecībai — no 0.40 līdz 2.50.
image_urlsneobligāts images
Tipsurl[] · image
Attēli stila vai izskata atsaucēm, uz kuriem uzvednē atsaucas ar @Image1, @Image2 utt. Elementi un atsauces attēli kopā nedrīkst pārsniegt 7. Katra faila lielums nedrīkst pārsniegt 50 MB, platumam un augstumam jābūt vismaz 300px, bet malu attiecībai — no 0.40 līdz 2.50.
elementsneobligāts
Tipsobject[]
Iekļaujamie tēli vai objekti, uz kuriem uzvednē atsaucas ar @Element1 un @Element2.
elements[].frontal_image_urlneobligāts
Tipsurl · image
Priekšskata attēls, kas rāda elementa galveno skatu. Faila lielums nedrīkst pārsniegt 50 MB; platumam un augstumam jābūt vismaz 300px, bet malu attiecībai — no 0.40 līdz 2.50.
elements[].reference_image_urlsneobligāts
Tipsurl[] · image
Norādiet 1–3 papildu atsauces attēlus no dažādiem leņķiem. Katra attēla malu attiecībai jābūt no 0.40 līdz 2.50, abiem izmēriem vismaz 300px, bet lielumam — ne vairāk kā 50.0MB.
elements[].video_urlneobligāts
Tipsurl · video
URL, kas norāda uz elementa video; tikai vienam elementam pieprasījumā drīkst būt video. Faila lielums nedrīkst pārsniegt 200 MB, platumam un augstumam jābūt no 720px līdz 2160px. Ilgumam jābūt no 3 līdz 10.05 sekundēm, bet FPS — no 24.0 līdz 60.0.
elements[].voice_idneobligāts
Tipsstring | null
Elementam piešķirtais Voice ID. Atsauces uz šo elementu izmanto tam piešķirto balsi.
generate_audioneobligāts
Tipsboolean
Noklusējumsfalse
Nosaka, vai kopā ar video tiek ģenerēts dabīgais audio.
durationneobligāts
Tipsenum
Noklusējums5
3456789101112131415
Video ilgums no 3 līdz 15 sekundēm.
shot_typeneobligāts
Tipsenum
Noklusējumscustomize
customizeintelligent
Izvēlieties, kā vairāku kadru ģenerēšana plāno kadrējumus; izvēloties 'intelligent', kadrējumu struktūras izveide tiek uzticēta modelim.
aspect_rationeobligāts
Tipsenum
Noklusējums16:9
16:99:161:1
Ģenerētā video kadru platuma un augstuma attiecība.
obligāts Kan啤niskais nosaukums, arī pieņemts

Failu parametriem nepieciešams publisks https:// URL, data: URI līdz 10 MB vai augšupielādes file_url. Faili

Izvade

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-video/o3/4k/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": 2100,
    "usd": "2.10",
    "charged": 2100,
    "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"
  }
}
Jūsu faili, jūsu izvēleKatrs outputs[].url ir kopija mūsu krātuvē: tiek glabāta mūžīgi (maksa par GB mēnesī) vai 7 dienas bez maksas — atbilstoši konta iestatījumam vai ?storage=.
Vienāda struktūra katram modelimtype, url, content_type, width, height un duration gan attēliem, gan video un audio. output ir paša modeļa rezultāta objekts.
Izvades lauki
video
object {url, content_type, file_name, file_size}Modeļa izveidotais video.

Vairāk modeļu: Atsauce uz video

AI aģentiem: šī lapa Markdown formātā ir pieejama https://doitong.com/lv/developers/models/kling-video/o3/4k/reference-to-video.md. Visi modeļi un ceļveži: https://doitong.com/developers/llms.txt