layerize_image
Split an image into editable layers
Description
Split ONE finished static ad (or any picture) into a BASE image plus separately editable transparent PNG LAYERS: each text block, the product, the logo, a person, badges, buttons and shapes come out on their own layer at their original position (each layer's box in base-image pixels), and the base keeps the background with the gaps filled. The words of every ordinary text layer are READ OUT (the text, each line's box, an approximate font, colour, bold, italic), so a designer or an agent can change the copy, translate it or rebuild the ad in a design tool. `layers` = how many layers at most (default 6, up to 20; the base is extra and every picture returned is billed). `prompt` names what to lift (e.g. 'only the headline and the product'). dryRun:true = the price, nothing made. To change the ad itself rather than take it apart, use edit_image.
Parameters
| Parameter | Type | Description |
|---|---|---|
imagerequired | string | the picture: an https / upload_file URL, a Library id (L0…), or a local path on the CLI; 512x512 to 6000x6000 pixels |
layers | integer | the most layers to return besides the base (default 6) |
prompt | string | optional: what to separate, in words |
size | "1K" | "1.5K" | "2K" | output size tier (default '1.5K'; '2K' costs more per picture) |
text | boolean | false = skip reading the words out (default on) |
dryRun | boolean | price only: nothing made, nothing charged |
get_cost | boolean | true: return the price only; nothing runs or bills |
expected_credits | number | the get_cost price; refused unbilled if the live price differs |
idempotency_key | string | chosen once, resent unchanged on retries: the same key never buys twice |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/layerize_image.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"layerize_image","arguments":{"image":"<string>"}}}
CLI
hermoso call layerize_image --json '{"image":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
edit_imageEdit an imagerepurpose_imageRepurpose a static ad into variants × formatssplit_imageCut a picture into tilesrepurpose_videoRepurpose a video for every placementproduct_moveSix-second product movereframe_videoReframe videoadd_presenterAdd a presenter to any videocheck_videoCheck a videoinsert_sceneInsert a new scene into a videoscore_adScore ad