Generate/Transform Image
AI-generatedSummary
Generate a new image from a text prompt or transform a provided image using Kie.ai Qwen models.
Inputs
- prompt (required) — Text description for image generation or transformation
- imageUrl — Optional: Provide image URL to transform it. Leave empty to generate from scratch.
- strength — Remix intensity when transforming an image (0-1). Only used when Image URL is provided.
- imageSize — Output image dimensions
- negativePrompt — What to avoid in the generated image (max 500 characters)
- advancedOptions.numInferenceSteps — Number of iterations for generation (2-250). More steps = better quality but slower.
- advancedOptions.guidanceScale — How closely to follow the prompt (0-20). Higher = stricter adherence.
- advancedOptions.seed — Random seed for reproducible results. Use -1 for random.
- advancedOptions.acceleration — Speed optimization level
- advancedOptions.outputFormat — Image output format
- advancedOptions.enableSafetyChecker — Whether to filter unsafe content
- advancedOptions.callBackUrl — Optional webhook URL to receive completion notification
Output shape
execution metadata array
POSTs a job creation request to Kie.ai API (/api/v1/jobs/createTask). When imageUrl is omitted, uses model qwen/text-to-image; when provided, uses qwen/image-to-image with strength applied. Returns execution meta data for each workflow item.
Examples
Example 1: Generate an image from scratch
Provide prompt, leave imageUrl empty, adjust optional settings as needed.
Example 2: Transform an existing image
Provide prompt and image URL, set strength (0-1) to control transformation intensity.