Grok Imagine (Kie.ai) icon

Grok Imagine (Kie.ai)

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

Image-to-Image

AI-generated

Summary

Generate an image based on an input image and a text prompt by sending these to the Grok Imagine API for image-to-image transformation.

Inputs

  • Prompt (required) — A text prompt guiding the style and content of the generated image.
  • Image URL — Primary image URL used as the base input for the image-to-image generation.
  • Additional Image URLs — Up to 4 additional image URLs to supplement the primary image input, with a maximum of 5 images total.
  • Aspect Ratio (required) — Aspect ratio to use for the generated image. Choices include 1:1, 16:9, 9:16, 4:3, and 3:4.
  • Negative Prompt — Elements to explicitly avoid in the generated image.
  • Seed — Seed number for reproducibility; setting to 0 uses a random seed.
  • Reply URL — A webhook URL to be called when the generation task completes.
  • Reply Ref — A custom reference string returned in the webhook callback.
  • Wait for Completion — If true, the node waits and polls for the task to complete before outputting the result (polls every 3 seconds with a 5-minute timeout).

Output shape

a JSON object containing the generation task response. If 'Wait for Completion' is enabled, outputs the completed task details including generated image URLs; otherwise outputs the immediate task creation response.

Supports up to 5 images total combining 'Image URL' and 'Additional Image URLs' as input. The output includes parsed result URLs for easy access. Errors are handled and can optionally continue on failure depending on node settings.

Examples

Example 1: Using a single image and prompt

Set Prompt, Image URL, Aspect Ratio, optionally Seed and Negative Prompt, enable Wait for Completion to get final image.

Links

Discussion