pub enum OpenRouterModel {
Show 136 variants
AnthropicClaude35Haiku,
AnthropicClaude37Sonnet,
AnthropicClaudeHaiku45,
AnthropicClaudeOpus4,
AnthropicClaudeOpus41,
AnthropicClaudeOpus45,
AnthropicClaudeOpus46,
AnthropicClaudeSonnet4,
AnthropicClaudeSonnet45,
AnthropicClaudeSonnet46,
ArceeAiTrinityLargePreviewFree,
ArceeAiTrinityMiniFree,
DeepseekDeepseekChatV31,
DeepseekDeepseekV31Terminus,
DeepseekDeepseekV31TerminusExacto,
DeepseekDeepseekV32,
DeepseekDeepseekV32Speciale,
GoogleGemini20Flash001,
GoogleGemini25Flash,
GoogleGemini25FlashLite,
GoogleGemini25FlashLitePreview092025,
GoogleGemini25FlashPreview092025,
GoogleGemini25Pro,
GoogleGemini25ProPreview0506,
GoogleGemini25ProPreview0605,
GoogleGemini3FlashPreview,
GoogleGemini3ProPreview,
GoogleGemini31FlashLitePreview,
GoogleGemini31ProPreview,
GoogleGemini31ProPreviewCustomtools,
GoogleGemma327bIt,
GoogleGemma327bItFree,
InceptionMercury,
InceptionMercury2,
InceptionMercuryCoder,
MetaLlamaLlama3370bInstructFree,
MinimaxMinimax01,
MinimaxMinimaxM1,
MinimaxMinimaxM2,
MinimaxMinimaxM21,
MinimaxMinimaxM25,
MinimaxMinimaxM27,
MistralaiCodestral2508,
MistralaiDevstral2512,
MistralaiDevstralMedium2507,
MistralaiDevstralSmall2505,
MistralaiDevstralSmall2507,
MistralaiMistralMedium3,
MistralaiMistralMedium31,
MistralaiMistralSmall2603,
MistralaiMistralSmall3124bInstruct,
MistralaiMistralSmall3224bInstruct,
MoonshotaiKimiK2,
MoonshotaiKimiK20905,
MoonshotaiKimiK20905Exacto,
MoonshotaiKimiK2Thinking,
MoonshotaiKimiK25,
MoonshotaiKimiK2Free,
NousresearchHermes4405b,
NousresearchHermes470b,
NvidiaNemotron3Nano30bA3bFree,
NvidiaNemotron3Super120bA12b,
NvidiaNemotron3Super120bA12bFree,
NvidiaNemotronNano12bV2VlFree,
NvidiaNemotronNano9bV2,
NvidiaNemotronNano9bV2Free,
OpenaiGpt41,
OpenaiGpt41Mini,
OpenaiGpt4oMini,
OpenaiGpt5,
OpenaiGpt5Codex,
OpenaiGpt5Image,
OpenaiGpt5Mini,
OpenaiGpt5Nano,
OpenaiGpt5Pro,
OpenaiGpt51,
OpenaiGpt51Chat,
OpenaiGpt51Codex,
OpenaiGpt51CodexMax,
OpenaiGpt51CodexMini,
OpenaiGpt52,
OpenaiGpt52Chat,
OpenaiGpt52Codex,
OpenaiGpt52Pro,
OpenaiGpt53Codex,
OpenaiGpt54,
OpenaiGpt54Mini,
OpenaiGpt54Nano,
OpenaiGpt54Pro,
OpenaiGptOss120b,
OpenaiGptOss120bExacto,
OpenaiGptOss120bFree,
OpenaiGptOss20b,
OpenaiGptOss20bFree,
OpenaiGptOssSafeguard20b,
OpenaiO4Mini,
OpenrouterFree,
PrimeIntellectIntellect3,
QwenQwen3235bA22b0725,
QwenQwen3235bA22bThinking2507,
QwenQwen330bA3bInstruct2507,
QwenQwen330bA3bThinking2507,
QwenQwen34bFree,
QwenQwen3Coder,
QwenQwen3Coder30bA3bInstruct,
QwenQwen3CoderFlash,
QwenQwen3CoderExacto,
QwenQwen3CoderFree,
QwenQwen3Max,
QwenQwen3Next80bA3bInstruct,
QwenQwen3Next80bA3bInstructFree,
QwenQwen3Next80bA3bThinking,
QwenQwen35397bA17b,
QwenQwen35Plus0215,
StepfunStep35Flash,
StepfunStep35FlashFree,
XAiGrok3,
XAiGrok3Beta,
XAiGrok3Mini,
XAiGrok3MiniBeta,
XAiGrok4,
XAiGrok4Fast,
XAiGrok41Fast,
XAiGrok420Beta,
XAiGrokCodeFast1,
XiaomiMimoV2Flash,
XiaomiMimoV2Omni,
XiaomiMimoV2Pro,
ZAiGlm45,
ZAiGlm45Air,
ZAiGlm45v,
ZAiGlm46,
ZAiGlm46Exacto,
ZAiGlm47,
ZAiGlm47Flash,
ZAiGlm5,
}Variants§
AnthropicClaude35Haiku
AnthropicClaude37Sonnet
AnthropicClaudeHaiku45
AnthropicClaudeOpus4
AnthropicClaudeOpus41
AnthropicClaudeOpus45
AnthropicClaudeOpus46
AnthropicClaudeSonnet4
AnthropicClaudeSonnet45
AnthropicClaudeSonnet46
ArceeAiTrinityLargePreviewFree
ArceeAiTrinityMiniFree
DeepseekDeepseekChatV31
DeepseekDeepseekV31Terminus
DeepseekDeepseekV31TerminusExacto
DeepseekDeepseekV32
DeepseekDeepseekV32Speciale
GoogleGemini20Flash001
GoogleGemini25Flash
GoogleGemini25FlashLite
GoogleGemini25FlashLitePreview092025
GoogleGemini25FlashPreview092025
GoogleGemini25Pro
GoogleGemini25ProPreview0506
GoogleGemini25ProPreview0605
GoogleGemini3FlashPreview
GoogleGemini3ProPreview
GoogleGemini31FlashLitePreview
GoogleGemini31ProPreview
GoogleGemini31ProPreviewCustomtools
GoogleGemma327bIt
GoogleGemma327bItFree
InceptionMercury
InceptionMercury2
InceptionMercuryCoder
MetaLlamaLlama3370bInstructFree
MinimaxMinimax01
MinimaxMinimaxM1
MinimaxMinimaxM2
MinimaxMinimaxM21
MinimaxMinimaxM25
MinimaxMinimaxM27
MistralaiCodestral2508
MistralaiDevstral2512
MistralaiDevstralMedium2507
MistralaiDevstralSmall2505
MistralaiDevstralSmall2507
MistralaiMistralMedium3
MistralaiMistralMedium31
MistralaiMistralSmall2603
MistralaiMistralSmall3124bInstruct
MistralaiMistralSmall3224bInstruct
MoonshotaiKimiK2
MoonshotaiKimiK20905
MoonshotaiKimiK20905Exacto
MoonshotaiKimiK2Thinking
MoonshotaiKimiK25
MoonshotaiKimiK2Free
NousresearchHermes4405b
NousresearchHermes470b
NvidiaNemotron3Nano30bA3bFree
NvidiaNemotron3Super120bA12b
NvidiaNemotron3Super120bA12bFree
NvidiaNemotronNano12bV2VlFree
NvidiaNemotronNano9bV2
NvidiaNemotronNano9bV2Free
OpenaiGpt41
OpenaiGpt41Mini
OpenaiGpt4oMini
OpenaiGpt5
OpenaiGpt5Codex
OpenaiGpt5Image
OpenaiGpt5Mini
OpenaiGpt5Nano
OpenaiGpt5Pro
OpenaiGpt51
OpenaiGpt51Chat
OpenaiGpt51Codex
OpenaiGpt51CodexMax
OpenaiGpt51CodexMini
OpenaiGpt52
OpenaiGpt52Chat
OpenaiGpt52Codex
OpenaiGpt52Pro
OpenaiGpt53Codex
OpenaiGpt54
OpenaiGpt54Mini
OpenaiGpt54Nano
OpenaiGpt54Pro
OpenaiGptOss120b
OpenaiGptOss120bExacto
OpenaiGptOss120bFree
OpenaiGptOss20b
OpenaiGptOss20bFree
OpenaiGptOssSafeguard20b
OpenaiO4Mini
OpenrouterFree
PrimeIntellectIntellect3
QwenQwen3235bA22b0725
QwenQwen3235bA22bThinking2507
QwenQwen330bA3bInstruct2507
QwenQwen330bA3bThinking2507
QwenQwen34bFree
QwenQwen3Coder
QwenQwen3Coder30bA3bInstruct
QwenQwen3CoderFlash
QwenQwen3CoderExacto
QwenQwen3CoderFree
QwenQwen3Max
QwenQwen3Next80bA3bInstruct
QwenQwen3Next80bA3bInstructFree
QwenQwen3Next80bA3bThinking
QwenQwen35397bA17b
QwenQwen35Plus0215
StepfunStep35Flash
StepfunStep35FlashFree
XAiGrok3
XAiGrok3Beta
XAiGrok3Mini
XAiGrok3MiniBeta
XAiGrok4
XAiGrok4Fast
XAiGrok41Fast
XAiGrok420Beta
XAiGrokCodeFast1
XiaomiMimoV2Flash
XiaomiMimoV2Omni
XiaomiMimoV2Pro
ZAiGlm45
ZAiGlm45Air
ZAiGlm45v
ZAiGlm46
ZAiGlm46Exacto
ZAiGlm47
ZAiGlm47Flash
ZAiGlm5
Implementations§
Source§impl OpenRouterModel
impl OpenRouterModel
pub fn reasoning_levels(self) -> &'static [ReasoningEffort]
pub fn supports_reasoning(self) -> bool
pub fn supports_image(self) -> bool
pub fn supports_audio(self) -> bool
Trait Implementations§
Source§impl Clone for OpenRouterModel
impl Clone for OpenRouterModel
Source§fn clone(&self) -> OpenRouterModel
fn clone(&self) -> OpenRouterModel
Returns a duplicate of the value. Read more
1.0.0 · 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 OpenRouterModel
impl Debug for OpenRouterModel
Source§impl From<OpenRouterModel> for LlmModel
impl From<OpenRouterModel> for LlmModel
Source§fn from(m: OpenRouterModel) -> Self
fn from(m: OpenRouterModel) -> Self
Converts to this type from the input type.
Source§impl FromStr for OpenRouterModel
impl FromStr for OpenRouterModel
Source§impl Hash for OpenRouterModel
impl Hash for OpenRouterModel
Source§impl PartialEq for OpenRouterModel
impl PartialEq for OpenRouterModel
impl Copy for OpenRouterModel
impl Eq for OpenRouterModel
impl StructuralPartialEq for OpenRouterModel
Auto Trait Implementations§
impl Freeze for OpenRouterModel
impl RefUnwindSafe for OpenRouterModel
impl Send for OpenRouterModel
impl Sync for OpenRouterModel
impl Unpin for OpenRouterModel
impl UnsafeUnpin for OpenRouterModel
impl UnwindSafe for OpenRouterModel
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<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
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.