Grok Imagine (Kie.ai) icon

Grok Imagine (Kie.ai)

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

Image-to-Video

AI-generated

Summary

Generate a video based on one or multiple provided images and a text prompt, using the Grok Imagine (Kie.ai) API.

Inputs

  • Prompt (required) — Text describing the video content to generate.
  • Image URL — Primary image URL to use as reference; optional if multiple images are provided.
  • Additional Image URLs — Up to 7 additional image URLs for multi-image input to influence the video generation.
  • Video Aspect Ratio — Aspect ratio of the generated video. Options: 16:9, 9:16, 1:1, 3:2, 2:3.
  • Mode — Generation mode affecting the video style or effect. Options are Normal, Fun, and Spicy.
  • Duration (Seconds) — Length of the generated video, between 6 and 30 seconds.
  • Resolution — Resolution of the output video; choose from 480p or 720p.
  • Seed — Seed for the random generator to allow reproducible results; 0 for random seed.
  • Reply URL — Optional webhook URL to be called when the video generation task completes.
  • Reply Ref — Custom reference string passed back in the webhook callback for tracking.
  • Wait for Completion — Whether to pause execution and poll for the task completion before continuing (polls every 3 seconds, with a 5-minute timeout).

Output shape

A JSON object representing the creation response or completed task details from the Kie.ai API, including generated video URLs on success.

If 'Wait for Completion' is true, the node polls the API until the video generation completes or times out. The response includes parsed nested JSON fields with accessible video URLs in the 'videoUrls' property. If false, the immediate creation response is returned, with a task ID that can be queried later.

Examples

Example 1: Generate a short 10-second video at 720p with a custom prompt and single image reference, waiting for the result.

Set the required 'Prompt', provide 'Image URL', choose '720p' for resolution, set 'Duration' to 10, and leave 'Wait for Completion' enabled.

Links

Discussion