Pereiti prie turinio

Kling 4.0 Text to Video

Integruoti

Modelio id kling/v4/text-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/text-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"

Failai kaip pavyzdyje: 1,175 $ 1 175 API kreditai jūsų failai išmatuojami prieš paleidimą Paleisti šiame puslapyje

Gauti API raktą
Kling Tekstas į vaizdo įrašą 3–30 siki 1080p #text-to-video#multi-shot#cinematic#kling

Tik tekstu pagrįstas vaizdo įrašų generavimas su pasirenkamomis atskirų kadrų užklausomis, 3–30 sekundžių trukmės klipai 720p arba 1080p raiška

Sukurta naudojant Doitong

Doitong bendruomenės sukurti vieši darbai naudojant Kling 4.0. Vienu spustelėjimu panaudokite iš naujo raginimą.

Rodomi vieši darbai: 16
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... Vaizdo įrašas

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... Vaizdo įrašas

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... Vaizdo įrašas

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... Vaizdo įrašas

**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... Vaizdo įrašas

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 ... Vaizdo įrašas

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... Vaizdo įrašas

**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... Vaizdo įrašas

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

Sukurti užklausą

Valdikliai sugeneruojami pagal modelio schemą. Keisdami juos atnaujinsite kodą ir kainą.

88 / 2500

Teksto instrukcijos generavimui; pateikite `prompt` arba `multi_prompt`.

resolution numatytoji 1080p

Išvesties raiška.

aspect_ratio numatytoji 16:9

Galutinio vaizdo įrašo kraštinių santykis.

numatytoji 5

Vaizdo įrašo trukmė sekundėmis nuo 3 iki 30.

Išplėstiniai multi_prompt

Kadrų generavimo instrukcijos, kuriose kiekvienas raginys apibrėžia vieną kadrą, o jo trukmė prisideda prie bendros vaizdo įrašo trukmės.

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

Vykdyti šią užklausą

Jūsų raktas lieka šioje naršyklėje: jis siunčiamas tik į Doitong API ir išsaugomas (localStorage) tik pažymėjus Prisiminti. Gauti API raktą

Apie Kling 4.0 Text to Video

Sukuria vaizdo įrašą iš iki 2500 simbolių tekstinės užklausos, nenaudojant vaizdo ar vaizdo įrašo įvesčių. Arba `multi_prompt` pateikia po vieną užklausą kiekvienam kadrui kelių kadrų klipuose, o bendra trukmė yra kadrų trukmių suma. `duration` gali būti nuo 3 iki 30 sekundžių, numatytoji reikšmė – 5. Raiška gali būti 720p arba 1080p, o `aspect_ratio` – 16:9, 9:16, 1:1 arba 21:9.

Parametrai

PavadinimasTipas Numatytoji reikšmėLeidžiama Aprašas
promptneprivalomas
Tipasstring | null
≤ 2 500 simbolių
Teksto instrukcijos generavimui; pateikite `prompt` arba `multi_prompt`.
multi_promptneprivalomas
Tipasobject[]
Kadrų generavimo instrukcijos, kuriose kiekvienas raginys apibrėžia vieną kadrą, o jo trukmė prisideda prie bendros vaizdo įrašo trukmės.
multi_prompt[].promptprivaloma
Tipasstring
1 – 512 characters
Esamo kadro teksto instrukcijos.
multi_prompt[].durationneprivalomas
Tipasinteger
Numatytoji reikšmė5
1 – 30
Atskiro kadro trukmė sekundėmis.
durationneprivalomas
Tipasinteger
Numatytoji reikšmė5
3 – 30
Vaizdo įrašo trukmė sekundėmis nuo 3 iki 30.
resolutionneprivalomas
Tipasenum
Numatytoji reikšmė1080p
720p1080p
Išvesties raiška.
aspect_rationeprivalomas
Tipasenum
Numatytoji reikšmė16:9
16:99:161:121:9
Galutinio vaizdo įrašo kraštinių santykis.
privaloma

Išvestis

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling/v4/text-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"
  }
}
Jūsų failai — jūsų pasirinkimasKiekvienas outputs[].url yra kopija mūsų saugykloje: saugoma neribotą laiką (mokama už GB per mėnesį) arba 7 dienos nemokamai, pagal paskyros nustatymą arba ?storage=.
Ta pati struktūra kiekviename modelyjetype, url, content_type, width, height ir duration taikomi vaizdams, vaizdo įrašams ir garsui. output yra paties modelio rezultatų objektas.
Išvesties laukai
video
object {url, content_type, file_name, file_size}Modelio sukurtas vaizdo įrašas.

Daugiau modelių: Tekstas į vaizdo įrašą

AI agentams: šis puslapis Markdown formatu pateikiamas adresu https://doitong.com/lt/developers/models/kling/v4/text-to-video.md. Visi modeliai ir vadovai: https://doitong.com/developers/llms.txt