Léim chuig an ábhar

Kling Video v2.6 Text to Video

Comhtháthú

Aitheantas na samhla kling-video/v2.6/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/v2.6/pro/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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

An t-iarratas seo: $0.70 700 gcreidmheas API Rith ar an leathanach seo

Faigh eochair API
Kling Téacs go Físeán Fuaim dhúchasach5–10 s

Téacs-go-físeán v2.6 le haschur fuaime dúchasaí, gearrthóga 5 nó 10 s, agus rialú CFG agus cóimheasa gné

Kling · Físeán

Beidh do chéad toradh anseo

Tóg iarratas thíos agus rith é le d’eochair API. Cóipeáiltear na haschuir chuig ár stóráil, coinnithe go deo nó ar feadh 7 lá saor in aisce.

Tóg iarratas

Gintear na rialtáin ó scéim na samhla. Nuashonraítear an cód agus an praghas de réir mar a athraíonn tú iad.

•riachtanach 88 / 2500
duration 5 s

Fad an fhíseáin aschuir, tomhaiste ina soicindí.

aspect_ratio réamhshocrú 16:9

Cóimheas leithead-airde na bhfrámaí san fhíseán aschuir.

Ardleibhéal negative_prompt · cfg_scale · enable_safety_checker
0 / 2500
réamhshocrú 0.5

Socraigh cé chomh dlúth agus a leanann an giniúint do leid ag úsáid CFG, giorrúchán ar Classifier Free Guidance.

POST /run/kling-video/v2.6/pro/text-to-video?wait=20 luachan → $0.70
# 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/v2.6/pro/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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Rith an t-iarratas seo

Fanann d'eochair sa bhrabhsálaí seo: seoltar chuig Doitong API amháin í agus sábháiltear (localStorage) í ach amháin má chuireann tú tic le Meabhraigh. Faigh eochair API

Maidir le Kling Video v2.6 Text to Video

Gineann sé físeán ó leid téacs suas le 2500 carachtar. Is é `duration` 5 nó 10 soicind agus is é `aspect_ratio` 16:9, 9:16 nó 1:1. Raonta `cfg_scale` ó 0 go 1, tacaítear le `negative_prompt`, agus cuireann `generate_audio` fuaim dhúchasach leis le caint Sínise agus Béarla.

Paraiméadair

AinmCineál RéamhshocrúCeadaithe Cur síos
enable_safety_checkerroghnach
Cineálboolean
Réamhshocrútrue
Ní féidir seiceálacha sábháilteachta a dhíchumasú ach le húdarú cuntais; déantar seiceáil i gcónaí ar iarratais gan údarú.
promptriachtanach
Cineálstring
≤ 2,500 gcarachtar
durationroghnach
Cineálenum
Réamhshocrú5
510
Fad an fhíseáin aschuir, tomhaiste ina soicindí.
aspect_ratioroghnach
Cineálenum
Réamhshocrú16:9
16:99:161:1
Cóimheas leithead-airde na bhfrámaí san fhíseán aschuir.
negative_promptroghnach
Cineálstring
Réamhshocrúblur, distort, and low quality
≤ 2,500 gcarachtar
cfg_scaleroghnach
Cineálnumber
Réamhshocrú0.5
0 – 1
Socraigh cé chomh dlúth agus a leanann an giniúint do leid ag úsáid CFG, giorrúchán ar Classifier Free Guidance.
generate_audioroghnach
Cineálboolean
Réamhshocrútrue
Lascthrealamh giniúna fuaime dúchasaí físeáin, a thacaíonn le guthanna i Sínis nó i mBéarla agus a aistríonn aon teanga eile go Béarla go huathoibríoch. Maidir le hurlabhra Béarla, scríobh acrainmneacha agus ainmfhocail chearta i gceannlitreacha agus gach rud eile i litreacha beaga.
riachtanach

Aschur

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-video/v2.6/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": 700,
    "usd": "0.70",
    "charged": 700,
    "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Do chuid comhad, do roghaIs cóip ar ár stóráil é gach outputs[].url: coinnithe go deo (íoctha in aghaidh GB-mhí) nó ar feadh 7 lá saor in aisce, de réir shocrú do chuntais nó ?storage=.
An cruth céanna ar gach samhailtype, url, content_type, width, height agus duration, d'íomhánna, d'fhíseáin agus d'fhuaim araon. Is é output réad toraidh na samhla féin.
Réimsí aschuir
video
object {url, content_type, file_name, file_size}Físeán arna tháirgeadh ag an tsamhail.

Tuilleadh samhlacha: Téacs go Físeán

Do ghníomhairí AI: tá an leathanach seo mar Markdown ag https://doitong.com/ga/developers/models/kling-video/v2.6/pro/text-to-video.md. Gach samhail agus treoir: https://doitong.com/developers/llms.txt