Leum chun t-susbaint

Kling Video · Video to Audio

Amalaich

ID a’ mhodail kling-video/video-to-audio
# 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/video-to-audio?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

An t-iarrtas seo: $0.035 35 creideasan API Ruith e air an duilleig seo

Faigh iuchair API

Cruthaich buadhan-fuaim agus ceòl cùil airson bhidio 3-20 s agus till fuaim còmhla ri bhidio dubáilte

Kling · Bhidio

Thèid a’ chiad toradh agad an-seo

Tog iarrtas gu h-ìosal agus ruith e leis an iuchair API agad. Tha na h-às-churan air an lethbhreacadh dhan stòradh againn, air an cumail gu bràth no 7 latha an-asgaidh.

Tog iarrtas

Tha na smachdan air an cruthachadh bho sgeama a’ mhodail. Bidh an còd agus a’ phrìs ag ùrachadh fhad ’s a dh’atharraicheas tu iad.

•riatanach video_url
Leig às faidhle, no

URL tùsail airson claisneachd a tharraing à bhidio a mhaireas 3.0–20.0 diog. Feumaidh am faidhle a bhith .mp4 no .mov agus gun a bhith nas motha na 100 MB.

Adhartach sound_effect_prompt · background_music_prompt · enable_safety_checker · asmr_mode
0 / 200

Prompt a’ mìneachadh buaidhean fuaim, le crìoch de 200 caractar.

0 / 200

Prompt a’ mìneachadh ceòl cùil, le crìoch de 200 caractar.

POST /run/kling-video/video-to-audio?wait=20 tuairmse → $0.035
# 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/video-to-audio?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Ruith an t-iarrtas seo

Fuirichidh an iuchair agad sa bhrobhsair seo: thèid a cur chun Doitong API a-mhàin agus a sàbhaladh (localStorage) a-mhàin ma chuireas tu comharra ri Cuimhnich. Faigh iuchair API

Mu Kling Video · Video to Audio

Cuir fuaim ri criomag shàmhach no làithreach (.mp4/.mov, 100MB aig a’ char as àirde, 3-20 diogan). Stiùirich e le `sound_effect_prompt` agus `background_music_prompt`, gach fear suas ri 200 caractaran, agus cuir `asmr_mode` an comas airson buadhan mionaideach bogaidh. Tillidh e faidhle fuaim MP3 agus a’ bhidio thùsail leis an fhuaim ùr.

Paramadairean

Cuir an t-ainm canonical no an t-ainm dùthchasach, chan e an dà chuid. Ainmean canonical

AinmSeòrsa Bun-roghainnCeadaichte Tuairisgeul
enable_safety_checkerroghainneil
Seòrsaboolean
Bun-roghainntrue
Chan urrainnear sgrùdaidhean sàbhailteachd a chur à comas ach le ùghdarras cunntais; thèid iarrtasan gun ùghdarras a sgrùdadh an-còmhnaidh.
video_urlriatanach video
Seòrsaurl · video
URL tùsail airson claisneachd a tharraing à bhidio a mhaireas 3.0–20.0 diog. Feumaidh am faidhle a bhith .mp4 no .mov agus gun a bhith nas motha na 100 MB.
sound_effect_promptroghainneil
Seòrsastring | null
Bun-roghainnCar tires screech as they accelerate in a drag race
≤ 200 caractar
Prompt a’ mìneachadh buaidhean fuaim, le crìoch de 200 caractar.
background_music_promptroghainneil
Seòrsastring | null
Bun-roghainnintense car race
≤ 200 caractar
Prompt a’ mìneachadh ceòl cùil, le crìoch de 200 caractar.
asmr_moderoghainneil
Seòrsaboolean
Bun-roghainnfalse
Tha modh ASMR a’ cur cuideam air mion-fhiosrachadh buaidhean fuaim airson susbaint air leth bogaidh.
riatanach Ainm canonical, gabhar ris cuideachd

Gabhaidh paramadairean faidhle ri URL poblach https://, URI data: suas ri 10 MB, no file_url de luchdachadh suas. Faidhlichean

Toradh

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling-video/video-to-audio",
  "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": 35,
    "usd": "0.035",
    "charged": 35,
    "refunded": 0
  },
  "input": {
    "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
    },
    "audio": {
      "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"
  }
}
Na faidhlichean agad, do roghainnTha gach outputs[].url na lethbhreac air an stòradh againn: air a chumail gu bràth (air a phàigheadh gach GB-mìos) no 7 latha an-asgaidh, a rèir suidheachadh a’ chunntais agad no ?storage=.
An aon chruth air gach modailtype, url, content_type, width, height agus duration, airson dealbhan, bhidio agus fuaim le chèile. ’S e output nì toraidh a’ mhodail fhèin.
Raointean toraidh
video
object {url, content_type, file_name, file_size}Bhidio tùsail leis a’ cheòl-dubhaidh air a chur ris.
audio
object {url, content_type, file_name, file_size}Claisneachd MP3 air a tharraing no air a gineadh às a’ bhidio.

Barrachd mhodalan: Bhidio gu Fuaim

Do riochdairean AI: tha an duilleag seo mar Markdown aig https://doitong.com/gd/developers/models/kling-video/video-to-audio.md. Na modailean agus na treòraichean uile: https://doitong.com/developers/llms.txt