Generate images with Image5
generate_image5Generate images from text prompts with Image 5, including reference-based natural-language edits. Returns Adobe output URLs; set wait=false for async jobs.
Instructions
Generate images with Image5. Image 5 supports natural-language edits through referenceBlobs. Consumes Firefly Services credits. Returns Adobe output URLs. Set wait=false to return an async job.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Compatibility alias for numVariations. Do not supply both. | |
| wait | No | Wait for completion, default true. Set false to return the job immediately. | |
| seeds | No | The seed value to vary the image generation. Only one seed per variation is allowed. If specified alongside with numVariations, the number of seeds must be equal to numVariations. | |
| prompt | Yes | The prompt used to generate the image. The longer the prompt, the better. | |
| confirm | No | Must be true to spend Firefly Services credits for the operation the user requested. | |
| modelId | No | The specific model to use for image generation. Available options: 'firefly_image' for Firefly Image model. | |
| download | No | Download completed media to FIREFLY_OUTPUT_DIR, default false. Requires wait=true. | |
| aspectRatio | No | The aspect ratio of the requested generations. This controls the size of the generated image. When referenceBlobs is included in the request, this property should be omitted or set to auto. | |
| numVariations | No | The number of image variations to generate. Greater than 1 is not supported. Only one image per variation is allowed. For multiple variations, send separate requests. | |
| referenceBlobs | No | List of reference blobs that will be used as additional input for the generation process. Only one reference image is supported. When this array is not empty, aspectRatio must be omitted or set to auto. [Pre-signed URLs can be used from supported domains](https://developer.adobe.com/firefly-services/docs/firefly-api/getting-started/usage-notes/#image-api-usage). | |
| resolutionLevel | No | The resolution level. | 2.4MP |
| modelSpecificPayload | No | Additional model-specific parameters for controlling the generation process. |