Regenerate Flexible Creative Background
regenerate_flexible_backgroundRegenerate ONLY the background scene of a flexible creative, keeping the editable text/logo layers untouched. Returns the new background image URL so the editor swaps just the background layer.
USE FOR: "regenerate the background", "try a different scene", "new background, same text".
Accepts an optional image_source (the current background) to guide a same-style regeneration; omit it for a fresh scene.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Company domain for brand DNA (e.g. 'metadata.io'). No protocol. | |
| platform | No | Target platform (sets the default aspect ratio). Default: 'linkedin'. | |
| aspect_ratio | No | Pass the creative's own canvas.aspect_ratio so the new background keeps its shape. Omitting it on a non-default canvas reshapes the creative and the existing layers no longer fit. | |
| image_source | No | Optional URL of the current background to guide a same-style regeneration (image-to-image). Omit for a fresh scene. | |
| instructions | Yes | Direction for the new background scene. | |
| background_hex | No | Optional 6-digit hex to pin the dominant background color (e.g. '#0A2540'). |