/v1/images/generations

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string | null

Allows setting transparency for the background of the generated image(s).

This parameter is only supported for gpt-image-1.

Must be one of transparent, opaque or auto (default value).

When auto is used, the model will automatically determine the best background for the image.

If transparent, the output format needs to support transparency, so it should be set to either png (default value) or webp.

string
required
string | null

Control the content-moderation level for images generated by gpt-image-1.

Must be either low for less restrictive filtering or auto (default value).

int32 | null
≥ 0
int32 | null

The compression level (0-100%) for the generated images.

This parameter is only supported for gpt-image-1 with the webp or jpeg output formats, and defaults to 100.

string | null

The format in which the generated images are returned.

This parameter is only supported for gpt-image-1.

Must be one of png (default value), jpeg, or webp.

string
required
string | null
string | null
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json