Generate adaptive composite
adaptive_compositeComposite an object image onto a background with AI-generated lighting, shadows, and harmonization. Produces Adobe output URLs.
Instructions
Generate adaptive composite. 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 | Array of seed image IDs. These reference images help ensure consistent image generation across multiple API calls. If specified alongside numVariations, the number of seeds must equal numVariations. Defaults: 1 variation → [333], 2 → [333, 222], 3 → [333, 222, 111]. | |
| object | Yes | Object image and optional mask. | |
| output | No | Output format specification. | |
| confirm | No | Must be true to spend Firefly Services credits for the operation the user requested. | |
| download | No | Download completed media to FIREFLY_OUTPUT_DIR, default false. Requires wait=true. | |
| background | Yes | Background image and fill area mask. | |
| harmonization | No | Controls how much the object's colors and lighting are adjusted to match the background scene. | |
| numVariations | No | Number of output variations to generate. | |
| shadowIntensity | No | Controls shadow intensity in the composited result. Lower values reduce shadow. | |
| preserveBackground | No | When true, preserves original background details within the masked area during compositing. |