Images
Create image
Changed onCreates an image given a prompt using a GPT Image model. Learn more.
post/images/generations
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/images/generations
- AuthHTTP bearer
Request body
Example request
{
"prompt": "A cute baby sea otter",
"n": 1,
"quality": "medium",
"output_format": "png",
"output_compression": 100,
"partial_images": 1,
"moderation": "low",
"background": "transparent",
"style": "vivid",
"safety_identifier": "user-1234",
"user": "user-1234"
}Response
OK
Changes
- info
added the new optional request property
- info
request property
deprecated - info
added the optional property
////to the response with the status (media type: text/event-stream) - info
added the optional property
to the response with the status (media type: application/json)
- info
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info