repurpose_image
Repurpose a static ad into variants × formats
Description
ONE finished static ad in, VARIANTS × FORMATS out, in one job, as a named file list (<name>_<variant>_<format>_<WxH>.png) with a manifest. The ad's text is read ONCE as the source of truth; each variant's change is made ONCE on the master; every format is derived from that master; every output is text-checked line by line and any line it lost is named (never re-rendered). Variants: {headline}, {language}, {swap:[{from,to}]} (exact words: a price, an offer, a CTA) or {edit} (any change in words), each with an optional {name}; the original is always included. Formats: default 1:1, 4:5, 9:16, 16:9, or 'everywhere', any canvas or a platform word (snapped to the nearest canvas an image model makes). At most 24 renders. dryRun:true = the exact price, which is what it charges. One resize alone is resize_ad.
Parameters
| Parameter | Type | Description |
|---|---|---|
imagerequired | string | the ad: an https / upload_file URL, a Library id (L0…), or a local path on the CLI |
formats | string[] | default ['1:1','4:5','9:16','16:9'] |
variants | string | object[] | the versions besides the original; a bare string is an edit in words |
name | string | the asset name the files are named after |
fixLabel | boolean | false = no product-label check (default on when the ad shows the brand's saved product) |
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/repurpose_image.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"repurpose_image","arguments":{"image":"<string>"}}}
CLI
hermoso call repurpose_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
resize_adResize a static ad for other placementsrepurpose_videoRepurpose a video for every placementlayerize_imageSplit an image into editable layersreframe_videoReframe videosplit_imageCut a picture into tilescheck_videoCheck a videoproduct_moveSix-second product movescore_adScore adadd_presenterAdd a presenter to any videomake_insertMake an insert clip