POST /images/generations
Servers
- https://api.openai.com/v1
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
prompt |
String | Yes |
A text description of the desired image(s). The maximum length is 32000 characters for |
output_compression |
Integer | No |
The compression level (0-100%) for the generated images. This parameter is only supported for Default value: 100 |
n |
Integer | No |
The number of images to generate. Must be between 1 and 10. For Default value: 1 |
size |
String | No |
The size of the generated images. Must be one of Possible values:
Default value: "auto" |
quality |
String | No |
The quality of the image that will be generated.
Possible values:
Default value: "auto" |
user |
String | No |
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more. |
moderation |
String | No |
Control the content-moderation level for images generated by Possible values:
Default value: "auto" |
output_format |
String | No |
The format in which the generated images are returned. This parameter is only supported for Possible values:
Default value: "png" |
background |
String | No |
Allows to set transparency for the background of the generated image(s).
This parameter is only supported for If Possible values:
Default value: "auto" |
response_format |
String | No |
The format in which generated images with Possible values:
Default value: "url" |
model |
No |
The model to use for image generation. One of Default value: "dall-e-2" |
|
style |
String | No |
The style of the generated images. This parameter is only supported for Possible values:
Default value: "vivid" |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.