Create Image
POST
/v1/images/generationsGenerate one or more images from a text prompt.
Request Body
application/jsonprompt:requiredstringText instruction describing the requested output.
Example
A cute baby sea ottermodel:requiredstringModel identifier used for this request.
Example
mix/gpt-image-2-pron:optionalstringNumber of results to generate.
Example
1size:optionalstringRequested output image dimensions.
Allowed
1024x10241536x10241024x15362048x20482048x11523840x21602160x3840autoExample
autotype:optionalstringResponse representation requested from the endpoint.
Allowed
urlExample
urlResponse
200A successful request returns a JSON response. The complete example is shown in the code panel.
Compatibility References
Use these external references to review additional parameters supported by compatible provider formats.