Lumaktaw sa nilalaman

Kling 3.0 Pro Text to Video

I-integrate

ID ng modelo kling-video/v3/pro/text-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/kling-video/v3/pro/text-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A paper boat drifts down a rain-filled street gutter at dusk. The camera follows at water level as raindrops ripple around it and neon reflections shimmer on the wet asphalt, then the boat tips over a small cascade into a puddle. Realistic water physics, shallow depth of field, cinematic.",
    "duration": 5,
    "generate_audio": false,
    "aspect_ratio": "16:9"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Kahilingang ito: $0.56 560 kredito ng API Patakbuhin ito sa page na ito

Kumuha ng API key
Kling Text patungong Video Native na audio3–15 s #cinematic#multi-shot

Cinematic na 3 hanggang 15 segundong clip mula sa prompt, na may native sound at multi-shot storytelling.

Mga halimbawa

output · ~141 s

promptA paper boat drifts down a rain-filled street gutter at dusk. The camera follows at water level as raindrops ripple around it and neon reflections shimmer on the wet asphalt, then the boat tips over a small cascade into a puddle. Realistic water physics, shallow depth of field, cinematic.

5 sgenerate_audio: false16:9$0.56 · 560 kredito ng API

Bumuo ng kahilingan

Ang mga control ay binubuo mula sa schema ng modelo. Nagbabago ang code at presyo habang ina-adjust mo ang mga ito.

289 / 2500

Mga text instruction para bumuo ng video. Eksaktong isa sa prompt o multi_prompt ang dapat ibigay.

duration 5 s

Haba ng output na video, sinusukat sa segundo.

aspect_ratio

Ratio ng lapad sa taas ng mga frame sa output na video.

advanced negative_prompt · shot_type · cfg_scale · multi_prompt
0 / 2500
shot_type default na customize

Piliin kung paano pinaplano ng multi-shot pagbuo ang mga shot; kapag pinili ang 'intelligent', ipinauubaya sa modelo ang structure ng shot.

default na 0.5

Itakda kung gaano kalapit susunod ang pagbuo sa iyong prompt gamit ang CFG, pinaikling Classifier Free Guidance.

Mga prompt at tagal bawat shot na, kapag ibinigay, ay pumapalit sa iisang prompt upang lumikha ng video na hinati sa maraming shot.

POST /run/kling-video/v3/pro/text-to-video?wait=20 presyo → $0.56
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/kling-video/v3/pro/text-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A paper boat drifts down a rain-filled street gutter at dusk. The camera follows at water level as raindrops ripple around it and neon reflections shimmer on the wet asphalt, then the boat tips over a small cascade into a puddle. Realistic water physics, shallow depth of field, cinematic.",
    "duration": 5,
    "generate_audio": false,
    "aspect_ratio": "16:9"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Patakbuhin ang kahilingang ito

Nananatili ang iyong key sa browser na ito: ipinapadala lamang ito sa Doitong API at sine-save (localStorage) lamang kung pipiliin mo ang Tandaan. Kumuha ng API key

Tungkol sa Kling 3.0 Pro Text to Video

Pinakamahusay na text-to-video modelo ng Kling na nagre-render ng makinis at pisikal na kapani-paniwalang galaw at ilaw na parang pelikula, at bilang default ay bumubuo ng tugmang tunog at pananalita. Hatiin ang isang clip sa ilang kuha gamit ang prompt bawat kuha, o hayaan ang modelo na magplano mismo ng mga cut. 16:9, 9:16 o 1:1, anumang haba mula 3 hanggang 15 segundo, na may negative prompt at guidance scale.

Mga parameter

PangalanUri defaultPinapayagan Paglalarawan
promptopsyonal
Uristring | null
≤ 2,500 character
Mga text instruction para bumuo ng video. Eksaktong isa sa prompt o multi_prompt ang dapat ibigay.
durationopsyonal
Urienum
default5
3456789101112131415
Haba ng output na video, sinusukat sa segundo.
multi_promptopsyonal
Uriobject[]
Mga prompt at tagal bawat shot na, kapag ibinigay, ay pumapalit sa iisang prompt upang lumikha ng video na hinati sa maraming shot.
multi_prompt[].promptkinakailangan
Uristring
Mga text instruction para sa kasalukuyang shot.
multi_prompt[].durationopsyonal
Urienum
default5
123456789101112131415
Haba ng kasalukuyang shot, sinusukat sa segundo.
generate_audioopsyonal
Uriboolean
defaulttrue
Toggle para sa native video audio pagbuo, na sumusuporta sa mga voice sa Chinese o English at awtomatikong nagsasalin ng ibang wika sa English. Para sa English speech, isulat sa uppercase ang mga acronym at proper noun at lowercase ang lahat ng iba pa.
shot_typeopsyonal
Urienum
defaultcustomize
customizeintelligent
Piliin kung paano pinaplano ng multi-shot pagbuo ang mga shot; kapag pinili ang 'intelligent', ipinauubaya sa modelo ang structure ng shot.
aspect_ratioopsyonal
Urienum
default16:9
16:99:161:1
Ratio ng lapad sa taas ng mga frame sa output na video.
negative_promptopsyonal
Uristring
defaultblur, distort, and low quality
≤ 2,500 character
cfg_scaleopsyonal
Urinumber
default0.5
0 – 1
Itakda kung gaano kalapit susunod ang pagbuo sa iyong prompt gamit ang CFG, pinaikling Classifier Free Guidance.
kinakailangan

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-video/v3/pro/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": 560,
    "usd": "0.56",
    "charged": 560,
    "refunded": 0
  },
  "input": {
    "prompt": "Close-up of fireflies dancing in a dark forest at twilight, soft glowing particles, slow dolly forward",
    "duration": 5,
    "aspect_ratio": "16:9"
  },
  "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Ikaw ang pumipili para sa iyong mga fileAng bawat outputs[].url ay kopya sa aming storage: pinananatili nang walang hanggan (sinisingil bawat GB-month) o 7 araw nang libre, ayon sa setting ng iyong account o ?storage=.
Parehong shape sa bawat modelotype, url, content_type, width, height at duration, para sa mga larawan, video at audio. Ang output ay sariling result object ng modelo.
Mga field ng output
video
object {url, content_type, file_name, file_size}Video na ginawa ng modelo.

Higit pang modelo: Text patungong Video

Para sa mga AI agent: nasa Markdown ang pahinang ito sa https://doitong.com/fil/developers/models/kling-video/v3/pro/text-to-video.md. Lahat ng modelo at gabay: https://doitong.com/developers/llms.txt