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

Kling Video 4K Video to Video Edit

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

ਮਾਡਲ id kling-video/o3/4k/video-to-video/edit
# 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/video-to-video/edit?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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"

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

API ਕੁੰਜੀ ਲਵੋ

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

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

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

ਵੀਡੀਓ ਸਿਰਜਣ ਲਈ ਟੈਕਸਟ ਹਦਾਇਤਾਂ। ਸੰਦਰਭ ਵੀਡੀਓ ਦਾ ਹਵਾਲਾ ਦੇਣ ਲਈ @Video1 ਵਰਤੋ।

•ਲੋੜੀਂਦਾ video_url
ਫ਼ਾਈਲ ਛੱਡੋ, ਜਾਂ

.mp4 ਜਾਂ .mov ਫਾਰਮੈਟ ਵਿੱਚ ਸੰਦਰਭ ਵੀਡੀਓ ਵੱਲ ਇਸ਼ਾਰਾ ਕਰਨ ਵਾਲਾ URL, ਜਿਸ ਦਾ ਆਕਾਰ 200MB ਤੋਂ ਵੱਧ ਨਾ ਹੋਵੇ। ਦੋਵੇਂ ਮਾਪ 720px ਤੋਂ 3840px ਦੇ ਵਿਚਕਾਰ, ਫ੍ਰੇਮ ਦਰ 23.0–60.0 FPS ਅਤੇ ਮਿਆਦ 3–15 ਸਕਿੰਟ (ਵੱਧ ਤੋਂ ਵੱਧ 15.05 ਸਕਿੰਟ) ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ।

ਉੱਨਤ images · shot_type · enable_safety_checker · keep_audio · elements
image_urls
ਫ਼ਾਈਲ ਛੱਡੋ, ਜਾਂ

ਸ਼ੈਲੀ ਜਾਂ ਦਿੱਖ ਲਈ ਮਾਰਗਦਰਸ਼ਨ ਕਰਨ ਵਾਲੇ ਚਿੱਤਰ, ਜਿਨ੍ਹਾਂ ਨੂੰ ਪ੍ਰੌਂਪਟ ਵਿੱਚ @Image1, @Image2 ਆਦਿ ਰਾਹੀਂ ਦਰਸਾਇਆ ਜਾਂਦਾ ਹੈ। ਵੀਡੀਓ ਇਨਪੁੱਟ ਦੇ ਨਾਲ ਤੱਤ ਅਤੇ ਸੰਦਰਭ ਚਿੱਤਰ ਮਿਲਾ ਕੇ 4 ਐਂਟਰੀਆਂ ਤੋਂ ਵੱਧ ਨਹੀਂ ਹੋ ਸਕਦੇ। ਹਰ ਫ਼ਾਈਲ 50 MB ਤੱਕ ਸੀਮਿਤ ਹੈ; ਚੌੜਾਈ ਅਤੇ ਉਚਾਈ ਦੋਵੇਂ ਘੱਟੋ-ਘੱਟ 300 px ਅਤੇ ਆਸਪੈਕਟ ਰੇਸ਼ੋ 0.40 ਤੋਂ 2.50 ਤੱਕ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।

ਡਿਫ਼ਾਲਟ customize

ਬਹੁ-ਸ਼ਾਟ ਵੀਡੀਓ ਸਿਰਜਣ ਲਈ ਵਰਤਿਆ ਜਾਣ ਵਾਲਾ ਮੋਡ।

ਸ਼ਾਮਲ ਕੀਤੇ ਜਾਣ ਵਾਲੇ ਪਾਤਰ ਜਾਂ ਵਸਤੂਆਂ, ਜਿਨ੍ਹਾਂ ਨੂੰ ਪ੍ਰੌਂਪਟ ਵਿੱਚ @Element1 ਅਤੇ @Element2 ਰਾਹੀਂ ਦਰਸਾਇਆ ਜਾਂਦਾ ਹੈ।

POST /run/kling-video/o3/4k/video-to-video/edit?wait=20 ਕੋਟ → $4.20
# 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/video-to-video/edit?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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 Video 4K Video to Video Edit ਬਾਰੇ

`video_url` ਰਾਹੀਂ ਦਿੱਤੀ ਮੌਜੂਦਾ ਵੀਡੀਓ ਨੂੰ @Video1 ਵਜੋਂ ਦਰਸਾਉਂਦੇ `prompt` ਨਾਲ ਸੰਪਾਦਿਤ ਕਰਦਾ ਹੈ। ਸਰੋਤ mp4 ਜਾਂ mov, 3 ਤੋਂ 15 ਸਕਿੰਟ, 720 ਤੋਂ 3840 px ਅਤੇ ਵੱਧ ਤੋਂ ਵੱਧ 200MB ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ। `image_urls` ਜਾਂ `elements` ਵਿੱਚ ਸ਼ੈਲੀ ਦੇ ਹਵਾਲੇ ਸ਼ਾਮਲ ਕਰੋ, ਕੁੱਲ ਵੱਧ ਤੋਂ ਵੱਧ 4। `keep_audio` ਮੂਲ ਧੁਨੀ ਕਾਇਮ ਰੱਖਦਾ ਹੈ ਅਤੇ ਪੂਰਵ-ਨਿਰਧਾਰਤ ਤੌਰ 'ਤੇ ਚਾਲੂ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਕੈਨੋਨਿਕਲ ਨਾਮ ਜਾਂ ਨੇਟਿਵ ਨਾਮ ਵਿੱਚੋਂ ਕੋਈ ਇੱਕ ਭੇਜੋ, ਦੋਵੇਂ ਨਹੀਂ। ਕੈਨੋਨਿਕਲ ਨਾਮ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
enable_safety_checkerਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
ਸੁਰੱਖਿਆ ਜਾਂਚਾਂ ਸਿਰਫ਼ ਖਾਤਾ ਅਧਿਕਾਰ ਨਾਲ ਅਸਮਰੱਥ ਕੀਤੀਆਂ ਜਾ ਸਕਦੀਆਂ ਹਨ; ਬਿਨਾਂ ਅਧਿਕਾਰ ਵਾਲੀਆਂ ਬੇਨਤੀਆਂ ਦੀ ਹਮੇਸ਼ਾ ਜਾਂਚ ਕੀਤੀ ਜਾਂਦੀ ਹੈ।
promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
≤ 2,500 ਅੱਖਰ
ਵੀਡੀਓ ਸਿਰਜਣ ਲਈ ਟੈਕਸਟ ਹਦਾਇਤਾਂ। ਸੰਦਰਭ ਵੀਡੀਓ ਦਾ ਹਵਾਲਾ ਦੇਣ ਲਈ @Video1 ਵਰਤੋ।
video_urlਲੋੜੀਂਦਾ video
ਕਿਸਮurl · video
.mp4 ਜਾਂ .mov ਫਾਰਮੈਟ ਵਿੱਚ ਸੰਦਰਭ ਵੀਡੀਓ ਵੱਲ ਇਸ਼ਾਰਾ ਕਰਨ ਵਾਲਾ URL, ਜਿਸ ਦਾ ਆਕਾਰ 200MB ਤੋਂ ਵੱਧ ਨਾ ਹੋਵੇ। ਦੋਵੇਂ ਮਾਪ 720px ਤੋਂ 3840px ਦੇ ਵਿਚਕਾਰ, ਫ੍ਰੇਮ ਦਰ 23.0–60.0 FPS ਅਤੇ ਮਿਆਦ 3–15 ਸਕਿੰਟ (ਵੱਧ ਤੋਂ ਵੱਧ 15.05 ਸਕਿੰਟ) ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ।
image_urlsਵਿਕਲਪਿਕ images
ਕਿਸਮurl[] · image
ਸ਼ੈਲੀ ਜਾਂ ਦਿੱਖ ਲਈ ਮਾਰਗਦਰਸ਼ਨ ਕਰਨ ਵਾਲੇ ਚਿੱਤਰ, ਜਿਨ੍ਹਾਂ ਨੂੰ ਪ੍ਰੌਂਪਟ ਵਿੱਚ @Image1, @Image2 ਆਦਿ ਰਾਹੀਂ ਦਰਸਾਇਆ ਜਾਂਦਾ ਹੈ। ਵੀਡੀਓ ਇਨਪੁੱਟ ਦੇ ਨਾਲ ਤੱਤ ਅਤੇ ਸੰਦਰਭ ਚਿੱਤਰ ਮਿਲਾ ਕੇ 4 ਐਂਟਰੀਆਂ ਤੋਂ ਵੱਧ ਨਹੀਂ ਹੋ ਸਕਦੇ। ਹਰ ਫ਼ਾਈਲ 50 MB ਤੱਕ ਸੀਮਿਤ ਹੈ; ਚੌੜਾਈ ਅਤੇ ਉਚਾਈ ਦੋਵੇਂ ਘੱਟੋ-ਘੱਟ 300 px ਅਤੇ ਆਸਪੈਕਟ ਰੇਸ਼ੋ 0.40 ਤੋਂ 2.50 ਤੱਕ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।
keep_audioਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
ਸੰਦਰਭ ਵੀਡੀਓ ਦੀ ਮੂਲ ਆਡੀਓ ਬਰਕਰਾਰ ਰੱਖਣ ਨੂੰ ਨਿਯੰਤਰਿਤ ਕਰਦਾ ਹੈ।
elementsਵਿਕਲਪਿਕ
ਕਿਸਮobject[]
ਸ਼ਾਮਲ ਕੀਤੇ ਜਾਣ ਵਾਲੇ ਪਾਤਰ ਜਾਂ ਵਸਤੂਆਂ, ਜਿਨ੍ਹਾਂ ਨੂੰ ਪ੍ਰੌਂਪਟ ਵਿੱਚ @Element1 ਅਤੇ @Element2 ਰਾਹੀਂ ਦਰਸਾਇਆ ਜਾਂਦਾ ਹੈ।
elements[].frontal_image_urlਵਿਕਲਪਿਕ
ਕਿਸਮurl · image
ਤੱਤ ਦਾ ਮੁੱਖ ਦ੍ਰਿਸ਼ ਦਿਖਾਉਣ ਵਾਲਾ ਸਾਹਮਣੇ ਤੋਂ ਲਿਆ ਚਿੱਤਰ। ਫ਼ਾਈਲ ਦਾ ਆਕਾਰ 50 MB ਤੋਂ ਵੱਧ ਨਹੀਂ ਹੋਣਾ ਚਾਹੀਦਾ; ਚੌੜਾਈ ਅਤੇ ਉਚਾਈ ਦੋਵੇਂ ਘੱਟੋ-ਘੱਟ 300px ਅਤੇ ਆਸਪੈਕਟ ਰੇਸ਼ੋ 0.40 ਤੋਂ 2.50 ਦੇ ਵਿਚਕਾਰ ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ।
elements[].reference_image_urlsਵਿਕਲਪਿਕ
ਕਿਸਮurl[] · image
ਵੱਖ-ਵੱਖ ਕੋਣ ਦਿਖਾਉਣ ਵਾਲੇ 1–3 ਵਾਧੂ ਸੰਦਰਭ ਚਿੱਤਰ ਦਿਓ। ਹਰ ਚਿੱਤਰ ਦਾ ਆਸਪੈਕਟ ਰੇਸ਼ੋ 0.40 ਤੋਂ 2.50 ਦੇ ਵਿਚਕਾਰ, ਦੋਵੇਂ ਮਾਪ ਘੱਟੋ-ਘੱਟ 300px ਅਤੇ ਆਕਾਰ 50.0MB ਤੋਂ ਵੱਧ ਨਹੀਂ ਹੋਣਾ ਚਾਹੀਦਾ।
shot_typeਵਿਕਲਪਿਕ
ਕਿਸਮstring
ਡਿਫ਼ਾਲਟcustomize
ਬਹੁ-ਸ਼ਾਟ ਵੀਡੀਓ ਸਿਰਜਣ ਲਈ ਵਰਤਿਆ ਜਾਣ ਵਾਲਾ ਮੋਡ।
ਲੋੜੀਂਦਾ ਕੈਨੋਨਿਕਲ ਨਾਮ, ਇਹ ਵੀ ਸਵੀਕਾਰਿਆ ਜਾਂਦਾ ਹੈ

ਫ਼ਾਈਲ ਪੈਰਾਮੀਟਰ ਜਨਤਕ https:// URL, 10 MB ਤੱਕ ਦਾ data: URI, ਜਾਂ ਅੱਪਲੋਡ ਦੇ file_url ਨੂੰ ਸਵੀਕਾਰਦੇ ਹਨ। ਫ਼ਾਈਲਾਂ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-video/o3/4k/video-to-video/edit",
  "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": 4200,
    "usd": "4.20",
    "charged": 4200,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "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-video/o3/4k/video-to-video/edit.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt