Runway Gen4 (Kie.ai) icon

Runway Gen4 (Kie.ai)

Generate and extend videos using Runway Gen4 via Kie.ai API

Text to Video

AI-generated

Summary

Generate a video from a text prompt using the Runway Gen4 model via the Kie.ai API, optionally waiting for task completion and handling webhook callbacks.

Inputs

  • Model — Select video generation model, either 'Gen4 Turbo' (default) or 'Gen4'.
  • Prompt (required) — Text prompt to generate the video content.
  • Quality (required) — Video quality, either '720p' (default) or '1080p'.
  • Aspect Ratio — Aspect ratio of the output video; options are '16:9' (default), '9:16', or '1:1'.
  • Duration (Seconds) — Length of the generated video in seconds; options are 5 (default) or 10.
  • Seed — Integer seed for reproducibility; 0 (default) means random seed.
  • Reply URL — Webhook URL to notify upon task completion.
  • Reply Ref — Custom reference string included in webhook callback.
  • Captcha Token — reCAPTCHA token if required by the API.
  • Wait for Completion — Boolean to wait for task completion before returning, default true (polls status every 3 seconds with 5 minute timeout).

Output shape

a JSON array containing one object per input item with the API response data for the generated video task

If 'Wait for Completion' is true, the output contains the final completed task details including result URLs; otherwise, it contains the initial API response with task ID. Use expression paths to access video URLs under 'data.resultUrls' or similar fields.

Examples

Example 1: Generate a 5-second 720p 16:9 video from a descriptive text prompt using default Gen4 Turbo model, waiting for completion.

Set 'Prompt' to desired text, leave other optional parameters to defaults or specify as needed, and set 'Wait for Completion' to true.

Links

Discussion