Create image variation
This endpoint is retired and no longer available. Use the image edits endpoint with a GPT Image model and a prompt to create a variation of an image. The request and response schemas below describe the legacy contract.
Parameters
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
The legacy model used by the retired image variations endpoint. This endpoint no longer accepts requests.
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.
The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.
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://..."
}
]
}