Actions12
Image → Generate an Image
AI-generatedSummary
Generates an image from a text prompt using specified AI models (Flux, Z-Image-Turbo) with configurable aspect ratios, resolutions, steps, seeds, and optional negative prompts.
Inputs
- prompt (required) — A text description of the desired image.
- model (required) — The model to use for image generation (Flux.1 Schnell, FLUX.2 Klein 4B BF16, or Z-Image-Turbo INT8).
- ratio (required) — Aspect ratio of the generated image (square, landscape, or portrait).
- negativePrompt — Elements to avoid in the generated image (visible for Flux1schnell and ZImageTurbo_INT8 models).
- seed — Random seed for generation. Use -1 for random seed.
- waitTimeout — Maximum time to wait for completion in seconds (default 60, range 30-240).
Output shape
a single record
The input item is returned with a pairedItem reference; the actual generated image is not returned by this operation (it is a long-running job processed via a webhook).
Examples
Example 1: Generate a landscape image using Flux.1 Schnell
Model: Flux.1 Schnell, Ratio: landscape, Seed: -1 (random)
Example 2: Create a square image with specific resolution using FLUX.2 Klein 4B
Model: FLUX.2 Klein 4B BF16, Ratio: square, Resolution: 1024x1024, Negative Prompt: blur, noise