pub enum Model {
Show 24 variants
Gemini37Flash,
Gemini36Flash,
Gemini35Flash,
Gemini35FlashLite,
Gemini31FlashLite,
Gemini31Pro,
Gemini31FlashImage,
Gemini31FlashLiteImage,
Gemini3ProImage,
Gemini3Flash,
GeminiOmniFlash,
Gemini31FlashTts,
Gemini3Pro,
Gemini25Flash,
Gemini25FlashLite,
Gemini25FlashImage,
Gemini25Pro,
Gemini25FlashTts,
Gemini25ProTts,
Gemini25ComputerUse,
GeminiEmbedding2,
GeminiEmbedding001,
TextEmbedding004,
Custom(String),
}Expand description
Gemini API models.
The default is Gemini37Flash, the latest stable Flash model.
Any model not listed here (e.g. gemini-flash-latest, preview or
experimental releases) can be used via Model::Custom or a string literal.
Variants§
Gemini37Flash
Latest stable Flash model and the library default.
Gemini36Flash
Gemini35Flash
Gemini35FlashLite
Gemini31FlashLite
Gemini31Pro
Current Pro model (preview).
Gemini31FlashImage
Image generation model, also known as Nano Banana 2.
Gemini31FlashLiteImage
Low-latency image generation model, also known as Nano Banana 2 Lite.
Gemini3ProImage
Pro image generation model, also known as Nano Banana Pro.
Gemini3Flash
GeminiOmniFlash
Video generation and editing model: turn text and images into video and refine results through natural language.
Gemini31FlashTts
Low-latency speech generation model (preview).
Gemini3Pro
gemini-3-pro-preview has been shut down; use Model::Gemini31Pro instead
Shut down by Google; fails for all requests.
Gemini25Flash
Previous generation; still served, but unavailable to newly created API keys.
Gemini25FlashLite
Gemini25FlashImage
Image generation model, also known as Nano Banana. Shutting down on October 2, 2026; use Model::Gemini31FlashImage instead.
Gemini25Pro
Gemini25FlashTts
Fast and controllable text-to-speech model (2.5 family).
Gemini25ProTts
High-fidelity speech synthesis model (2.5 family).
Gemini25ComputerUse
Computer use model that can “see” a digital screen and perform UI actions like clicking, typing, and navigating.
GeminiEmbedding2
Multimodal embedding model mapping text, images, video, audio, and PDFs into a unified embedding space.
GeminiEmbedding001
Text embedding model for semantic search, classification, and RAG.
TextEmbedding004
shut down on January 14, 2026; use Model::GeminiEmbedding2 instead
Custom(String)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Model
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.