pub struct GenerateOptions {
pub model: Option<ImageModel>,
pub n: Option<u32>,
pub quality: Option<ImageQuality>,
pub response_format: Option<ResponseFormat>,
pub size: Option<ImageSize>,
pub style: Option<ImageStyle>,
pub user: Option<String>,
}Expand description
Options for image generation.
Fields§
§model: Option<ImageModel>The model to use; when None the API picks its own default
n: Option<u32>Number of images to generate (1-10, DALL-E 3 only supports 1)
quality: Option<ImageQuality>Image quality
DALL-E 3 takes standard/hd; the GPT Image models take
low/medium/high/auto and reject the DALL-E values. GPT Image 2.5
models additionally accept max.
response_format: Option<ResponseFormat>Response format (URL or base64)
DALL-E only. The GPT Image models reject this parameter with
unknown_parameter and always return base64 data.
size: Option<ImageSize>Image size
style: Option<ImageStyle>Image style
DALL-E 3 only. The GPT Image models reject this parameter with
unknown_parameter.
user: Option<String>User identifier for abuse monitoring
Trait Implementations§
Source§impl Clone for GenerateOptions
impl Clone for GenerateOptions
Source§impl Debug for GenerateOptions
impl Debug for GenerateOptions
Auto Trait Implementations§
impl Freeze for GenerateOptions
impl RefUnwindSafe for GenerateOptions
impl Send for GenerateOptions
impl Sync for GenerateOptions
impl Unpin for GenerateOptions
impl UnsafeUnpin for GenerateOptions
impl UnwindSafe for GenerateOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more