Przejdź do treści
Image Generator Parameters / Output Format (PNG, JPEG, WebP)
Universal parameters

Output Format (PNG, JPEG, WebP)

The output format setting specifies the file container and compression standard used when saving or downloading an AI-generated image. While the generated pixels and composition stay identical, the choice determines final file weight, compression artifacts, and whether transparent backgrounds are preserved.

Also known as: output_format, output_compression, response_format

Side-by-side test results

Output Format (PNG, JPEG, WebP) - JPEG from API
Output Format (PNG, JPEG, WebP) - PNG from API
JPEG from APIPNG from API

Drag the slider to compare. Left: JPEG from API. Right: PNG from API.

Model: FLUX.1 [dev] (otwarte wagi, przez API fal.ai). Settings: seed 1411, 1024x768, only output_format changes. Date: 14.11.2026.
Prompt: a ceramic teapot and two cups on a wooden table next to a window, soft morning light, still life photo

Both files show the exact same image, and to the naked eye you cannot tell them apart even when zooming in. The real difference is file size: the direct JPEG from the API came out to 552 KB, while the PNG weighed 995 KB, nearly double. Here on the page, both are displayed as 960 px wide WebP files, converted down to roughly 29 KB each.

Syntax across generators

GeneratorParameterValuesDefault
FLUXoutput_formatFLUX.2, Ultra, Fill, Expand. FLUX 3 Image: no parameterjpeg, png, webpjpeg
GPT Imageoutput_format + output_compressionjpeg faster than pngpng, jpeg, webp; SVG (generations only, n=1); GIF (frame_count 2-16, default 9; frame_duration_ms 20-2000, default 200); output_compression 0-100 only jpeg/webppng
Seedream*output_format / response_formatoutput_format: png, jpeg; response_format: url, b64_jsonjpeg; url (valid for 24 h)
Imagen (retired)outputOptions.mimeType + compressionQualityimage/jpeg, gif, png, webp, bmp, tiff, vnd.microsoft.icon; compressionQuality 0-100 (JPEG only)compressionQuality 75
Stability AI (SD 3.5)output_formatpng, jpeg, webppng
Ideogramno parameter in retrieved endpoints--
Qwen-Imageno parameterURL valid for 24 hPNGPNG

* Midjourney: docs.midjourney.com blocks automated scrapers, so values are sourced from search engine indexes. Please verify settings on the official Midjourney site before production use.

When to use it

Common mistake

Defaulting to PNG for every prompt and uploading those hefty files straight to a website or portfolio slows down page speeds dramatically. Another frequent misstep is exporting an asset with an isolated background as a JPEG, which strips the alpha channel and fills the transparent space with solid white or black.

Ready-to-use example

GPT Image:  "output_format": "webp", "output_compression": 80
FLUX:  "output_format": "png"
Stability:  "output_format": "webp"

Frequently asked questions

Which output format should I use for website publishing?

WebP or JPEG are the best options. WebP offers the smallest file footprint with excellent visual quality across modern web browsers. Save PNG for master copies and assets requiring transparent backgrounds.

Does choosing PNG make the AI generate higher detail?

No, the image generation process creates the exact same pixels regardless of the format setting. PNG simply records those generated pixels without lossy compression, while JPEG and WebP discard imperceptible data to reduce storage size.

Can I save an image with a transparent background as a JPEG?

No, the JPEG format does not contain an alpha channel for transparency. If your prompt generates a subject on a transparent background, saving it as a JPEG will automatically replace the empty area with a solid color.

Related terms

🛒 Sklep Kinetyka CapCut Pro 460 zł/rok Lovable Pro 450 zł/rok Replit Core 119 zł/rok Zobacz wszystko →
× ‹ powiększenie ›