Generate images from a text prompt using image generation models
azure/openai/gpt-image-1 — OpenAI’s GPT Image 1 model via Azureazure/openai/gpt-image-1.5 — OpenAI’s GPT Image 1.5 model via Azurebackground parameter to generate images with transparent backgrounds (useful for logos, icons, and design assets):
200 - Success400 - Bad Request (invalid parameters)401 - Unauthorized (invalid API key)429 - Rate Limited500 - Internal Server Errorclient.images.generate() method directly.API key for authentication
The model to use for image generation
"azure/openai/gpt-image-1"
A text description of the desired image
"A watercolor painting of a Japanese garden in autumn"
The number of images to generate
x >= 11
The size of the generated images
1024x1024, 1536x1024, 1024x1536 "1024x1024"
The quality of the generated image
auto, high, medium, low "auto"
The format in which the generated images are returned
url, b64_json "url"
The background type for the generated image
auto, transparent, opaque "auto"
The file format of the generated image
png, jpeg, webp "png"