Kie.ai icon

Kie.ai

Generate images, videos, and music using Kie.ai API

Actions9

Image → Text to Image

AI-generated

Summary

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

Inputs

  • model (required) — The AI model to use for image generation (Flux-2, Midjourney, Grok Imagine, or Nano Banana).
  • prompt (required) — The text prompt that describes the desired image.
  • additionalFields — Optional configuration for the image generation task (negative prompt, dimensions, strength, seed, aspect ratio, quality, output format, webhook URL).

Output shape

object

Contains the raw API response from Kie.ai, typically including a task ID and generation metadata.

Examples

Example 1: Create a basic image with the default Flux-2 model.

Set model to Flux-2, provide a prompt, leave additional fields at defaults.

Example 2: Generate a 16:9 PNG with custom dimensions and seed.

Set model to Midjourney, prompt set, additionalFields.width=1920, height=1080, aspectRatio=16:9, outputFormat=PNG, seed=42.

Links

Discussion