Create image variation
$ openai images create-variation
POST/images/variations
Creates a variation of a given image. This endpoint only supports dall-e-2.
Parameters
--image: file path
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
--response-format: optional "url" or "b64_json"
The format in which the generated images are returned. Must be one of url or b64_json. URLs are only valid for 60 minutes after the image has been generated.
--size: optional "256x256" or "512x512" or "1024x1024"
The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.
--user: optional string
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.
Create image variation
openai images create-variation \
--api-key 'My API Key' \
--image 'Example data'{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}
Returns Examples
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}