Generate Image sends a text prompt to an OpenAI image model and returns the
generated image as a file. Available controls change with the selected model.
Model controls
DALL·E 2
DALL·E 3
GPT Image 1
Square sizes: 256×256, 512×512, and 1024×1024. The default is
1024×1024.
Sizes: 1024×1024, 1792×1024, and 1024×1792.
- Quality — Standard or HD.
- Style — Natural or Vivid.
Sizes: 1024×1024, 1536×1024, 1024×1536, or Auto.
- Quality — Auto, High, Medium, or Low.
- Background — Auto, Transparent, or Opaque.
- Output Format — PNG, JPEG, or WebP.
- Output Compression —
0 to 100 for JPEG and WebP.
Output
Describe the subject, setting, composition, lighting, palette, and intended
use. A specific art direction is more reliable than a list of adjectives.
Transparent backgrounds are a GPT Image 1 feature. Choose PNG or WebP when the
downstream workflow must preserve transparency.