You're looking at a specific version of this model. Jump to the model overview.

openai /gpt-image-1:919e1bf0

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
openai_api_key
string
Your OpenAI API key
prompt
string
A text description of the desired image
aspect_ratio
string (enum)
1:1

Options:

1:1, 3:2, 2:3

The aspect ratio of the generated image
input_images
array
A list of images to use as input for the generation
number_of_images
integer
1

Min: 1

Max: 10

Number of images to generate (1-10)
quality
string (enum)
auto

Options:

low, medium, high, auto

The quality of the generated image
background
string (enum)
auto

Options:

auto, transparent, opaque

Set whether the background is transparent or opaque or choose automatically
output_compression
integer
90

Max: 100

Compression level (0-100%)
output_format
string (enum)
webp

Options:

png, jpeg, webp

Output format
moderation
string (enum)
auto

Options:

auto, low

Content moderation level
user_id
string
An optional unique identifier representing your end-user. This helps OpenAI monitor and detect abuse.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'items': {'format': 'uri', 'type': 'string'},
 'title': 'Output',
 'type': 'array'}