Transparent background AI image on Sume: GPT Image 2.5 field
Only the GPT Image 2.5 rows take background on Sume's image route. OpenAI says transparency needs png or webp output. A request and an alpha check in Python.

Send background: "transparent" to openai/gpt-image-2.5 or its Sunburst twin, and ask for png or webp output. Sume's docs list the background field, with values auto, transparent and opaque, as supported by the GPT Image 2.5 rows. OpenAI's guide (read 2026-10-06) says transparency works through the background setting with a png or webp output format.
Other rows will not take it. A model that does not list background returns 400 unsupported_parameter.
Which format carries the transparency
| Setting | Accepted values | Notes |
|---|---|---|
background on Sume | auto, transparent, opaque | GPT Image 2.5 rows only |
output_format on Sume | png, jpeg, webp, svg in the schema; each row lists its own | Read the row's descriptor |
| OpenAI transparency | background: transparent with png or webp | jpeg has no alpha channel |
| Other rows | Not accepted | 400 unsupported_parameter |
Request it and test the alpha
The script asks for a transparent png and checks that the file has an alpha channel with at least some transparent pixels. If it does not, the check fails instead of letting a white box ship.
import io, os, requests
from PIL import Image
key = os.environ.get("SUME_API_KEY")
if not key:
raise SystemExit("set SUME_API_KEY")
r = requests.post(
"https://api.sume.com/v1/images",
headers={"Authorization": f"Bearer {key}"},
json={"model": "openai/gpt-image-2.5", "quality": "medium",
"background": "transparent", "output_format": "png",
"prompt": "Single sticker of a red kite, no shadow, no background"},
timeout=90,
)
print(r.status_code)
r.raise_for_status()
im = Image.open(io.BytesIO(requests.get(r.json()["data"][0]["url"], timeout=60).content))
alpha = im.convert("RGBA").getchannel("A")
low = alpha.getextrema()[0]
print(im.mode, "min alpha", low)
assert low < 255, "no transparent pixels"When it comes back opaque
- Check you asked for png or webp and not jpeg.
- Say it in the prompt too: a single object, no background, no floor shadow.
- A
202envelope means you have to fetch the result from the job before you can test the file. - Preview on a checkerboard or a dark color, because a white page hides a white fringe.
Where transparent images earn their keep
Stickers, product cutouts and icons are the usual jobs, since you can place the file on any page color without a separate cutout step. They are also the jobs where a hidden fringe of background color shows up most, so look at the edges on both a light and a dark surface before you publish.
Keep the transparent master and export flattened copies from it when a channel needs a solid background. Going the other way means regenerating.
Sources
Related posts
More in Media tools
- Upscale a 90-second video with a 30-second cap: trim, upscale, join
Sume Video Upscale takes up to 30 input seconds per job. Cut a 90-second clip into three, upscale each at $0.009 a second and join them. Total about $1.08.
- AI video upscaler API fields: factor 1.1 to 4 and fast, standard, pro
The Sume Video Upscale request takes upscale_factor from 1.1 to 4, duration_seconds from 1 to 30 and an enhancement_tier. What they do and cost.
- Public URL or media.sume.com: which Sume media tool takes which
Sume video trim and timeline accept only media.sume.com URLs from your workspace. Captions and video upscale take a public HTTPS URL. Import first.
- Write a YouTube show description from your episode transcripts
YouTube asks you to set a show's details but lists no required fields. Pull transcripts with Sume video inspect at $0.01 a minute and draft from them.
Written by Sume