Image Generation
POST/v1/images/generations
Generates images based on the prompt using OpenAI's image generation API.
Request
- application/json
Body
Image generation query with text prompt
Text description of the desired image(s)
The model to use for image generation
Possible values: >= 1
and <= 1
The number of images to generate, we currently only support one at a time
The size of the generated images
The quality of the image that will be generated
The format in which the generated images are returned, we only support "url"
The style of the generated images the options are vivid and natural and does not apply to all providers
The URL to an image you want the image model to update (Not supported by Dall-e-3)
Responses
- 200
Result of the Image Generation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
UTC timestamp of when the image was created
data object[]required
URL of the generated image
If exists, the actual prompt that was processed as some providers automatically enhance them
{
"created": 0,
"data": [
{
"url": "https://...",
"revised_prompt": "A labrador retriever with lush chocolate fur is driving a red 1974 Stingray and..."
}
]
}