diff --git a/crates/vendor/fal-rs/src/endpoints/fal_ai/nano_banana_pro/nano_banana_pro_image_edit.rs b/crates/vendor/fal-rs/src/endpoints/fal_ai/nano_banana_pro/nano_banana_pro_image_edit.rs index a51ec7fa5f..bdfde2f3a1 100644 --- a/crates/vendor/fal-rs/src/endpoints/fal_ai/nano_banana_pro/nano_banana_pro_image_edit.rs +++ b/crates/vendor/fal-rs/src/endpoints/fal_ai/nano_banana_pro/nano_banana_pro_image_edit.rs @@ -33,37 +33,21 @@ pub struct NanoBananaProImageEditInput { ], "resolution": "1K" } - */ +*/ #[derive(Debug, Serialize, Deserialize, Default)] -pub struct File { +pub struct ImageFile { /// The URL where the file can be downloaded from. pub url: String, - - // /// The mime type of the file. - // /// "image/png" - // #[serde(skip_serializing_if = "Option::is_none")] - // pub content_type: Option, - // /// File data - // #[serde(skip_serializing_if = "Option::is_none")] - // pub file_data: Option, - // /// The name of the file. It will be auto-generated if not provided. - // /// "z9RV14K95DvU.png" - // #[serde(skip_serializing_if = "Option::is_none")] - // pub file_name: Option, - // /// The size of the file in bytes. - // /// 4404019 - // #[serde(skip_serializing_if = "Option::is_none")] - // pub file_size: Option, } #[derive(Debug, Serialize, Deserialize)] -pub struct Gemini25FlashImageEditOutput { - pub images: Vec, +pub struct NanoBananaProImageEditOutput { + pub images: Vec, } pub fn gemini_25_flash_image_edit( - params: Gemini25FlashImageEditInput, -) -> FalRequest { - FalRequest::new("fal-ai/gemini-25-flash-image/edit", params) + params: NanoBananaProImageEditInput, +) -> FalRequest { + FalRequest::new("fal-ai/nano-banana-pro/edit", params) } diff --git a/crates/vendor/fal-rs/src/endpoints/fal_ai/nano_banana_pro/nano_banana_pro_text_to_image.rs b/crates/vendor/fal-rs/src/endpoints/fal_ai/nano_banana_pro/nano_banana_pro_text_to_image.rs index 0a07eaa3ee..e188679962 100644 --- a/crates/vendor/fal-rs/src/endpoints/fal_ai/nano_banana_pro/nano_banana_pro_text_to_image.rs +++ b/crates/vendor/fal-rs/src/endpoints/fal_ai/nano_banana_pro/nano_banana_pro_text_to_image.rs @@ -1,53 +1,37 @@ use crate::prelude::{Deserialize, FalRequest, Serialize}; #[derive(Debug, Serialize, Deserialize, Default)] -pub struct Gemini25FlashImageEditInput { +pub struct NanoBananaProTextToImageInput { pub prompt: String, - pub image_urls: Vec, + /// Eg. "16:9", "1:1", and a ton of other options. So many options. + pub aspect_ratio: String, + + /// Eg. "1K", "2K", "4K" + pub resolution: String, /// 1 - 4 #[serde(skip_serializing_if = "Option::is_none")] pub num_images: Option, - /// "jpeg" or "png" + /// "jpeg", "png", "webp" #[serde(skip_serializing_if = "Option::is_none")] pub output_format: Option, - - // /// Resolution, eg. "720p" - // #[serde(skip_serializing_if = "Option::is_none")] - // pub resolution: Option, } #[derive(Debug, Serialize, Deserialize, Default)] -pub struct File { +pub struct ImageFile { /// The URL where the file can be downloaded from. pub url: String, - - // /// The mime type of the file. - // /// "image/png" - // #[serde(skip_serializing_if = "Option::is_none")] - // pub content_type: Option, - // /// File data - // #[serde(skip_serializing_if = "Option::is_none")] - // pub file_data: Option, - // /// The name of the file. It will be auto-generated if not provided. - // /// "z9RV14K95DvU.png" - // #[serde(skip_serializing_if = "Option::is_none")] - // pub file_name: Option, - // /// The size of the file in bytes. - // /// 4404019 - // #[serde(skip_serializing_if = "Option::is_none")] - // pub file_size: Option, } #[derive(Debug, Serialize, Deserialize)] -pub struct Gemini25FlashImageEditOutput { - pub images: Vec, +pub struct NanoBananaProTextToImageOutput { + pub images: Vec, } pub fn gemini_25_flash_image_edit( - params: Gemini25FlashImageEditInput, -) -> FalRequest { - FalRequest::new("fal-ai/gemini-25-flash-image/edit", params) + params: NanoBananaProTextToImageInput, +) -> FalRequest { + FalRequest::new("fal-ai/nano-banana-pro", params) }