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

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 s1080p ਤੱਕ #reference-to-video#multi-shot#image-reference#video-reference

3-30 ਸਕਿੰਟ ਦੀਆਂ ਵੀਡੀਓ ਬਣਾਉਂਦਾ ਹੈ, ਜੋ ਵੱਧ ਤੋਂ ਵੱਧ 10 ਰੈਫ਼ਰੈਂਸ ਚਿੱਤਰਾਂ, 5 ਰੈਫ਼ਰੈਂਸ ਵੀਡੀਓਆਂ ਅਤੇ 7 ਐਲੀਮੈਂਟਾਂ ਦੀ ਦਿੱਖ ਨੂੰ ਕਾਇਮ ਰੱਖਦੀਆਂ ਹਨ

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

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

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

@Video1, @Video2 ਆਦਿ ਨਾਲ ਸੰਬੋਧਿਤ ਵੱਧ ਤੋਂ ਵੱਧ 5 ਹਵਾਲਾ ਵੀਡੀਓ; ਹਰ ਇੱਕ ਦੀ ਮਿਆਦ 3–30 ਸਕਿੰਟ (ਵੱਧ ਤੋਂ ਵੱਧ 30.05 ਸਕਿੰਟ) ਹੁੰਦੀ ਹੈ, ਅਤੇ element ਵੀਡੀਓ ਸਮੇਤ ਉਨ੍ਹਾਂ ਦੀ ਕੁੱਲ ਮਿਆਦ 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) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Kling 4.0 Reference to Video ਬਾਰੇ

ਟੈਕਸਟ `prompt` ਦੇ ਨਾਲ ਰੈਫ਼ਰੈਂਸ ਚਿੱਤਰਾਂ, ਰੈਫ਼ਰੈਂਸ ਵੀਡੀਓਆਂ ਅਤੇ ਕਿਰਦਾਰ ਜਾਂ ਆਬਜੈਕਟ ਐਲੀਮੈਂਟਾਂ ਤੋਂ ਵੀਡੀਓ ਬਣਾਉਂਦਾ ਹੈ, ਜਿਨ੍ਹਾਂ ਦਾ `prompt` ਵਿੱਚ @Image1, @Video1 ਜਾਂ @Element1 ਵਜੋਂ ਹਵਾਲਾ ਦਿੱਤਾ ਜਾਂਦਾ ਹੈ। ਮਿਆਦ 3 ਤੋਂ 30 ਸਕਿੰਟ ਤੱਕ ਹੁੰਦੀ ਹੈ (ਡਿਫ਼ਾਲਟ 5), ਅਤੇ ਆਉਟਪੁੱਟ 720p ਜਾਂ 1080p ਵਿੱਚ ਅਤੇ auto, 16:9, 9:16, 1:1 ਜਾਂ 21:9 ਆਸਪੈਕਟ ਰੇਸ਼ੋ ਵਿੱਚ ਹੁੰਦੀ ਹੈ। ਪ੍ਰਤੀ-ਸ਼ਾਟ ਪ੍ਰਾਂਪਟਾਂ ਲਈ `multi_prompt` ਵਰਤੋ; ਇਸ ਸਥਿਤੀ ਵਿੱਚ ਕੁੱਲ ਲੰਬਾਈ ਸ਼ਾਟਾਂ ਦੀਆਂ ਮਿਆਦਾਂ ਦਾ ਜੋੜ ਹੁੰਦੀ ਹੈ। ਸੀਮਾਵਾਂ 10 ਚਿੱਤਰ, ਹਰ ਇੱਕ 3-30s ਦੀਆਂ 5 ਵੀਡੀਓਆਂ ਅਤੇ 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 ਆਈਟਮਾਂ
@Video1, @Video2 ਆਦਿ ਨਾਲ ਸੰਬੋਧਿਤ ਵੱਧ ਤੋਂ ਵੱਧ 5 ਹਵਾਲਾ ਵੀਡੀਓ; ਹਰ ਇੱਕ ਦੀ ਮਿਆਦ 3–30 ਸਕਿੰਟ (ਵੱਧ ਤੋਂ ਵੱਧ 30.05 ਸਕਿੰਟ) ਹੁੰਦੀ ਹੈ, ਅਤੇ element ਵੀਡੀਓ ਸਮੇਤ ਉਨ੍ਹਾਂ ਦੀ ਕੁੱਲ ਮਿਆਦ 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, 10 MB ਤੱਕ ਦਾ data: URI, ਜਾਂ ਅੱਪਲੋਡ ਦੇ 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/pa/developers/models/kling/v4/reference-to-video.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt