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 1 |
|---|---|
model | gpt-image-1 |
quality | low, medium, high, or auto |
size | 1024x1024, 1024x1536, 1536x1024, or auto |
output_format | png, jpeg, or webp |
output_compression | 0 to 100, for JPEG or WebP output only |
background | Set transparent explicitly for transparent output; use PNG or WebP |
input_fidelity | low or high; high preserves input details, while quality controls output generation. High input fidelity uses more image input tokens. Omit this parameter when migrating to GPT Image 2, which always uses high input fidelity. |