Midjourney (Kie.ai) icon

Midjourney (Kie.ai)

Generate images using Midjourney and Niji 7 via Kie.ai API

Text-to-Image

AI-generated

Summary

Generate an image from a text prompt using a selected Midjourney model via the Kie.ai API.

Inputs

  • Model — Choose between 'Midjourney Standard' or 'Midjourney Niji 7' model for image generation.
  • Prompt (required) — Text description of the image to generate.
  • Aspect Ratio — Select the desired aspect ratio of the generated image.
  • Negative Prompt — Specify elements to avoid in the generated image.
  • Reply URL — Webhook URL to notify when the image generation task completes.
  • Reply Ref — Custom reference string to be returned in the webhook callback.
  • Wait for Completion — Whether to wait and poll for the task completion (polls every 3 seconds up to 5 minutes).

Output shape

a JSON array with one item per input; each item contains either the image generation task response or the final completed task data including generated image URLs if 'Wait for Completion' is true.

If 'Wait for Completion' is enabled, the node polls the task status every 3 seconds for up to 5 minutes and returns the final result on success or failure. If disabled, it returns immediately with the initial task creation response containing the task ID. Errors produce error objects if 'Continue on Fail' is enabled, else throw exceptions.

Links

Discussion