recraft_texture_swap
Replace a specific image region with AI-generated content that matches the area's aspect ratio, then composite it onto the original. Ideal for updating Spine atlas textures and spritesheets.
Instructions
Replace a specific region of an image with AI-generated content. Generates new content matching the region aspect ratio, resizes it, and composites it onto the original. Perfect for Spine atlas texture swaps and spritesheet updates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model: recraftv4_1, recraftv4_1_vector, recraftv4_1_pro, recraftv4_1_pro_vector, recraftv4_1_utility, recraftv4_1_utility_vector, recraftv4_1_utility_pro, recraftv4_1_utility_pro_vector, recraftv4, recraftv4_vector, recraftv4_pro, recraftv4_pro_vector, recraftv4_styles, recraftv4_styles_vector, recraftv4_styles_pro, recraftv4_styles_pro_vector, recraftv3, recraftv3_vector, recraftv2, recraftv2_vector | recraftv4 |
| style | No | Style name (V3/V2 only) | |
| prompt | Yes | Description of replacement content | |
| region | Yes | Rectangle region to replace {x, y, width, height} | |
| feather | No | Edge feather in pixels for smooth blending (0=hard edge, default: 0) | |
| style_id | No | Custom style UUID | |
| image_path | Yes | Local path to source image (PNG/JPG/WEBP) | |
| output_path | Yes | Where to save the result | |
| negative_prompt | No | What to exclude |