Edit Image
seedream_editEdit an existing image using a text instruction to add, remove, replace, or restyle elements, change backgrounds, colors, lighting, or apply artistic styles while preserving key details.
Instructions
Edit an existing image based on text instructions using SeeDream 4.5.
⚠️ CLAUDE.AI USERS: This tool WILL TIMEOUT on Claude.ai (takes 20-40 seconds). Use "seedream_submit" instead with mode="image" for Claude.ai compatibility.
Use this tool to modify, enhance, or transform an existing image. Supports:
Addition: Add elements (accessories, objects, background elements)
Deletion: Remove unwanted elements
Replacement: Swap one element for another
Modification: Change colors, styles, lighting, expressions
Style transfer: Apply artistic styles to photos
Args:
prompt (string, required): Edit instruction describing the changes
image (string, required): Source image URL or local file path
size (string): Output size (default: '2K')
strength (number): Reference strength 0-1 (default: 0.7)
watermark (boolean): Add watermark (default: false)
download (boolean): Save locally (default: true)
download_dir (string): Local save directory
Returns: Edited image URL, local path if downloaded, and performance timing.
Edit Instruction Best Practices (per official docs):
Use concise, unambiguous instructions
Be specific: "the person's shirt" not "it"
Specify what should remain unchanged: "keeping the pose unchanged"
For targeted edits: draw arrows/boxes on image and reference them Example: "Insert a TV where the red area is marked"
Supported Operations:
Addition: "Add matching silver earrings and a necklace to the girl"
Deletion: "Remove the girl's hat"
Replacement: "Replace the largest bread man with a croissant man"
Modification: "Turn the robots into transparent crystal, colored red, yellow and green"
Examples:
"Add sunglasses to the person, keeping everything else unchanged"
"Change the background to a beach sunset"
"Apply Van Gogh oil painting style to this photo"
"Remove the text from the image"
"Dress the tallest panda in pink Peking Opera costume, keeping its pose unchanged"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Output image size | 2K |
| image | Yes | Source image URL or local file path to edit | |
| prompt | Yes | Edit instruction describing what to change. Examples: 'Add sunglasses', 'Change background to beach', 'Make it look like oil painting' | |
| download | No | Whether to download generated images to local directory | |
| strength | No | How much to preserve the original image (0=ignore original, 1=strongly preserve). Lower values allow more creative changes. | |
| watermark | No | Whether to add 'AI generated' watermark | |
| download_dir | No | Local directory to save images (defaults to ./generated_images) | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for structured data | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usage | No | API usage metrics | |
| images | Yes | Array of generated images | |
| prompt | Yes | The prompt used for generation | |
| timing | No | Performance timing metrics | |
| success | Yes | Whether the generation was successful | |
| strength | Yes | The strength value used for editing | |
| source_image | Yes | The source image that was edited |