# Hermoso: edit_image: Edit an image · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/create/edit_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/) / edit_image

# `edit_image`

Edit an image

Area: Static-ad edits + variants · [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

EDIT an existing image in place with a plain-language instruction and keep everything else: 'make the headline bigger', 'add our logo bottom right', 'swap the background for a kitchen', 'remove the person on the left', 'erase all the text'. Pass `image` (URL, Library item, upload_file URL or local path) and `instruction`. The same edit the web Studio's Edit runs: composition, aspect ratio, people and every untouched line of text stay as they are; the saved brand's real name and website are pinned so an added line never invents one, and the brand's real logo FILE is put on when the instruction asks for the logo (never redrawn by the model): an ask only about the logo ('the logo is wrong', 'make the logo bigger'; or logo:true, any language) runs no image model. Set removal:true when the edit STRIPS text, branding or an object, so nothing branded is put back. When the saved brand has a product photo and the ad shows that product, the photo rides with the edit and the product's label is read and checked against it: re-printed from the photo only when it came out wrong (the check alone is charged when it is right; one small extra charge finds the product first). fixLabel:false turns that off. For a precise region, pass `mask` (see generate_image). One image edit's credits; returns the new image URL. For a new image from a prompt use generate_image; to rebuild a competitor's ad for your brand use clone_static.

## Parameters

Parameter Type Description

`image` required `string` the image to edit: URL, Library item URL, upload_file URL or local path

`instruction` required `string` the change to make, in plain words (pass the user’s own words for a removal or plain photo edit)

`removal` `boolean` true when the edit REMOVES text, branding, a logo, a watermark, a person or an object, so the brand name and logo are not re-added

`logo` `boolean`

`mask` `string` optional mask image (URL or local path) marking the region to change: transparent = change, or white = change on an opaque mask

`markup` `string` MARKUP-GUIDED EDIT: drawn annotations (circles, arrows, scribbles) showing what to change, as a URL or local path: a transparent PNG of just the marks, or a copy of the same image with the marks drawn on it. Say the change in `instruction` ("make the circled vase blue"); the marks are not in the result. Runs on gpt-image-2.6 (or the editor named in `model`). Never with a mask

`model` `string` the editor, only when the user names one: gpt-image-2.6, gpt-image-2.6-flare (its own faster editor) or gpt-image-2.5. Omit for the default

`complexity` `"low" | "medium" | "high"` gpt-image-2.6 editors, when the user asks; never inferred from how small the change is: planning depth (default high). Ignored on the default editor

`dryRun` `boolean` true = return what this edit usually costs in credits and render nothing

`fixLabel` `boolean` false = leave the product label exactly as rendered: no product lookup, no label check, no re-print (default on when the ad shows the brand’s saved product)

`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/edit_image`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"edit_image","arguments":{"image":"<string>","instruction":"<string>"}}}`
**CLI**

`hermoso call edit_image --json '{"image":"<string>","instruction":"<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

- [upload_file](https://hermoso.ai/docs/reference/publish/upload_file/) Upload a local file -> durable public URL
- [generate_image](https://hermoso.ai/docs/reference/create/generate_image/) Generate ad image
- [clone_static](https://hermoso.ai/docs/reference/research/clone_static/) Clone a static ad
- [headline_variants](https://hermoso.ai/docs/reference/create/headline_variants/) Headline variants of a static ad
- [resize_ad](https://hermoso.ai/docs/reference/create/resize_ad/) Resize a static ad for other placements
- [localize_ad](https://hermoso.ai/docs/reference/create/localize_ad/) Localize a static ad into other languages

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