Struct openai_rs_api::core::models::images::ImageEditParameters
source · pub struct ImageEditParameters {
pub image: String,
pub mask: Option<String>,
pub prompt: String,
pub num_images: Option<i32>,
pub image_size: Option<String>,
pub response_format: Option<String>,
pub user: Option<String>,
}Fields§
§image: StringThe image to edit. Must be a valid PNG file, less than 4MB, and square. If mask is not provided, image must have transparency, which will be used as the mask.
mask: Option<String>An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where image should be edited.
Must be a valid PNG file, less than 4MB, and have the same dimensions as image.
prompt: StringA text description of the desired image(s). The maximum length is 1000 characters.
num_images: Option<i32>The number of images to generate. Must be between 1 and 10.
image_size: Option<String>The size of the generated images. Must be one of 256x256, 512x512, or `1024x1024.
response_format: Option<String>The format in which the generated images are returned. Must be one of url or b64_json.
user: Option<String>A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.