Edit part of a product ad image with a mask: ChatGPT Image 2.5
To change a product ad's background without touching the product, send the photo and a mask_url to ChatGPT Image 2.5 on Sume. Fields and limits.

To edit one part of a product ad image, send the photo in input_references and a public HTTPS mask_url to ChatGPT Image 2.5 on Sume's POST /v1/images, and describe the change in the prompt. Sume's docs list openai/gpt-image-2.5 and openai/gpt-image-2.5-sunburst with up to 16 image references and an optional mask. A batch tool such as Higgsfield Ads Studio, per its 2026-09-30 changelog entry, works from a website link; a mask edit is the other direction, fixing one ad you already like.
Facts come from Sume's Image API docs, read 2026-10-02.
What does the request look like?
The body below uses quality: high, which is also the default when quality is omitted. Mode async returns a job you poll, because high quality is one of the settings the docs say can run past the 30-second blocking wait.
{
"model": "openai/gpt-image-2.5",
"prompt": "Replace the background with a warm kitchen counter. Keep the product unchanged.",
"input_references": [
{"type": "image_url",
"image_url": {"url": "https://example.com/product.jpg"}}
],
"mask_url": "https://example.com/background-mask.png",
"quality": "high",
"mode": "async"
}What limits apply?
The docs give image_size rules for custom pixels: both edges multiples of 16, a maximum edge of 3840, aspect ratio at most 3:1, and 655,360 to 8,294,400 total pixels. Reference and mask URLs must be public HTTPS; localhost and private-network URLs are rejected before submission.
| Item | Limit |
|---|---|
| Image references | Up to 16 |
mask_url | Optional, public HTTPS |
Custom image_size edges | Multiples of 16, maximum 3840 |
| Total pixels | 655,360 to 8,294,400 |
How is it billed?
The docs give Fal token rates for this model family and say the estimate depends on quality and size, with auto quality reserving max. Set quality explicitly to keep the reservation predictable, and read the cost on the job result.
What can go wrong?
A mask that does not line up with the photo changes the wrong region. Check the first result before running a batch. Ad variations from one image covers the batch step.
Make the mask in an image editor, white where the model may change and black where it must not, and save it at the same pixel size as the photo. Test the mask against the photo before sending, and check the edge of the product in the result. Reuse the same mask for every variation of that photo.
Sources
Related posts
More in Media tools
- Edit Video in Sume: which models appear and why H3 Max does not
Sume's Edit Video mode lists Auto, Kling 3.0, Wan 3.0 and MiniMax H3 and needs a reference video. H3 Max and Grok Imagine are missing; the API differs.
- ElevenLabs sound effects API: 0.5-30 s, loop, and Sume's route
ElevenLabs POST /v1/sound-generation takes duration_seconds 0.5-30 and a loop flag. Sume lists no sound-effect endpoint; here is the music route and its limits.
- English to Korean captions: style follows the text, not language
Localising a video to Korean? Sume's caption style follows the wording, and a Latin style on Hangul text is a 400. Pick styles per locale before a batch.
- Extract audio from an AI avatar video as a WAV with one API call
Sume audio detach pulls the track of one hosted video into a WAV or MP3 for $0.01. The request, the 16 kHz mono option, the caps and the no-audio error.
Written by Sume