pub struct CreateImageVariationRequest {
pub image: ImageInput,
pub model: Option<ImageModel>,
pub n: Option<u8>,
pub response_format: Option<ImageResponseFormat>,
pub size: Option<DallE2ImageSize>,
pub user: Option<String>,
}DALL-E 2 and image variations shut down on February 26, 2027.
image-types only.Fieldsยง
ยงimage: ImageInputDALL-E 2 and image variations shut down on February 26, 2027.
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
model: Option<ImageModel>DALL-E 2 and image variations shut down on February 26, 2027.
The legacy model used by the retired image variations endpoint. This endpoint no longer accepts requests.
n: Option<u8>DALL-E 2 and image variations shut down on February 26, 2027.
The number of images to generate. Must be between 1 and 10.
response_format: Option<ImageResponseFormat>DALL-E 2 and image variations shut down on February 26, 2027.
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: Option<DallE2ImageSize>DALL-E 2 and image variations shut down on February 26, 2027.
The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.
user: Option<String>DALL-E 2 and image variations shut down on February 26, 2027.
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.
Trait Implementationsยง
Sourceยงimpl AsyncTryFrom<CreateImageVariationRequest> for Form
Available on crate feature _api only.
impl AsyncTryFrom<CreateImageVariationRequest> for Form
_api only.