Kie.ai icon

Kie.ai

Generate images, videos, and music using Kie.ai API

Actions9

Video → Text to Video

AI-generated

Summary

Generate a video from a text prompt using a selected model

Inputs

  • model (required) — The selected video generation model (Kling, Runway, or Veo).
  • prompt (required) — Text prompt describing the video to generate.
  • additionalFields — Optional settings for the video generation.
  • duration — Video length in seconds (default 5).
  • fps — Frames per second (default 30).
  • aspectRatio — Aspect ratio of the video (16:9, 9:16, 1:1).
  • cameraMovement — Description of camera movement (e.g., pan, zoom).
  • seed — Random seed for reproducibility; -1 for random.
  • quality — Quality tier (Standard or High).
  • sound — Whether to include generated sound.

Output shape

An array of objects, each with a json field containing the Kie.ai task response.

If processing fails and continueOnFail is enabled, the array may contain error objects instead of successful responses.

Examples

Example 1: Generate a short promotional clip

model: 'kling', prompt: 'A futuristic cityscape at sunset', additionalFields: {duration: 8, fps: 30, aspectRatio: '16:9', quality: 'high'}

Example 2: Create a storyboard animation from an image

model: 'kling', prompt: 'Animating the provided illustration', imageUrl: 'https://example.com/img.png', additionalFields: {duration: 5, fps: 24, aspectRatio: '9:16'}

Example 3: Check task status after video generation

resource: 'video', operation: 'getStatus', taskId: '12345', waitForCompletion: true

Links

Discussion