Skip to main content
POST
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the result through the unified Query Task Status endpoint.
Kling 4.0 Flash Text to Video generates a 3–20 second 720p video from a text prompt. Describe the action, camera movement, lighting and sound cues in one prompt and choose from five aspect ratios, a fast fit for drafts, social clips and batch production. Kling 4.0 Flash is the faster 720p tier of Kuaishou’s Kling 4.0 video model. Vidgo exposes it as four model IDs: Text to Video, Image to Video, Reference to Video and Video Edit.

Models

  • kwaivgi/kling-v4.0-flash/text-to-video — Text-to-video with Kling 4.0 Flash, 3–20 seconds at 720p.

Features

  • Prompts up to 26,000 characters for detailed action, camera, lighting and sound direction.
  • Any whole-second duration from 3 to 20 seconds.
  • Five aspect ratios: auto, 16:9, 9:16, 1:1, 21:9.
  • 720p output in a single pass.

Required parameters

  • prompt (string): Scene description, 1–26,000 characters after trimming.

Optional parameters

  • duration (integer): Output length, 3–20 seconds. Default 5.
  • resolution (string): 720p. Default 720p.
  • aspect_ratio (string): auto, 16:9, 9:16, 1:1 or 21:9. Default 16:9.

Output

The finished task returns one 720p MP4 video in the files array of Query Task Status and the callback payload.

Examples

  • Wildlife tracking shot: a red fox trots across a snowy Hokkaido pine clearing at blue hour, 5 seconds, 16:9 (result).
  • Vertical close-up: a potter’s hands raise a stoneware vase on a spinning wheel, 5 seconds, 9:16 (result).

Notes

  • duration takes whole numbers (or integer strings) from 3 to 20.
  • Put model and callback_url at the request root, next to input. input accepts the fields listed above; other fields return 400.
  • Credits are reserved at submission and scale with the output duration at the 720p rate. A failed task is refunded in full. See the pricing page for current rates.

Authorizations

Authorization
string
header
required

Use Authorization: Bearer VIDGO_API_KEY.

Body

application/json
model
string
required
Example:

"kwaivgi/kling-v4.0-flash/text-to-video"

input
object
required
callback_url
string<uri>

Optional webhook URL for completion or failure notifications.

Example:

"https://your-domain.com/callback"

Response

Task submission result. A task ID identifies asynchronous work; generation may still be running.

code
integer
required
Example:

200

data
object
required