Grok Imagine (Kie.ai) icon

Grok Imagine (Kie.ai)

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

Text-to-Image

AI-generated

Summary

Generate an image based on a text prompt using the Grok Imagine API via Kie.ai, specifying the desired aspect ratio and optional parameters to customize output and task handling.

Inputs

  • Prompt (required) — Text description that guides the image generation.
  • Aspect Ratio (required) — Select the aspect ratio for the generated image (e.g., 1:1, 16:9).
  • Negative Prompt — Specify elements to avoid in the generated image.
  • Seed — Seed number for reproducibility (0 means random).
  • Reply URL — Webhook URL to be called when the task completes.
  • Reply Ref — Custom reference string returned in the webhook callback.
  • Wait for Completion — Choose whether to wait synchronously for task completion (polls every 3 seconds, with a 5-minute timeout).

Output shape

a single record with the Grok Imagine API response data

The response contains task details and result URLs. If 'Wait for Completion' is true, the node waits for task completion and returns the final task result. Otherwise, it returns the initial task creation response.

Examples

Example 1: Generate a square image of a sunset landscape avoiding water reflections

Prompt set to 'sunset landscape with mountains', Aspect Ratio set to 1:1, Negative Prompt set to 'water reflections', Wait for Completion enabled.

Links

Discussion