Model parameters
Use client.images.generate for generation and client.images.edit for edits. See the image generation guide for API setup and request examples.
| Parameter | GPT Image 2 |
|---|---|
model | gpt-image-2 |
quality | low, medium, high, or auto |
size | auto or a supported resolution; see size constraints |
input_fidelity | Omit it. Image inputs are always processed at high fidelity. |
output_format | png, jpeg, or webp |
background | For transparent output, explicitly set transparent and use PNG or WebP. |
output_compression | Use only for JPEG or WebP output, not PNG. |
Transparent backgrounds are available in preview for gpt-image-2.
For the original prompts, inputs, and runnable workflows, see the pinned GPT Image 2 notebook.
<header className="not-prose mb-8">
<h2
id="gpt-image-1.5-guide"
className="m-0 text-3xl font-semibold text-default"
>
\{"GPT Image 1.5 reference"\}
</h2>
Overview and request settings for existing GPT Image 1.5 workflows.
</header>