I’ve been having a really hard time getting ChatGPT to generate images with a real transparent background
I’ve tried a lot of different prompt variations already. I’ve asked for a real alpha channel, asked for a transparent PNG, asked it to check whether the file actually has transparency before giving it to me, and tried a bunch of other wording too. Most of the time it still doesn’t work
The weird part is that every now and then it gives me a transparent background even when I didn’t specifically ask for it. So it seems like it can happen, just not in a consistent way
At this point I’m mostly trying to understand whether there are any good practices that make this work better. If anyone has a better way to phrase it or a more reliable workflow, I’d really like to hear it
I tested this too in ChatGPT and even with a very explicit prompt it still generated a checkerboard background instead of a true transparent PNG.
Prompt tested:
Create a single isolated centered flower icon. Output as a PNG with real alpha transparency. The background must be actually transparent with an alpha channel, not a checkerboard pattern and not any visible backdrop. Show only the flower, centered, with no scene, no floor, no wall, no shadow, no glow, no text and no extra elements. Leave a small margin of transparent space around the flower.
The result looked like transparency, but the checkerboard was baked into the image. So it was not a real alpha-channel transparent background.
So from my test, ChatGPT UI does not seem reliable for true transparent PNG output. For reliable results, I’d probably use a background-removal/editor step after generation or use the API where transparency can be controlled more explicitly.
Something has changed. Prompts that were delivering transparent images are now delivering checkboard backgrounds within the same conversations. What changed? This is incredibly frustrating.
So, I don’t rightly know what the function is called,
But my access started treating the need for transparency with this green background,
Then, it would ‘cut out’ the shape and let me download it
It doesn’t have a background after the cut…
Maybe talk to your ChatGPT about it?
Here’s a sample of the green that it uses, it’s like the same that a greenscreen would use instead of transparency?
gpt-image-2 doesn’t currently support transparent backgrounds. Requests with background: "transparent" aren’t supported for this model.
Because gpt-image-2 always processes image inputs at high fidelity, image input tokens can be higher for edit requests that include reference images. To understand the cost implications, refer to the vision costs section.
So if you want transparent background, API is an option, where you can choose between different image models, that can deliver the output you’re striving for.
Although gpt-image-2 does not support transparency in the API, you can make a gpt-image-2 image transparent by removing the background for some images. There are 3rd party tools for this OR you can use the OAI edits endpoint and prompt it to remove the background - a real token burner…
Masking is a technique used to remove the background, but it is not the same as merely erasing it. While erasing permanently deletes pixels, masking is a non-destructive method that hides parts of an image using black, white, or gray (representing hidden, visible, or transparent areas).
One thing to point out is that for a transparency to be effective, it must have an easily discernible background, which you alluded to in your previous posts. I alluded to it as some images.
To sum this up for OP: yeah you can get transparent background with ChatGPT even with gpt-image-2. You can check my prompt examples and if ChatGPT isn’t correcting background to transparent automatically, you can add this prompt: clean it into a real RGBA PNG.