4o Image (Kie.ai) icon

4o Image (Kie.ai)

Generate images using GPT-4o Image via Kie.ai API

Generate

AI-generated

Summary

Generate one or more images based on a text prompt and optional input image URL using the Kie.ai GPT-4o Image API, optionally waiting for generation completion or receiving a webhook callback.

Inputs

  • Prompt (required) — Text prompt describing the desired image content.
  • Image URL — Optional URL of an input image for editing or style reference.
  • Number of Images — Number of images to generate (1 to 4).
  • Size — Resolution of the generated images; options include 1024x1024, 1792x1024, or 1024x1792.
  • Quality — Image quality setting, either Standard or HD.
  • Style — Image style to apply; choices are Vivid or Natural.
  • Seed — Seed number for reproducibility; 0 for random seed.
  • Reply URL — Webhook URL to receive a callback when the image generation task completes.
  • Reply Ref — Custom reference string included in the webhook callback.
  • Wait for Completion — Boolean flag to wait and poll for the image generation task to complete (default true), with polling every 3 seconds up to 5 minutes.

Output shape

a list of JSON objects representing the generation response or final completed image data for each input item

If 'Wait for Completion' is true, the output contains the final image generation result after polling; otherwise, it contains the initial task creation response. Errors are either thrown or returned in the output depending on node error handling settings.

Examples

Example 1: Generate a single 4o image with default size and style

Set prompt with desired description, leave optional fields blank or default, and enable wait for completion to receive the image result directly.

Example 2: Request 3 images in HD quality with a webhook callback

Set prompt, set Number of Images to 3, Quality to HD, provide a Reply URL and optionally a Reply Ref, and disable wait for completion to handle callback asynchronously.

Links

Discussion