Ugrás a tartalomhoz

Kling 4.0 Text to Video

Integráció

Modellazonosító 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"

A példához hasonló fájlok: 1,175 $ 1175 API-jóváírás a fájljaidat a futtatás előtt megmérjük Futtatás ezen az oldalon

API-kulcs beszerzése
Kling Szövegből videó 3–30 slegfeljebb 1080p #text-to-video#multi-shot#cinematic#kling

Csak szövegen alapuló videógenerálás opcionális képenkénti promptokkal, 3–30 másodperces klipekkel 720p vagy 1080p felbontásban

A Doitongon készült

A Doitong közössége által a(z) Kling 4.0 használatával készített nyilvános munkák. Egy kattintással újra felhasználhatod a promptot.

Megjelenített nyilvános munkák: 16
Ultra-realistic cinematic video of a young adult woman walking naturally toward the camera while ... Videó

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... Videó

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... Videó

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... Videó

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

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 ... Videó

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... Videó

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

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

Kérés összeállítása

A vezérlők a modell sémájából jönnek létre. A kód és az ár a módosításokkal együtt frissül.

88 / 2500

Generálási szöveges utasítások; add meg a `prompt` vagy a `multi_prompt` egyikét.

resolution alapértelmezett: 1080p

A kimenet felbontása.

aspect_ratio alapértelmezett: 16:9

A létrejövő videó képaránya.

alapértelmezett: 5

A videó hossza másodpercben, 3 és 30 között.

Speciális multi_prompt

Snittenkénti generálási utasítások, amelyekben minden prompt egy snittet határoz meg, és annak időtartama hozzájárul a videó teljes hosszához.

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

Kérés futtatása

A kulcsod ebben a böngészőben marad: csak a Doitong API-nak küldjük el, és csak akkor mentjük a localStorage-ba, ha bejelölöd az Emlékezz rám lehetőséget. API-kulcs igénylése

A(z) Kling 4.0 Text to Video bemutatása

Legfeljebb 2500 karakteres szöveges promptból hoz létre videót, kép- vagy videóbemenet nélkül. Alternatívaként a `multi_prompt` képenként egy promptot ad meg többképes klipekhez, a teljes hossz pedig a képek időtartamának összege. A `duration` értéke 3–30 másodperc lehet, alapértelmezés szerint 5. A felbontás 720p vagy 1080p lehet, az `aspect_ratio` értéke pedig 16:9, 9:16, 1:1 vagy 21:9.

Paraméterek

NévTípus AlapértelmezettEngedélyezett Leírás
promptnem kötelező
Típusstring | null
≤ 2500 karakter
Generálási szöveges utasítások; add meg a `prompt` vagy a `multi_prompt` egyikét.
multi_promptnem kötelező
Típusobject[]
Snittenkénti generálási utasítások, amelyekben minden prompt egy snittet határoz meg, és annak időtartama hozzájárul a videó teljes hosszához.
multi_prompt[].promptkötelező
Típusstring
1 – 512 characters
Az aktuális snitt szöveges utasításai.
multi_prompt[].durationnem kötelező
Típusinteger
Alapértelmezett5
1 – 30
Egy adott snitt időtartama másodpercben megadva.
durationnem kötelező
Típusinteger
Alapértelmezett5
3 – 30
A videó hossza másodpercben, 3 és 30 között.
resolutionnem kötelező
Típusenum
Alapértelmezett1080p
720p1080p
A kimenet felbontása.
aspect_rationem kötelező
Típusenum
Alapértelmezett16:9
16:99:161:121:9
A létrejövő videó képaránya.
kötelező

Kimenet

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"
  }
}
Az Ön fájljai, az Ön döntéseMinden outputs[].url a tárhelyünkön lévő másolat: örökre megőrizve (GB-hónaponként fizetve) vagy 7 nap ideig ingyenesen, a fiókbeállításod vagy a ?storage= alapján.
Azonos struktúra minden modellentype, url, content_type, width, height és duration képekhez, videókhoz és hanganyagokhoz egyaránt. Az output a modell saját eredményobjektuma.
A kimenet mezői
video
object {url, content_type, file_name, file_size}A modell által létrehozott videó.

További modellek: Szövegből videó

AI-ügynököknek: ez az oldal Markdown formátumban itt található: https://doitong.com/hu/developers/models/kling/v4/text-to-video.md. Minden modell és útmutató: https://doitong.com/developers/llms.txt