Creates a variation of a given image.
Body
multipart/form-data
Body
CreateImageVariationRequest
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
Any OfThe model to use for image generation. Only dall-e-2 is supported at this time.
Default:dall-e-2
Example:dall-e-2
The number of images to generate. Must be between 1 and 10. For dall-e-3, only n=1 is supported.
Default:1
>= 1<= 10
Example:1
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.
Allowed values:urlb64_json
Default:url
Example:url
The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.
Allowed values:256x256512x5121024x1024
Default:1024x1024
Example:1024x1024
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.
Example:user-1234
Response
200 application/json
Response
OK
ImagesResponse
Represents the url or the content of an image generated by the OpenAI API.
Show Child Parameters
Authentication
Body
Models
List and describe the various models available in the API.
Lists the currently available models, and provides basic information about each one such as the owner and availability.
Response
200 application/json
Response
OK
ListModelsResponse
Allowed values:list
Describes an OpenAI model offering that can be used with the API.
Show Child Parameters
Authentication
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
Path Parameters
The ID of the model to use for this request
Example:gpt-4o-mini
Response
200 application/json
Response
OK
Model
Describes an OpenAI model offering that can be used with the API.
The model identifier, which can be referenced in the API endpoints.
The Unix timestamp (in seconds) when the model was created.
The object type, which is always “model”.
Allowed values:model
The organization that owns the model.
Authentication
Path Parameters
Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.
Path Parameters
The model to delete
Example:ft:gpt-4o-mini:acemeco:suffix:abc123
Response
200 application/json
Response
OK