Restyle an image
restyleEdits an existing image with AI. COSTS CREDITS (generate_* pricing, like generate_image). Always creates a NEW generation; the original is untouched. Modes: plain-text edit (just instructions); one-click product placement (action bring + reference_id — places the reference's product into the scene at true scale, relit); recolor/remove/add items (use get_detections for item names); merge two images (merge_bias 0=reference dominates, 100=base dominates); art-style transfer (action style + style_intensity 0-100). reference_id can be an asset OR a generation you own.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Item names to target (from get_detections). Required for remove. | |
| action | No | Default bring. | |
| merge_bias | No | merge only: 0 reference dominates - 100 base dominates. Default 50. | |
| project_id | Yes | Project for the result. | |
| resolution | No | ||
| blend_level | No | add only: 0 raw composite - 100 fully unified. Default 50. | |
| merge_scope | No | merge only. Default scene. | |
| aspect_ratio | No | ||
| instructions | No | Free-text edit instructions. | |
| reference_id | No | Asset or generation to take the product/colors/style/content from. | |
| generation_id | Yes | The base photo to edit. | |
| style_intensity | No | style only: 0 subtle tint - 100 full reimagine. Default 75. |