Actions7
Edit Image With Prompt
AI-generatedSummary
Generates multiple edited images from a source image and text prompt using Picsart's AI models.
Inputs
- Image Source (required) — Choose Binary Image (to upload a file) or Image URL (to use a hosted URL).
- Input Binary Field — The name of the input field containing the source image binary. Required when using Binary Image.
- Image URL — Source image URL (1–2083 characters). Required when using Image URL.
- Prompt (required) — Describe how to edit or transform the image.
- Count — Number of edited images to generate (1–10, default 2).
- Format — Output image format: JPG, PNG, or WEBP (default JPG).
- Mode — Deprecated query parameter for sync vs async. Prefer the HTTP Prefer header when possible.
- Model — AI model for image-to-image editing. Defaults to 'urn:air:sdxl:model:fluxai:flux_kontext_max-image-to-image@1'.
Output shape
A list of items, one for each generated image, each containing binary data and metadata.
If generating multiple images (Count > 1), the node outputs one item per generated image. Each item includes the paired original input index. The binary field contains the edited image file (e.g., 'edited-image-1.jpg').
Examples
Example 1: Edit a product photo to show it in a different environment.
Image Source: Image URL, Prompt: 'Show the product on a wooden table', Count: 3, Format: PNG
Example 2: Transform a user's selfie into a cartoon style.
Image Source: Binary Image, Prompt: 'Turn into a cartoon style illustration', Count: 2, Model: 'urn:air:fluxai:model:fluxai:flux-2-flex-image-to-image@1'