Quick answer: the two most used Stable Diffusion apps save your generation settings inside every image by default. Automatic1111 writes the full prompt, negative prompt, seed, sampler and model into a PNG text field called "parameters" (or into the EXIF comment for JPEG and WebP). ComfyUI writes the prompt and your whole workflow into PNG text fields. Turn it off in the app for future images, and clean the files you already have before sharing them.
What Automatic1111 saves
In Automatic1111's own code, every image is saved with its "infotext": the same text you see under the image after generating. It holds the positive and negative prompt, steps, sampler, CFG scale, seed, size, model hash and model name, plus settings from extensions you used.
Where it goes depends on the format:
| Format | Where the settings are stored |
|---|---|
| PNG | A text chunk named parameters |
| JPEG, WebP, AVIF | The EXIF UserComment field |
Anyone can read it with ExifTool or a metadata viewer. Automatic1111's own README says you can drag an image onto its PNG Info tab to restore the generation parameters and copy them into the UI.
What ComfyUI saves
ComfyUI's Save Image node writes two PNG text fields: prompt, the graph that was run, and workflow, the full node layout. ComfyUI's README says you can drag any image made with ComfyUI onto the canvas "to get back the full workflow that made it, seeds included". That's handy for you, and just as handy for anyone you send the file to.
How to stop it for future images
- Automatic1111: Settings → Saving images/grids, untick Write infotext to metadata of the generated image. If you want to keep your settings for yourself, tick Create a text file with infotext next to every generated image instead, so they stay in a separate file you don't share.
- ComfyUI: start it with the
--disable-metadataoption.
Both only affect images made after the change.
How to remove it from images you already have
- AI Metadata Cleaner: drop the images in and download clean copies. It removes PNG text fields, EXIF (including UserComment) and XMP in your browser, without uploading the images.
- ExifTool:
exiftool -all= image.pngremoves the text chunks and EXIF. Check one file afterwards.
Removing EXIF alone isn't enough for PNGs: the parameters, prompt and workflow fields are PNG text, which is stored separately from EXIF.
How to check an image is clean
exiftool -a -G1 -s image.png | grep -i -E "parameters|prompt|workflow|usercomment"
No output means none of those fields are left. Or drop the file into AI Metadata Cleaner, which lists what it finds before cleaning.
Should you remove it?
Your prompt and settings are your own work, and the file hands them to anyone who downloads it. Removing them keeps that private. It doesn't change how the image was made: if a realistic image is AI-made, platforms and some laws expect you to say so; see is it legal to remove AI metadata. For other generators, see what AI metadata each generator writes.
Frequently asked questions
Does Stable Diffusion save the prompt in the image?
Automatic1111 and ComfyUI do by default. Automatic1111 stores it in a PNG text field called "parameters" (or EXIF UserComment for JPEG and WebP); ComfyUI stores the prompt and workflow as PNG text.
How do I turn off metadata in Automatic1111?
Settings → Saving images/grids → untick "Write infotext to metadata of the generated image".
How do I stop ComfyUI saving my workflow in images?
Start ComfyUI with --disable-metadata.
Can someone copy my workflow from a ComfyUI image?
Yes, if the PNG still has its metadata: dropping it into ComfyUI loads the workflow.
Does removing EXIF remove Stable Diffusion settings from a PNG?
No. In PNGs they're stored as PNG text fields, which are separate from EXIF. Remove all metadata, then check.
How we checked this
Sources, checked 30 November 2026:
