pub enum VisionModel {
Claude,
Gpt4o,
Gpt5,
Gemini15,
}Expand description
Supported vision model families with their patch pricing.
Variants§
Claude
Claude 3.5/4.5/4.6/4.7: Area-based calculation (Tokens ≈ width × height / 750).
Gpt4o
GPT-4o / GPT-4.5 high detail: fits in 2048x2048, scales short side to 768, then 512x512 tiles.
Gpt5
GPT-5/5.5: 6000px max dim, 10.24M max pixels, 512×512 tiles, 1536 token cap.
Gemini15
Gemini 2.0/3.0: flat 258 tokens if ≤ 384x384, else 258 per 768x768 tile.
Trait Implementations§
Source§impl Clone for VisionModel
impl Clone for VisionModel
Source§fn clone(&self) -> VisionModel
fn clone(&self) -> VisionModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VisionModel
impl Debug for VisionModel
impl Copy for VisionModel
Auto Trait Implementations§
impl Freeze for VisionModel
impl RefUnwindSafe for VisionModel
impl Send for VisionModel
impl Sync for VisionModel
impl Unpin for VisionModel
impl UnsafeUnpin for VisionModel
impl UnwindSafe for VisionModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more