hermosodocs

layerize_image

Split an image into editable layers

Area: post-production & analysis · Creative generation. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
imagerequiredstringthe picture: an https / upload_file URL, a Library id (L0…), or a local path on the CLI; 512x512 to 6000x6000 pixels
layersintegerthe most layers to return besides the base (default 6)
promptstringoptional: what to separate, in words
size"1K" | "1.5K" | "2K"output size tier (default '1.5K'; '2K' costs more per picture)
textbooleanfalse = skip reading the words out (default on)
dryRunbooleanprice only: nothing made, nothing charged
get_costbooleantrue: return the price only; nothing runs or bills
expected_creditsnumberthe get_cost price; refused unbilled if the live price differs
idempotency_keystringchosen 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.

All 102 Creative generation tools · tools.json