Create image
Creates an image given a prompt. Learn more.
Request body
Example request
{
"prompt": "A cute baby sea otter",
"n": 1,
"quality": "medium",
"response_format": "url",
"output_format": "png",
"output_compression": 100,
"partial_images": 1,
"moderation": "low",
"background": "transparent",
"style": "vivid",
"user": "user-1234"
}Response
OK
Changes
Changed in 7 of the 163 revisions of this API.12657
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ▲
the
response's property type changed fromstringto no type for status (media type: application/json)response-property-type-changed
- ●
added the new
maxenum value to the////response property for the response status (media type: text/event-stream)response-property-enum-value-added
- ●
added the new
maxenum value to the////response property for the response status (media type: text/event-stream)response-property-enum-value-added
- ●
added the new
maxenum value to theresponse property for the response status (media type: application/json)response-property-enum-value-added
- ●
added the new
xhighenum value to the////response property for the response status (media type: text/event-stream)response-property-enum-value-added
- ●
added the new
xhighenum value to the////response property for the response status (media type: text/event-stream)response-property-enum-value-added
- ●
added the new
xhighenum value to theresponse property for the response status (media type: application/json)response-property-enum-value-added
- ○
added the new
gpt-image-2.5-flareenum value to the request property/request-property-enum-value-added
- ○
added the new
gpt-image-2.5-flare-2026-09-08enum value to the request property/request-property-enum-value-added
- ○
added the new
gpt-image-2.5-sunburstenum value to the request property/request-property-enum-value-added
- ○
added the new
gpt-image-2.5-sunburst-2026-09-08enum value to the request property/request-property-enum-value-added
- ○
added the new
maxenum value to the request propertyrequest-property-enum-value-added
- ○
added the new
xhighenum value to the request propertyrequest-property-enum-value-added
- ○
added
subschema #1subschema #2to the////response propertyanyOflist for the response status (media type: text/event-stream)response-property-any-of-added
- ○
added
subschema #1subschema #2to the////response propertyanyOflist for the response status (media type: text/event-stream)response-property-any-of-added
- ○
added
subschema #1subschema #2to theresponse propertyanyOflist for the response status (media type: application/json)response-property-any-of-added
- ○
removed the
1024x1024enum value from the////response property for the response status (media type: text/event-stream)response-property-enum-value-removed
- ○
removed the
1024x1024enum value from the////response property for the response status (media type: text/event-stream)response-property-enum-value-removed
- ○
removed the
1024x1024enum value from theresponse property for the response status (media type: application/json)response-property-enum-value-removed
- ○
removed the
1024x1536enum value from the////response property for the response status (media type: text/event-stream)response-property-enum-value-removed
- ○
removed the
1024x1536enum value from the////response property for the response status (media type: text/event-stream)response-property-enum-value-removed
- ○
removed the
1024x1536enum value from theresponse property for the response status (media type: application/json)response-property-enum-value-removed
- ○
removed the
1536x1024enum value from the////response property for the response status (media type: text/event-stream)response-property-enum-value-removed
- ○
removed the
1536x1024enum value from the////response property for the response status (media type: text/event-stream)response-property-enum-value-removed
- ○
removed the
1536x1024enum value from theresponse property for the response status (media type: application/json)response-property-enum-value-removed
- ○
removed the
autoenum value from the////response property for the response status (media type: text/event-stream)response-property-enum-value-removed
- ○
removed the
autoenum value from the////response property for the response status (media type: text/event-stream)response-property-enum-value-removed
- ▲
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ○
added the new
gpt-image-2enum value to the request property/request-property-enum-value-added
- ○
added the new
gpt-image-2-2026-04-21enum value to the request property/request-property-enum-value-added
- ○
- ▲
removed the enum value
1024x1024of the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
1024x1536of the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
1024x1792of the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
1536x1024of the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
1792x1024of the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
256x256of the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
512x512of the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
autoof the request propertyrequest-property-enum-value-removed
- ▲
the
request property type changed fromstringto no typerequest-property-type-changed
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added
subschema #1subschema #2to therequest propertyanyOflistrequest-property-any-of-added
- ○
added the new
gpt-image-1-minienum value to the request property/request-property-enum-value-added
- ○
added the new
gpt-image-1.5enum value to the request property/request-property-enum-value-added
- ○
added the media type
text/event-streamfor the response with the statusresponse-media-type-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
This revision also has 40 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the response's body type changed from no type to
objectfor statusresponse-body-type-changed
- ▲
the response property
became optional for the statusresponse-property-became-optional
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
the request property
became nullablerequest-property-became-nullable
- ○
the
request property default value changed fromstandardtoautorequest-property-default-value-changed
- ○
the
request property default value changed from1024x1024toautorequest-property-default-value-changed
- ○
added the new
1024x1536enum value to the request propertyrequest-property-enum-value-added
- ○
added the new
1536x1024enum value to the request propertyrequest-property-enum-value-added
- ○
added the new
autoenum value to the request propertyrequest-property-enum-value-added
- ○
added the new
autoenum value to the request propertyrequest-property-enum-value-added
- ○
added the new
gpt-image-1enum value to the request property/request-property-enum-value-added
- ○
added the new
highenum value to the request propertyrequest-property-enum-value-added
- ○
added the new
lowenum value to the request propertyrequest-property-enum-value-added
- ○
added the new
mediumenum value to the request propertyrequest-property-enum-value-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
This revision also has 18 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲