ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

Kling 4.0 Text to Video

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ 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"

ਉਦਾਹਰਨ ਵਰਗੀਆਂ ਫ਼ਾਈਲਾਂ: $1.175 1,175 API ਕ੍ਰੈਡਿਟ ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ ਚਲਾਉਣ ਤੋਂ ਪਹਿਲਾਂ ਮਾਪੀਆਂ ਜਾਂਦੀਆਂ ਹਨ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Kling ਟੈਕਸਟ ਤੋਂ ਵੀਡੀਓ 3–30 s1080p ਤੱਕ #text-to-video#multi-shot#cinematic#kling

ਸਿਰਫ਼ ਟੈਕਸਟ ਨਾਲ ਵੀਡੀਓ ਬਣਾਉਣਾ, ਵਿਕਲਪਿਕ ਪ੍ਰਤੀ-ਸ਼ਾਟ ਪ੍ਰਾਂਪਟਾਂ ਦੇ ਨਾਲ, 720p ਜਾਂ 1080p ਵਿੱਚ 3 ਤੋਂ 30 ਸਕਿੰਟ ਦੀਆਂ ਕਲਿੱਪਾਂ

Doitong ’ਤੇ ਬਣਾਇਆ ਗਿਆ

Doitong ਭਾਈਚਾਰੇ ਵੱਲੋਂ Kling 4.0 ਨਾਲ ਬਣਾਏ ਜਨਤਕ ਕੰਮ। ਇੱਕ ਕਲਿੱਕ ਨਾਲ ਪ੍ਰੌਮਪਟ ਦੁਬਾਰਾ ਵਰਤੋ।

ਦਿਖਾਏ ਗਏ ਜਨਤਕ ਕੰਮ: 16
**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...

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

Моя первая глобальная цель — 10.000 подписчиков. Я хочу расти вместе с вами, делать сериалы ещё к... ਵੀਡੀਓ

Моя первая глобальная цель — 10.000 подписчиков. Я хочу расти вместе с вами, делать сериалы ещё круче, масштабнее и в итоге превратить это в полноценный проект, чтобы в дальнейшем монетизировать свой блог. Путь к первой десятке объявляю открытым. Идём со мной? Мне нужно такое видео в трёх кадрах...

Оживи старую чёрно-белую свадебную фотографию. Молодожёны стоят рядом друг с другом. Жених нежно ... ਵੀਡੀਓ

Оживи старую чёрно-белую свадебную фотографию. Молодожёны стоят рядом друг с другом. Жених нежно и с любовью смотрит на невесту, слегка улыбается и бережно касается её руки. Невеста мягко улыбается, немного поворачивает голову к жениху и смотрит на него с теплотой. Их движения естественные,...

The woman in the reference photo smiles naturally at the camera. Golden magical sparks begin swir... ਵੀਡੀਓ

The woman in the reference photo smiles naturally at the camera. Golden magical sparks begin swirling around her body. Her eyes briefly glow with warm golden light. A beautiful black witch hat appears on her head, and her clothes magically transform into an elegant black-and-gold witch costume...

Кролик открывает дверь девушке, девушка дает чаевые кролику и говорит « спасибо, мой ушастый друг... ਵੀਡੀਓ

Кролик открывает дверь девушке, девушка дает чаевые кролику и говорит « спасибо, мой ушастый друг», он закрывает за ней дверь и говорит «Пожалуйста, красотка» после того как она села в машину за руль, кролик немного отходит, девушка в дрифте уезжает, все в одной сцене. Съемка кинематографичная....

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

88 / 2500

ਸਿਰਜਣਾ ਲਈ ਟੈਕਸਟ ਹਦਾਇਤਾਂ; `prompt` ਜਾਂ `multi_prompt` ਵਿੱਚੋਂ ਕੋਈ ਇੱਕ ਦਿਓ।

resolution ਡਿਫ਼ਾਲਟ 1080p

ਆਉਟਪੁੱਟ ਦਾ ਰੈਜ਼ੋਲਿਊਸ਼ਨ।

aspect_ratio ਡਿਫ਼ਾਲਟ 16:9

ਨਤੀਜੇ ਵਾਲੀ ਵੀਡੀਓ ਦਾ ਪੱਖ ਅਨੁਪਾਤ।

ਡਿਫ਼ਾਲਟ 5

ਵੀਡੀਓ ਦੀ ਲੰਬਾਈ ਸਕਿੰਟਾਂ ਵਿੱਚ, 3 ਤੋਂ 30 ਤੱਕ।

ਉੱਨਤ multi_prompt

ਸ਼ਾਟ-ਦਰ-ਸ਼ਾਟ ਸਿਰਜਣਾ ਹਦਾਇਤਾਂ, ਜਿਨ੍ਹਾਂ ਵਿੱਚ ਹਰ ਪ੍ਰੌਂਪਟ ਇੱਕ ਸ਼ਾਟ ਪਰਿਭਾਸ਼ਿਤ ਕਰਦੀ ਹੈ ਅਤੇ ਉਸ ਦੀ ਮਿਆਦ ਵੀਡੀਓ ਦੀ ਕੁੱਲ ਲੰਬਾਈ ਵਿੱਚ ਸ਼ਾਮਲ ਹੁੰਦੀ ਹੈ।

POST /run/kling/v4/text-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/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"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Kling 4.0 Text to Video ਬਾਰੇ

2500 ਅੱਖਰਾਂ ਤੱਕ ਦੇ ਟੈਕਸਟ ਪ੍ਰਾਂਪਟ ਤੋਂ ਵੀਡੀਓ ਬਣਾਉਂਦਾ ਹੈ, ਜਿਸ ਵਿੱਚ ਕੋਈ ਚਿੱਤਰ ਜਾਂ ਵੀਡੀਓ ਇਨਪੁੱਟ ਨਹੀਂ ਹੁੰਦੇ। ਵਿਕਲਪ ਵਜੋਂ, `multi_prompt` ਮਲਟੀ-ਸ਼ਾਟ ਕਲਿੱਪਾਂ ਲਈ ਹਰ ਸ਼ਾਟ ਵਾਸਤੇ ਇੱਕ ਪ੍ਰਾਂਪਟ ਦਿੰਦਾ ਹੈ ਅਤੇ ਕੁੱਲ ਲੰਬਾਈ ਸ਼ਾਟਾਂ ਦੀਆਂ ਮਿਆਦਾਂ ਦਾ ਜੋੜ ਹੁੰਦੀ ਹੈ। `duration` 3 ਤੋਂ 30 ਸਕਿੰਟ ਤੱਕ ਹੁੰਦਾ ਹੈ ਅਤੇ ਡਿਫ਼ਾਲਟ 5 ਹੈ। ਰੈਜ਼ੋਲਿਊਸ਼ਨ 720p ਜਾਂ 1080p ਹੋ ਸਕਦਾ ਹੈ, ਅਤੇ `aspect_ratio` 16:9, 9:16, 1:1 ਜਾਂ 21:9 ਹੋ ਸਕਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਵਿਕਲਪਿਕ
ਕਿਸਮstring | null
≤ 2,500 ਅੱਖਰ
ਸਿਰਜਣਾ ਲਈ ਟੈਕਸਟ ਹਦਾਇਤਾਂ; `prompt` ਜਾਂ `multi_prompt` ਵਿੱਚੋਂ ਕੋਈ ਇੱਕ ਦਿਓ।
multi_promptਵਿਕਲਪਿਕ
ਕਿਸਮobject[]
ਸ਼ਾਟ-ਦਰ-ਸ਼ਾਟ ਸਿਰਜਣਾ ਹਦਾਇਤਾਂ, ਜਿਨ੍ਹਾਂ ਵਿੱਚ ਹਰ ਪ੍ਰੌਂਪਟ ਇੱਕ ਸ਼ਾਟ ਪਰਿਭਾਸ਼ਿਤ ਕਰਦੀ ਹੈ ਅਤੇ ਉਸ ਦੀ ਮਿਆਦ ਵੀਡੀਓ ਦੀ ਕੁੱਲ ਲੰਬਾਈ ਵਿੱਚ ਸ਼ਾਮਲ ਹੁੰਦੀ ਹੈ।
multi_prompt[].promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
1 – 512 characters
ਮੌਜੂਦਾ ਸ਼ਾਟ ਲਈ ਟੈਕਸਟ ਹਦਾਇਤਾਂ।
multi_prompt[].durationਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ5
1 – 30
ਇੱਕ ਸ਼ਾਟ ਦੀ ਮਿਆਦ, ਸਕਿੰਟਾਂ ਵਿੱਚ ਮਾਪੀ ਗਈ।
durationਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ5
3 – 30
ਵੀਡੀਓ ਦੀ ਲੰਬਾਈ ਸਕਿੰਟਾਂ ਵਿੱਚ, 3 ਤੋਂ 30 ਤੱਕ।
resolutionਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ1080p
720p1080p
ਆਉਟਪੁੱਟ ਦਾ ਰੈਜ਼ੋਲਿਊਸ਼ਨ।
aspect_ratioਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ16:9
16:99:161:121:9
ਨਤੀਜੇ ਵਾਲੀ ਵੀਡੀਓ ਦਾ ਪੱਖ ਅਨੁਪਾਤ।
ਲੋੜੀਂਦਾ

ਆਉਟਪੁੱਟ

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"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ 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/pa/developers/models/kling/v4/text-to-video.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt