שפּרינגען צו אינהאַלט

Kling 4.0 Reference to Video

אינטעגרירן

מאָדעל־id 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"

פֿײַלן ווי דער בײַשפּיל: ⁨$ 1.175⁩ 1,175 API־קרעדיטן אײַערע פֿײַלן ווערן געמאסטן איידערן לויפֿן לויפֿן עס אויף דער דאָזיקער בלאַט

באַקומען אַן API שליסל
Kling רעפֿערענץ צו ווידעא רעפֿערענץ־אײַנגאַבעס3–30 sביז 1080p #reference-to-video#multi-shot#image-reference#video-reference

שאַפֿט 3-30 סעקונדעס לאַנגע ווידעאָס וואָס האַלטן דעם אויסזען פון ביז צו 10 רעפֿערענץ־בילדער, 5 רעפֿערענץ־ווידעאָס און 7 עלעמענטן

געמאַכט אויף Doitong

עפֿנטלעכע ווערק געמאַכט מיט Kling 4.0 פֿון דער Doitong קהילה. ניצט אַ פּינטלעך מיט איין קליק.

געוויזענע עפֿנטלעכע ווערק: 16
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... ווידעא

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... ווידעא

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... ווידעא

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... ווידעא

**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... ווידעא

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 ... ווידעא

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... ווידעא

**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... ווידעא

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

בויען אַ בעטן

קאָנטראָלן ווערן דזשענערירט פֿון דעם מאָדעל־סכעמע. דער קאָד און דער פּרײַז דערהײַנטיקן זיך ווען איר ענדערט זיי.

88 / 2500

גענערירונג־אנווײַזונגען וואָס באַפרידיקן די נויט צו צושטעלן אָדער `prompt` אָדער `multi_prompt`. צו רעפֿערירן צו צוגעשטעלטע אַרײַנגעבונגען נוצן @Image1, @Video1, @Element1 און ווײַטער.

video_urls
לייגט אַרײַן אַ טעקע, אָדער · ביז 5

ביז 5 רעפֿערענץ־ווידעאָס, אָנגעוויזן מיט @Video1, @Video2 און ווײַטער; יעדער דויערט 3–30 סעקונדעס (מאַקסימום 30.05 סעקונדעס), און זייער צוזאַמענגעשטעלטע לענג צוזאַמען מיט עלעמענט־ווידעאָס טאָר נישט איבערגיין 30 סעקונדעס. יעדער פֿײַל מוז זײַן נישט גרעסער ווי 300 MB, מיט ברייט און הייך צווישן 700 px און 4553 px. דער אַספּעקט־פֿאַרהעלטעניש מוז זײַן צווישן 0.40 און 2.50, און דער ראַם־קורס צווישן 23.9 און 60.05 FPS.

resolution סטאַנדאַרט 1080p

רעזאָלוציע פֿונעם רעזולטאַט.

aspect_ratio סטאַנדאַרט 16:9

ווידעא־פּראָפּאָרציעס, אויסגעקליבן בפירוש אָדער אָפּגעשאַצט פֿון די רעפֿערענצן דורך אויסקלײַבן 'auto'.

סטאַנדאַרט 5

ווידעא־לענג אין סעקונדעס, פֿון 3 ביז 30.

פֿאָרגעשריטן image · images · multi_prompt · elements
start_image_url
לייגט אַרײַן אַ טעקע, אָדער

אָפּציאָנאַלע בילד פֿונעם ערשטן ראַם וואָס רעכנט זיך צום בילד־רעפֿערענץ־לימיט. מאַקסימום פֿײַלגרייס איז 30.0 MB; ברייט און הייך מוזן יעדער דערגרייכן 300 px, מיט אַן אַספּעקט־פֿאַרהעלטעניש צווישן 0.40 און 2.50.

image_urls
לייגט אַרײַן אַ טעקע, אָדער · ביז 10

בילד־רעפֿערענצן אָנגעוויזן מיט @Image1, @Image2 און ווײַטער, מיט מאַקסימום 10 בילדער. יעדער פֿײַל איז באַגרענעצט צו 30.0 MB, דאַרף האָבן לכל־הפּחות 300 px אין ביידע דימענסיעס און אַן אַספּעקט־פֿאַרהעלטעניש צווישן 0.40 און 2.50.

שאָס־פֿאַר־שאָס גענערירונג־אנווײַזונגען, וווּ יעדער פּראָמפּט דעפֿינירט איין שאָס וועמענס געדויער בײַשטײַערט צום ווידעאָס גאַנצן לענג.

זאַמלונג פֿון ביז 7 כאַראַקטערן אָדער אָביעקטן, פֿון וועלכע מאַקסימום 3 מעגן אַרײַננעמען אַ `voice_id` און מאַקסימום 3 מעגן נוצן ווידעא. באַצייכענען די עלעמענטן ווי @Element1, @Element2 און ווײַטער.

POST /run/kling/v4/reference-to-video?wait=20 פּרײַז → ⁨$ 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"

לויפֿן דעם ריקוועסט

אײַער key בלײַבט אין דעם בלעטערער: זי ווערט געשיקט נאָר צום Doitong API און אָפּגעהיט (localStorage) נאָר אויב איר טיקט אָן געדענקען. באַקומען אַן API שליסל

וועגן Kling 4.0 Reference to Video

שאַפֿט ווידעא פֿון אַ טעקסט־`prompt` פּלוס רעפֿערענץ־בילדער, רעפֿערענץ־ווידעאָס און כאַראַקטער־ אָדער אָביעקט־עלעמענטן, וואָס ווערן ציטירט אינעם פּראָמפּט ווי @Image1, @Video1 אָדער @Element1. געדויער גייט פֿון 3 ביז 30 סעקונדעס (סטאַנדאַרט 5), מיט רעזולטאַט ביי 720p אָדער 1080p און אַספּעקט־ראַציעס auto, 16:9, 9:16, 1:1 אָדער 21:9. ניצט `multi_prompt` פֿאַר פּראָמפּטן פּער שאָס; דעמאָלט איז די גאַנצע לענג די סומע פֿון די שאָס־געדויערן. לימיטן זענען 10 בילדער, 5 ווידעאָס פֿון 3-30s יעדעס, און 7 עלעמענטן, פֿון וועלכע ביז 3 קענען טראָגן אַ שטימע.

פּאַראַמעטערס

שיקט אָדער דעם קאַנאָנישן נאָמען אָדער דעם נאַטיוון נאָמען, נישט ביידע. קאַנאָנישע נעמען

נאָמעןטיפּ סטאַנדאַרטערלויבט באַשרײַבונג
promptאָפּציאָנעל
טיפּstring | null
≤ 2,500 כאַראַקטערן
גענערירונג־אנווײַזונגען וואָס באַפרידיקן די נויט צו צושטעלן אָדער `prompt` אָדער `multi_prompt`. צו רעפֿערירן צו צוגעשטעלטע אַרײַנגעבונגען נוצן @Image1, @Video1, @Element1 און ווײַטער.
multi_promptאָפּציאָנעל
טיפּobject[]
שאָס־פֿאַר־שאָס גענערירונג־אנווײַזונגען, וווּ יעדער פּראָמפּט דעפֿינירט איין שאָס וועמענס געדויער בײַשטײַערט צום ווידעאָס גאַנצן לענג.
multi_prompt[].promptפארלאנגט
טיפּstring
1 – 512 characters
טעקסט־אנווײַזונגען פֿאַרן איצטיקן שאָס.
multi_prompt[].durationאָפּציאָנעל
טיפּinteger
סטאַנדאַרט5
1 – 30
געדויער פֿון אַן איינציקן שאָס, געמאסטן אין סעקונדעס.
durationאָפּציאָנעל
טיפּinteger
סטאַנדאַרט5
3 – 30
ווידעא־לענג אין סעקונדעס, פֿון 3 ביז 30.
start_image_urlאָפּציאָנעל image
טיפּurl · image
אָפּציאָנאַלע בילד פֿונעם ערשטן ראַם וואָס רעכנט זיך צום בילד־רעפֿערענץ־לימיט. מאַקסימום פֿײַלגרייס איז 30.0 MB; ברייט און הייך מוזן יעדער דערגרייכן 300 px, מיט אַן אַספּעקט־פֿאַרהעלטעניש צווישן 0.40 און 2.50.
image_urlsאָפּציאָנעל images
טיפּurl[] · image
≤ 10 ייטעמס
בילד־רעפֿערענצן אָנגעוויזן מיט @Image1, @Image2 און ווײַטער, מיט מאַקסימום 10 בילדער. יעדער פֿײַל איז באַגרענעצט צו 30.0 MB, דאַרף האָבן לכל־הפּחות 300 px אין ביידע דימענסיעס און אַן אַספּעקט־פֿאַרהעלטעניש צווישן 0.40 און 2.50.
video_urlsאָפּציאָנעל videos
טיפּurl[] · video
≤ 5 ייטעמס
ביז 5 רעפֿערענץ־ווידעאָס, אָנגעוויזן מיט @Video1, @Video2 און ווײַטער; יעדער דויערט 3–30 סעקונדעס (מאַקסימום 30.05 סעקונדעס), און זייער צוזאַמענגעשטעלטע לענג צוזאַמען מיט עלעמענט־ווידעאָס טאָר נישט איבערגיין 30 סעקונדעס. יעדער פֿײַל מוז זײַן נישט גרעסער ווי 300 MB, מיט ברייט און הייך צווישן 700 px און 4553 px. דער אַספּעקט־פֿאַרהעלטעניש מוז זײַן צווישן 0.40 און 2.50, און דער ראַם־קורס צווישן 23.9 און 60.05 FPS.
elementsאָפּציאָנעל
טיפּobject[]
≤ 7 ייטעמס
זאַמלונג פֿון ביז 7 כאַראַקטערן אָדער אָביעקטן, פֿון וועלכע מאַקסימום 3 מעגן אַרײַננעמען אַ `voice_id` און מאַקסימום 3 מעגן נוצן ווידעא. באַצייכענען די עלעמענטן ווי @Element1, @Element2 און ווײַטער.
elements[].frontal_image_urlאָפּציאָנעל
טיפּurl · image
פֿראָנטאַלער בילד וואָס ווײַזט דעם עלעמענטס הויפּט־אויסזען. מאַקסימום פֿײַלגרייס איז 30.0 MB; ביידע דימענסיעס מוזן זײַן לכל־הפּחות 300 px, און דער אַספּעקט־פֿאַרהעלטעניש מוז זײַן צווישן 0.40 און 2.50.
elements[].reference_image_urlsאָפּציאָנעל
טיפּurl[] · image
≤ 3 items
צוגעבונדענע בילדער וואָס ווײַזן פֿאַרשידענע ווינקלען פֿונעם עלעמענט, מיט 1 ביז 3 קוקן. יעדער פֿײַל מעג זײַן מאַקסימום 30.0 MB, מוז מעסטן לכל־הפּחות 300 px אין ביידע דימענסיעס און מוז האָבן אַן אַספּעקט־פֿאַרהעלטעניש צווישן 0.40 און 2.50.
elements[].video_urlאָפּציאָנעל
טיפּurl · video
ווידעא־פֿאָרשטעלונג פֿון אַן עלעמענט אַנשטאָט פֿון בילדער, מיט אַ לענג פֿון 3–30 סעקונדעס (מאַקסימום 30.05 סעקונדעס). דער פֿײַל טאָר נישט איבערגיין 300 MB; ביידע ברייט און הייך מוזן זײַן צווישן 700–4553 px. ערלויבטע אַספּעקט־פֿאַרהעלטענישן זענען 0.40–2.50, מיט ראַם־קורסן פֿון 23.9–60.05 FPS.
elements[].voice_idאָפּציאָנעל
טיפּstring | null
קול צוגעטיילט צום עלעמענט.
resolutionאָפּציאָנעל
טיפּenum
סטאַנדאַרט1080p
720p1080p
רעזאָלוציע פֿונעם רעזולטאַט.
aspect_ratioאָפּציאָנעל
טיפּenum
סטאַנדאַרט16:9
auto16:99:161:121:9
ווידעא־פּראָפּאָרציעס, אויסגעקליבן בפירוש אָדער אָפּגעשאַצט פֿון די רעפֿערענצן דורך אויסקלײַבן 'auto'.
פארלאנגט קאַנאָנישער נאָמען, אויך אַקצעפּטירט

טעקע־פּאַראַמעטערס נעמען אַן עפֿנטלעכע https:// URL, אַ data: URI ביז 10 MB, אָדער דעם file_url פֿון אַן אַרויפֿלאָד. טעקעס

אויסגאַבע

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"
  }
}
אייער טעקעס, אייער ברירהיעדער outputs[].url איז אַ קאַפּיע אין אונדזער סטאָרידזש: געהאַלטן אויף אייביק (באַצאָלט פּער GB־חודש) אָדער 7 טעג אומזיסט, לויט אײַער חשבון־באַשטעטיקונג אָדער ?storage=.
דער זעלבער פֿאָרעם בײַ יעדן מאָדעלtype, url, content_type, width, height און duration, סײַ פֿאַר בילדער, ווידעאָ און אַודיאָ. output איז דער אייגענער רעזולטאַט־אָביעקט פֿון מאָדעל.
פֿעלדער פֿון דער אויסגאַבע
video
object {url, content_type, file_name, file_size}ווידעא געשאַפֿן דורכן מאָדעל.

מער מאָדעלן: רעפֿערענץ צו ווידעא

פֿאַר AI־אַגענטן: דער בלאַט ווי Markdown געפֿינט זיך בײַ https://doitong.com/yi/developers/models/kling/v4/reference-to-video.md. אַלע מאָדעלן און גוידעס: https://doitong.com/developers/llms.txt