API ReferenceCopy MarkdownImagesGiven a prompt and/or an input image, the model will generate a new image. Create image variationDeprecated$ openai images create-variationPOST/images/variationsCreate image edit$ openai images editPOST/images/editsCreate image$ openai images generatePOST/images/generationsModelsExpand Collapse image: object { b64_json, revised_prompt, url } Represents the content or the URL of an image generated by the OpenAI API. View schema detailsimage_edit_completed_event: object { b64_json, background, created_at, 6 more } Emitted when image editing has completed and the final image is available. View schema detailsimage_edit_partial_image_event: object { b64_json, background, created_at, 5 more } Emitted when a partial image is available during image editing streaming. View schema detailsimage_edit_stream_event: ImageEditPartialImageEvent { b64_json, background, created_at, 5 more } or ImageEditCompletedEvent { b64_json, background, created_at, 6 more } Emitted when a partial image is available during image editing streaming. View schema detailsimage_gen_completed_event: object { b64_json, background, created_at, 6 more } Emitted when image generation has completed and the final image is available. View schema detailsimage_gen_partial_image_event: object { b64_json, background, created_at, 5 more } Emitted when a partial image is available during image generation streaming. View schema detailsimage_gen_stream_event: ImageGenPartialImageEvent { b64_json, background, created_at, 5 more } or ImageGenCompletedEvent { b64_json, background, created_at, 6 more } Emitted when a partial image is available during image generation streaming. View schema detailsimage_model: "gpt-image-1.5" or "gpt-image-2" or "gpt-image-2-2026-04-21" or 11 moreView schema detailsimages_response: object { created, background, data, 6 more } The response from the image generation endpoint. View schema details