Grok Imagine (Kie.ai) icon

Grok Imagine (Kie.ai)

Generate images and videos using Grok Imagine via Kie.ai API

Text-to-Video

AI-generated

Summary

Generate a video from a text prompt using Grok Imagine API with customizable parameters like aspect ratio, mode, duration, resolution, and seed.

Inputs

  • Prompt (required) — Text description guiding the video generation.
  • Video Aspect Ratio — Select aspect ratio of the generated video (options: 16:9, 9:16, 1:1, 3:2, 2:3). Defaults to 16:9.
  • Mode — Select the generation mode affecting style or behavior (options: normal, fun, spicy). Defaults to normal.
  • Duration (Seconds) — Duration of the generated video in seconds; range is 6 to 30. Defaults to 6.
  • Resolution — Output video resolution (480p or 720p). Defaults to 480p.
  • Seed — Numeric seed for reproducible generation (0 means random). Defaults to 0.
  • Reply URL — Optional webhook URL called upon task completion.
  • Reply Ref — Optional custom reference string returned in webhook callback.
  • Wait for Completion — Whether to wait synchronously for task completion, polling every 3 seconds up to 5 minutes (default true).

Output shape

a single JSON object per input item representing the job creation response or, if waiting for completion, the final result of the video generation task

If 'Wait for Completion' is true, the node polls the task status and returns the completed task data including video URLs; otherwise, it returns the initial task creation response with a task ID.

Examples

Example 1: Generate a 10-second 720p video with a fun mode and 9:16 aspect ratio from a descriptive prompt, waiting synchronously for completion.

Set Prompt with your description, set Video Aspect Ratio to 9:16, Mode to fun, Duration to 10, Resolution to 720p, Wait for Completion to true.

Links

Discussion