Skip to content

Kling - V2.5 Turbo Text to Video Pro ​

Endpoint ​

POST /videos/generations

Full URL: https://modelfold.ai/v1/videos/generations

Authentication: every request must include the Authorization: Bearer <API_KEY> header.

Send model parameters directly in the JSON body. Do not wrap them in input. This request waits for generation to finish and returns data[].url; supported media models also offer async jobs, polling and callbacks. Replace example media URLs with your own publicly accessible files. See API gateway for billing and errors.

Input parameters for the generation task

Request Parameters ​

Body (application/json) ​

ParameterTypeRequiredDescription
modelstringYesThe model name to use for generation. Required field.
- Must be kling/v2-5-turbo-text-to-video-pro for this endpoint Default:"kling/v2-5-turbo-text-to-video-pro"。 Allowed values:kling/v2-5-turbo-text-to-video-pro。 Example:kling/v2-5-turbo-text-to-video-pro。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. The text description of the video you want to generate (Max length: 2500 characters) maxLength: 2000. Example:Real-time playback. Wide shot of a ruined city: collapsed towers, fires blazing, storm clouds with lightning. Camera drops fast from the sky over burning streets and tilted buildings. Smoke and dust fill the air. A lone hero walks out of the ruins, silhouetted by fire. Camera shifts front: his face is dirty with dust and sweat, eyes firm, a faint smile. Wind blows, debris rises. Extreme close-up: his eyes reflect the approaching enemy. Music and drums hit. Final wide shot: fire forms a blazing halo behind him — reborn in flames with epic cinematic vibe.。
durationstringYesRequired. "5" or "10" (seconds). Allowed values:5 / 10。 Example:5。
aspect_ratiostringNoThe aspect ratio of the generated video frame Default:"16:9"。 Allowed values:16:9 / 9:16 / 1:1。 Example:16:9。
negative_promptstringNoThings to avoid in the generated video (Max length: 2500 characters) maxLength: 2500. Example:blur, distort, and low quality。
cfg_scalenumberNoThe CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt (Min: 0, Max: 1, Step: 0.1) (step: 0.1) Default:0.5。 minimum: 0. maximum: 1. Example:0.5。

Request Example ​

bash
curl -X POST "https://modelfold.ai/v1/videos/generations" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling/v2-5-turbo-text-to-video-pro",
  "prompt": "Real-time playback. Wide shot of a ruined city: collapsed towers, fires blazing, storm clouds with lightning. Camera drops fast from the sky over burning streets and tilted buildings. Smoke and dust fill the air. A lone hero walks out of the ruins, silhouetted by fire. Camera shifts front: his face is dirty with dust and sweat, eyes firm, a faint smile. Wind blows, debris rises. Extreme close-up: his eyes reflect the approaching enemy. Music and drums hit. Final wide shot: fire forms a blazing halo behind him — reborn in flames with epic cinematic vibe.",
  "duration": "5",
  "aspect_ratio": "16:9",
  "cfg_scale": 0.5
}'
json
{
  "model": "kling/v2-5-turbo-text-to-video-pro",
  "prompt": "Real-time playback. Wide shot of a ruined city: collapsed towers, fires blazing, storm clouds with lightning. Camera drops fast from the sky over burning streets and tilted buildings. Smoke and dust fill the air. A lone hero walks out of the ruins, silhouetted by fire. Camera shifts front: his face is dirty with dust and sweat, eyes firm, a faint smile. Wind blows, debris rises. Extreme close-up: his eyes reflect the approaching enemy. Music and drums hit. Final wide shot: fire forms a blazing halo behind him — reborn in flames with epic cinematic vibe.",
  "duration": "5",
  "aspect_ratio": "16:9",
  "cfg_scale": 0.5
}

Response ​

200 — Generation completed. usage contains actual billing details; result URLs are illustrative. ​

json
{
  "ok": true,
  "created": 1792134000,
  "data": [
    {
      "url": "https://modelfold.ai/uploads/outputs/result.mp4"
    }
  ],
  "usage": {}
}

ModelFold — one API for all the best AI models.