regenerate_image
Edit/restyle an existing image; stores a NEW file and returns image_url (+ markdown preview). Does NOT patch site HTML. Billed — REQUIRES confirmSpend=true. PAGE/SITE: forPage=true + sitePageId; propose edit+quality+charge first. STANDALONE: show the new image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| forPage | No | true when this edit is for a site/page you are building. | |
| quality | No | Quality tier: standard (default), high, or premium. | |
| sitePageId | No | Site page id. Required when forPage=true. | |
| confirmSpend | No | Must be true only after the human explicitly accepted THIS edit in a SEPARATE message. | |
| edit_instruction | Yes | What to change; keep the rest of the image. | |
| source_image_url | Yes | Current absolute URL of the image to edit. |