# Hermoso: layerize_image: Split an image · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/create/layerize_image/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Creative generation](https://hermoso.ai/docs/reference/create/) / layerize_image

# `layerize_image`

Split an image into editable layers

Area: post-production & analysis · [Creative generation](https://hermoso.ai/docs/reference/create/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

Parameter Type Description

`image` required `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](https://hermoso.ai/docs/credits/).

## Related tools

- [edit_image](https://hermoso.ai/docs/reference/create/edit_image/) Edit an image
- [repurpose_image](https://hermoso.ai/docs/reference/create/repurpose_image/) Repurpose a static ad into variants × formats
- [split_image](https://hermoso.ai/docs/reference/create/split_image/) Cut a picture into tiles
- [repurpose_video](https://hermoso.ai/docs/reference/create/repurpose_video/) Repurpose a video for every placement
- [product_move](https://hermoso.ai/docs/reference/create/product_move/) Six-second product move
- [reframe_video](https://hermoso.ai/docs/reference/create/reframe_video/) Reframe video
- [add_presenter](https://hermoso.ai/docs/reference/create/add_presenter/) Add a presenter to any video
- [check_video](https://hermoso.ai/docs/reference/create/check_video/) Check a video
- [insert_scene](https://hermoso.ai/docs/reference/create/insert_scene/) Insert a new scene into a video
- [score_ad](https://hermoso.ai/docs/reference/create/score_ad/) Score ad

[All 102 Creative generation tools](https://hermoso.ai/docs/reference/create/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
