Edit image
edit_imageChange any picture by instruction while keeping the rest: replace the background, remove or add objects, change clothes, colours, light or season, restyle it, fix details, or put text on it. Or upscale it 2x or 4x with more detail. Spends the account's PrismPoster credits at the same price as on prismposter.com (quote_job prices it first, free). When the person must decide something first (a price above their ask-first amount, consent for real people in pictures, the right to use a clip), it returns approval_required and nothing runs until they answer in PrismPoster's card or at the link. Everything made is saved to their PrismPoster library. Requests involving anyone under 18 or depicting public figures or office holders are refused before any charge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | No | https URL of the picture to change. Required unless approval_id is given. | |
| operation | No | edit: change the picture as the instruction says, keeping the rest. upscale: enlarge it with more detail. | edit |
| resolution | No | For edit: output size. Defaults to the source picture's size. | |
| approval_id | No | Only after an approval_required answer: the approval_id it returned, once the person has answered. The job then runs exactly as they approved it and the other arguments are ignored. | |
| instruction | No | For edit: what to change, e.g. "replace the sky with a sunset" or "remove the logo on the cup". Required for edit. | |
| upscale_factor | No | For upscale: 2 or 4 times larger. | |
| idempotency_key | No | Optional. A unique key for this job (8-128 letters, digits, . _ : -). Repeating a call with the same key returns the first call's job instead of starting and charging a second one, so set it whenever a retry is possible. |