Dža ko lil

Kling 4.0 Text to Video

Integriruj

Modelosko id kling/v4/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/v4/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"

Fajlo sar o misalo: $1.175 1,175 API krediti tire fajlo si merime angl-o phiripen Phir les kate

Lel API klidin
Kling Teksto ko Video 3–30 sdži 1080p #text-to-video#multi-shot#cinematic#kling

Video-generacija numa andar tekst, opcionalne promptura perdal-o-shot, klipura 3 dži 30 sekundendar ando 720p vaj 1080p

Kling · Video

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

88 / 2500

Tekstoske instrukcie e keripaski; de vaj `prompt`, vaj `multi_prompt`.

resolution standardno 1080p

Rezolucija e rezultatosko.

aspect_ratio standardno 16:9

Aspect ratio e rezultato videoqo.

standardno 5

Videosko lungipe sekundenca, 3 tar 30.

Lučhe multi_prompt

Instrukcije vaś o keripe kadar palal kadar, kaj sako prompto definisarel jekh kadar, savesko vaxt del kontribucija ko sasto vaxt le videosko.

POST /run/kling/v4/text-to-video?wait=20 hesab → $1.175
# 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/v4/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"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal Kling 4.0 Text to Video

Kerel video katar o tekstualno prompto dži ko 2500 karakterija, bi kipo vaj video inputo. Alternativno, `multi_prompt` del jekh prompto po šoto vaš o multi-shot klipura, thaj i celokupno lungime si i suma katar o šoto `duration`. `duration` džal katar 3 dži ko 30 sekunde, standardno 5. I rezolucija šaj te ovel 720p vaj 1080p, thaj o `aspect_ratio` šaj te ovel 16:9, 9:16, 1:1 vaj 21:9.

Parametra

NavTip standardnoMuklo Vakeripe
promptopcionalno
Tipstring | null
≤ 2,500 simbolura
Tekstoske instrukcie e keripaski; de vaj `prompt`, vaj `multi_prompt`.
multi_promptopcionalno
Tipobject[]
Instrukcije vaś o keripe kadar palal kadar, kaj sako prompto definisarel jekh kadar, savesko vaxt del kontribucija ko sasto vaxt le videosko.
multi_prompt[].prompttrubul
Tipstring
1 – 512 characters
Tekstoske instrukcie e akale shotoske.
multi_prompt[].durationopcionalno
Tipinteger
standardno5
1 – 30
Jekhe shotosko lungipe, sikavdo sekundenca.
durationopcionalno
Tipinteger
standardno5
3 – 30
Videosko lungipe sekundenca, 3 tar 30.
resolutionopcionalno
Tipenum
standardno1080p
720p1080p
Rezolucija e rezultatosko.
aspect_ratioopcionalno
Tipenum
standardno16:9
16:99:161:121:9
Aspect ratio e rezultato videoqo.
trubul

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "kling/v4/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": 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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
video
object {url, content_type, file_name, file_size}Video kerdo le modelostar.

Bute modeli: Teksto ko Video

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/kling/v4/text-to-video.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt