Create image variations
Create image variations with the OpenAI Images Variations API.
Depending on the model, you can control the number of variations, size, and response format.
/v1/images/variationsGenerate one or more visual variants based on a single input image. Input images must meet the format, size, and size requirements supported by the selected model. Whether the model supports image variants depends on the actual capability of the model visible in the current API Key
Authorization
bearerAuth Use Bearer your-api-key in the Authorization Header.
In: header
Request Body
multipart/form-data
Use Multipart to submit the variant source image. The client should automatically generate the Content-Type boundary from the request library.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json