You're looking at a specific version of this model. Jump to the model overview.
openai /gpt-image-1:a6198aea
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 |
None
|
1:1
|
The aspect ratio of the generated image
|
| input_fidelity |
None
|
low
|
Control how much effort the model will exert to match the style and features, especially facial features, of input images
|
| 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 |
None
|
auto
|
The quality of the generated image
|
| background |
None
|
auto
|
Set whether the background is transparent or opaque or choose automatically
|
| output_compression |
integer
|
90
Max: 100 |
Compression level (0-100%)
|
| output_format |
None
|
webp
|
Output format
|
| moderation |
None
|
auto
|
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'}