Kie.ai icon

Kie.ai

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

Actions9

Image → Image to Image

AI-generated

Summary

Generate an image using a selected model and optional source image.

Inputs

  • model (required) — The image generation model to use.
  • prompt (required) — Prompt text describing the desired image.
  • imageUrl (required) — URL of the source image for image‑to‑image or upscale operations.
  • negativePrompt — Optional negative prompt to influence generation.
  • width — Image width in pixels.
  • height — Image height in pixels.
  • strength — Strength of variation for image‑to‑image (0 to 1).
  • seed — Random seed for reproducibility; -1 for random.
  • aspectRatio — Aspect ratio preset for the output image.
  • quality — Quality setting (standard or HD).
  • outputFormat — Desired output format (jpg, png, webp).
  • webhookUrl — Webhook URL for async notification.

Output shape

a list of task objects

Each element contains the JSON response from the Kie.ai job creation API, including task ID and status. No binary payload is returned.

Examples

Example 1: Create an image from a prompt using Flux‑2 model

model: flux-2/pro-text-to-image; prompt: 'A futuristic cityscape at sunset'; imageUrl: ''; additionalFields: { negativePrompt: '', width: 1024, height: 1024, strength: 0.5, seed: -1, aspectRatio: '1:1', quality: 'standard', outputFormat: 'webp' }

Links

Discussion