/images/variationsDeprecatedCreate image variations from an uploaded image
Creates image variations based on an uploaded image using the legacy image variations contract. This operation is retired and no longer available; use the image edits endpoint with a GPT Image model and a prompt to create a variation. The legacy request schema requires a square PNG image smaller than 4 MB.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Legacy multipart form data for the retired image variations operation. The image field is required.
A 400 is returned when the image or request is invalid, a 403 when the project lacks access to the requested model, and a 410 because the image variations endpoint is no longer available. A 429 indicates that the image rate limit was exceeded, and a 500 indicates that the variation could not be generated or processed. The image field is required and must contain a square PNG smaller than 4 MB; n must be between 1 and 10 if provided.