pub struct CreateImageVariationRequest {
    pub image: Vec<u8>,
    pub model: Option<String>,
    pub n: Option<u64>,
    pub response_format: Option<CreateImageVariationRequestResponseFormat>,
    pub size: Option<CreateImageVariationRequestSize>,
    pub user: Option<String>,
}Fields§
§image: Vec<u8>The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
model: Option<String>The model to use for image generation. Only dall-e-2 is supported at this time.
n: Option<u64>The number of images to generate. Must be between 1 and 10.
response_format: Option<CreateImageVariationRequestResponseFormat>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<CreateImageVariationRequestSize>The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.
user: Option<String>A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.
Implementations§
Source§impl CreateImageVariationRequest
 
impl CreateImageVariationRequest
Sourcepub fn builder() -> CreateImageVariationRequestBuilder<((), (), (), (), (), ())>
 
pub fn builder() -> CreateImageVariationRequestBuilder<((), (), (), (), (), ())>
Create a builder for building CreateImageVariationRequest.
On the builder, call .image(...), .model(...)(optional), .n(...)(optional), .response_format(...)(optional), .size(...)(optional), .user(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of CreateImageVariationRequest.
Trait Implementations§
Source§impl Clone for CreateImageVariationRequest
 
impl Clone for CreateImageVariationRequest
Source§fn clone(&self) -> CreateImageVariationRequest
 
fn clone(&self) -> CreateImageVariationRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read more