pub enum OpenRouterModel {
Show 255 variants
Ai21JambaLarge17,
AlibabaTongyiDeepresearch30bA3b,
AmazonNova2LiteV1,
AmazonNovaLiteV1,
AmazonNovaMicroV1,
AmazonNovaPremierV1,
AmazonNovaProV1,
AnthropicClaude3Haiku,
AnthropicClaude35Haiku,
AnthropicClaudeHaiku45,
AnthropicClaudeOpus4,
AnthropicClaudeOpus41,
AnthropicClaudeOpus45,
AnthropicClaudeOpus46,
AnthropicClaudeOpus46Fast,
AnthropicClaudeOpus47,
AnthropicClaudeOpus47Fast,
AnthropicClaudeSonnet4,
AnthropicClaudeSonnet45,
AnthropicClaudeSonnet46,
ArceeAiTrinityLargePreview,
ArceeAiTrinityLargeThinking,
ArceeAiTrinityLargeThinkingFree,
ArceeAiTrinityMini,
ArceeAiVirtuosoLarge,
BaiduCobuddyFree,
BaiduErnie4521bA3b,
BaiduErnie45Vl28bA3b,
BytedanceSeedSeed16,
BytedanceSeedSeed16Flash,
BytedanceSeedSeed20Lite,
BytedanceSeedSeed20Mini,
CohereCommandR082024,
CohereCommandRPlus082024,
DeepseekDeepseekChat,
DeepseekDeepseekChatV30324,
DeepseekDeepseekChatV31,
DeepseekDeepseekR1,
DeepseekDeepseekR10528,
DeepseekDeepseekV31Terminus,
DeepseekDeepseekV32,
DeepseekDeepseekV32Exp,
DeepseekDeepseekV4Flash,
DeepseekDeepseekV4FlashFree,
DeepseekDeepseekV4Pro,
EssentialaiRnj1Instruct,
GoogleGemini20Flash001,
GoogleGemini20FlashLite001,
GoogleGemini25Flash,
GoogleGemini25FlashLite,
GoogleGemini25FlashLitePreview092025,
GoogleGemini25Pro,
GoogleGemini25ProPreview,
GoogleGemini25ProPreview0506,
GoogleGemini3FlashPreview,
GoogleGemini31FlashLite,
GoogleGemini31FlashLitePreview,
GoogleGemini31ProPreview,
GoogleGemini31ProPreviewCustomtools,
GoogleGemini35Flash,
GoogleGemma312bIt,
GoogleGemma327bIt,
GoogleGemma426bA4bIt,
GoogleGemma426bA4bItFree,
GoogleGemma431bIt,
GoogleGemma431bItFree,
IbmGraniteGranite418b,
InceptionMercury2,
InclusionaiLing261t,
InclusionaiLing26Flash,
InclusionaiRing261t,
KwaipilotKatCoderProV2,
MetaLlamaLlama3170bInstruct,
MetaLlamaLlama318bInstruct,
MetaLlamaLlama3370bInstruct,
MetaLlamaLlama3370bInstructFree,
MetaLlamaLlama4Scout,
MinimaxMinimaxM1,
MinimaxMinimaxM2,
MinimaxMinimaxM21,
MinimaxMinimaxM25,
MinimaxMinimaxM25Free,
MinimaxMinimaxM27,
MistralaiCodestral2508,
MistralaiDevstral2512,
MistralaiDevstralMedium,
MistralaiDevstralSmall,
MistralaiMinistral14b2512,
MistralaiMinistral3b2512,
MistralaiMinistral8b2512,
MistralaiMistralLarge,
MistralaiMistralLarge2407,
MistralaiMistralLarge2411,
MistralaiMistralLarge2512,
MistralaiMistralMedium3,
MistralaiMistralMedium35,
MistralaiMistralMedium31,
MistralaiMistralNemo,
MistralaiMistralSaba,
MistralaiMistralSmall2603,
MistralaiMistralSmall3224bInstruct,
MistralaiMixtral8x22bInstruct,
MistralaiPixtralLarge2411,
MistralaiVoxtralSmall24b2507,
MoonshotaiKimiK2,
MoonshotaiKimiK20905,
MoonshotaiKimiK2Thinking,
MoonshotaiKimiK25,
MoonshotaiKimiK26,
NexAgiDeepseekV31NexN1,
NvidiaLlama33NemotronSuper49bV15,
NvidiaNemotron3Nano30bA3b,
NvidiaNemotron3Nano30bA3bFree,
NvidiaNemotron3NanoOmni30bA3bReasoningFree,
NvidiaNemotron3Super120bA12b,
NvidiaNemotron3Super120bA12bFree,
NvidiaNemotronNano12bV2VlFree,
NvidiaNemotronNano9bV2,
NvidiaNemotronNano9bV2Free,
OpenaiGpt35Turbo,
OpenaiGpt35Turbo0613,
OpenaiGpt35Turbo16k,
OpenaiGpt4,
OpenaiGpt40314,
OpenaiGpt41106Preview,
OpenaiGpt4Turbo,
OpenaiGpt4TurboPreview,
OpenaiGpt41,
OpenaiGpt41Mini,
OpenaiGpt41Nano,
OpenaiGpt4o,
OpenaiGpt4o20240513,
OpenaiGpt4o20240806,
OpenaiGpt4o20241120,
OpenaiGpt4oAudioPreview,
OpenaiGpt4oMini,
OpenaiGpt4oMini20240718,
OpenaiGpt5,
OpenaiGpt5Codex,
OpenaiGpt5Mini,
OpenaiGpt5Nano,
OpenaiGpt5Pro,
OpenaiGpt51,
OpenaiGpt51Chat,
OpenaiGpt51Codex,
OpenaiGpt51CodexMax,
OpenaiGpt51CodexMini,
OpenaiGpt52,
OpenaiGpt52Chat,
OpenaiGpt52Codex,
OpenaiGpt52Pro,
OpenaiGpt53Chat,
OpenaiGpt53Codex,
OpenaiGpt54,
OpenaiGpt54Mini,
OpenaiGpt54Nano,
OpenaiGpt54Pro,
OpenaiGpt55,
OpenaiGpt55Pro,
OpenaiGptAudio,
OpenaiGptAudioMini,
OpenaiGptOss120b,
OpenaiGptOss120bFree,
OpenaiGptOss20b,
OpenaiGptOss20bFree,
OpenaiGptOssSafeguard20b,
OpenaiO1,
OpenaiO3,
OpenaiO3DeepResearch,
OpenaiO3Mini,
OpenaiO3MiniHigh,
OpenaiO3Pro,
OpenaiO4Mini,
OpenaiO4MiniDeepResearch,
OpenaiO4MiniHigh,
OpenrouterAuto,
OpenrouterFree,
OpenrouterOwlAlpha,
PoolsideLagunaM1Free,
PoolsideLagunaXs2Free,
PrimeIntellectIntellect3,
QwenQwen2572bInstruct,
QwenQwen257bInstruct,
QwenQwenPlus,
QwenQwenPlus20250728,
QwenQwenPlus20250728Thinking,
QwenQwen314b,
QwenQwen3235bA22b,
QwenQwen3235bA22b2507,
QwenQwen3235bA22bThinking2507,
QwenQwen330bA3b,
QwenQwen330bA3bInstruct2507,
QwenQwen330bA3bThinking2507,
QwenQwen332b,
QwenQwen38b,
QwenQwen3Coder,
QwenQwen3Coder30bA3bInstruct,
QwenQwen3CoderFlash,
QwenQwen3CoderNext,
QwenQwen3CoderPlus,
QwenQwen3CoderFree,
QwenQwen3Max,
QwenQwen3MaxThinking,
QwenQwen3Next80bA3bInstruct,
QwenQwen3Next80bA3bInstructFree,
QwenQwen3Next80bA3bThinking,
QwenQwen3Vl235bA22bInstruct,
QwenQwen3Vl235bA22bThinking,
QwenQwen3Vl30bA3bInstruct,
QwenQwen3Vl30bA3bThinking,
QwenQwen3Vl32bInstruct,
QwenQwen3Vl8bInstruct,
QwenQwen3Vl8bThinking,
QwenQwen35122bA10b,
QwenQwen3527b,
QwenQwen3535bA3b,
QwenQwen35397bA17b,
QwenQwen359b,
QwenQwen35Flash0223,
QwenQwen35Plus0215,
QwenQwen35Plus20260420,
QwenQwen3627b,
QwenQwen3635bA3b,
QwenQwen36Flash,
QwenQwen36MaxPreview,
QwenQwen36Plus,
RekaaiRekaEdge,
RelaceRelaceSearch,
Sao10kL3Euryale70b,
Sao10kL31Euryale70b,
StepfunStep35Flash,
TencentHy3Preview,
ThedrummerRocinante12b,
ThedrummerUnslopnemo12b,
UpstageSolarPro3,
XAiGrok420,
XAiGrok43,
XiaomiMimoV2Flash,
XiaomiMimoV2Omni,
XiaomiMimoV2Pro,
XiaomiMimoV25,
XiaomiMimoV25Pro,
ZAiGlm432b,
ZAiGlm45,
ZAiGlm45Air,
ZAiGlm45AirFree,
ZAiGlm45v,
ZAiGlm46,
ZAiGlm46v,
ZAiGlm47,
ZAiGlm47Flash,
ZAiGlm5,
ZAiGlm5Turbo,
ZAiGlm51,
ZAiGlm5vTurbo,
}Variants§
Ai21JambaLarge17
AlibabaTongyiDeepresearch30bA3b
AmazonNova2LiteV1
AmazonNovaLiteV1
AmazonNovaMicroV1
AmazonNovaPremierV1
AmazonNovaProV1
AnthropicClaude3Haiku
AnthropicClaude35Haiku
AnthropicClaudeHaiku45
AnthropicClaudeOpus4
AnthropicClaudeOpus41
AnthropicClaudeOpus45
AnthropicClaudeOpus46
AnthropicClaudeOpus46Fast
AnthropicClaudeOpus47
AnthropicClaudeOpus47Fast
AnthropicClaudeSonnet4
AnthropicClaudeSonnet45
AnthropicClaudeSonnet46
ArceeAiTrinityLargePreview
ArceeAiTrinityLargeThinking
ArceeAiTrinityLargeThinkingFree
ArceeAiTrinityMini
ArceeAiVirtuosoLarge
BaiduCobuddyFree
BaiduErnie4521bA3b
BaiduErnie45Vl28bA3b
BytedanceSeedSeed16
BytedanceSeedSeed16Flash
BytedanceSeedSeed20Lite
BytedanceSeedSeed20Mini
CohereCommandR082024
CohereCommandRPlus082024
DeepseekDeepseekChat
DeepseekDeepseekChatV30324
DeepseekDeepseekChatV31
DeepseekDeepseekR1
DeepseekDeepseekR10528
DeepseekDeepseekV31Terminus
DeepseekDeepseekV32
DeepseekDeepseekV32Exp
DeepseekDeepseekV4Flash
DeepseekDeepseekV4FlashFree
DeepseekDeepseekV4Pro
EssentialaiRnj1Instruct
GoogleGemini20Flash001
GoogleGemini20FlashLite001
GoogleGemini25Flash
GoogleGemini25FlashLite
GoogleGemini25FlashLitePreview092025
GoogleGemini25Pro
GoogleGemini25ProPreview
GoogleGemini25ProPreview0506
GoogleGemini3FlashPreview
GoogleGemini31FlashLite
GoogleGemini31FlashLitePreview
GoogleGemini31ProPreview
GoogleGemini31ProPreviewCustomtools
GoogleGemini35Flash
GoogleGemma312bIt
GoogleGemma327bIt
GoogleGemma426bA4bIt
GoogleGemma426bA4bItFree
GoogleGemma431bIt
GoogleGemma431bItFree
IbmGraniteGranite418b
InceptionMercury2
InclusionaiLing261t
InclusionaiLing26Flash
InclusionaiRing261t
KwaipilotKatCoderProV2
MetaLlamaLlama3170bInstruct
MetaLlamaLlama318bInstruct
MetaLlamaLlama3370bInstruct
MetaLlamaLlama3370bInstructFree
MetaLlamaLlama4Scout
MinimaxMinimaxM1
MinimaxMinimaxM2
MinimaxMinimaxM21
MinimaxMinimaxM25
MinimaxMinimaxM25Free
MinimaxMinimaxM27
MistralaiCodestral2508
MistralaiDevstral2512
MistralaiDevstralMedium
MistralaiDevstralSmall
MistralaiMinistral14b2512
MistralaiMinistral3b2512
MistralaiMinistral8b2512
MistralaiMistralLarge
MistralaiMistralLarge2407
MistralaiMistralLarge2411
MistralaiMistralLarge2512
MistralaiMistralMedium3
MistralaiMistralMedium35
MistralaiMistralMedium31
MistralaiMistralNemo
MistralaiMistralSaba
MistralaiMistralSmall2603
MistralaiMistralSmall3224bInstruct
MistralaiMixtral8x22bInstruct
MistralaiPixtralLarge2411
MistralaiVoxtralSmall24b2507
MoonshotaiKimiK2
MoonshotaiKimiK20905
MoonshotaiKimiK2Thinking
MoonshotaiKimiK25
MoonshotaiKimiK26
NexAgiDeepseekV31NexN1
NvidiaLlama33NemotronSuper49bV15
NvidiaNemotron3Nano30bA3b
NvidiaNemotron3Nano30bA3bFree
NvidiaNemotron3NanoOmni30bA3bReasoningFree
NvidiaNemotron3Super120bA12b
NvidiaNemotron3Super120bA12bFree
NvidiaNemotronNano12bV2VlFree
NvidiaNemotronNano9bV2
NvidiaNemotronNano9bV2Free
OpenaiGpt35Turbo
OpenaiGpt35Turbo0613
OpenaiGpt35Turbo16k
OpenaiGpt4
OpenaiGpt40314
OpenaiGpt41106Preview
OpenaiGpt4Turbo
OpenaiGpt4TurboPreview
OpenaiGpt41
OpenaiGpt41Mini
OpenaiGpt41Nano
OpenaiGpt4o
OpenaiGpt4o20240513
OpenaiGpt4o20240806
OpenaiGpt4o20241120
OpenaiGpt4oAudioPreview
OpenaiGpt4oMini
OpenaiGpt4oMini20240718
OpenaiGpt5
OpenaiGpt5Codex
OpenaiGpt5Mini
OpenaiGpt5Nano
OpenaiGpt5Pro
OpenaiGpt51
OpenaiGpt51Chat
OpenaiGpt51Codex
OpenaiGpt51CodexMax
OpenaiGpt51CodexMini
OpenaiGpt52
OpenaiGpt52Chat
OpenaiGpt52Codex
OpenaiGpt52Pro
OpenaiGpt53Chat
OpenaiGpt53Codex
OpenaiGpt54
OpenaiGpt54Mini
OpenaiGpt54Nano
OpenaiGpt54Pro
OpenaiGpt55
OpenaiGpt55Pro
OpenaiGptAudio
OpenaiGptAudioMini
OpenaiGptOss120b
OpenaiGptOss120bFree
OpenaiGptOss20b
OpenaiGptOss20bFree
OpenaiGptOssSafeguard20b
OpenaiO1
OpenaiO3
OpenaiO3DeepResearch
OpenaiO3Mini
OpenaiO3MiniHigh
OpenaiO3Pro
OpenaiO4Mini
OpenaiO4MiniDeepResearch
OpenaiO4MiniHigh
OpenrouterAuto
OpenrouterFree
OpenrouterOwlAlpha
PoolsideLagunaM1Free
PoolsideLagunaXs2Free
PrimeIntellectIntellect3
QwenQwen2572bInstruct
QwenQwen257bInstruct
QwenQwenPlus
QwenQwenPlus20250728
QwenQwenPlus20250728Thinking
QwenQwen314b
QwenQwen3235bA22b
QwenQwen3235bA22b2507
QwenQwen3235bA22bThinking2507
QwenQwen330bA3b
QwenQwen330bA3bInstruct2507
QwenQwen330bA3bThinking2507
QwenQwen332b
QwenQwen38b
QwenQwen3Coder
QwenQwen3Coder30bA3bInstruct
QwenQwen3CoderFlash
QwenQwen3CoderNext
QwenQwen3CoderPlus
QwenQwen3CoderFree
QwenQwen3Max
QwenQwen3MaxThinking
QwenQwen3Next80bA3bInstruct
QwenQwen3Next80bA3bInstructFree
QwenQwen3Next80bA3bThinking
QwenQwen3Vl235bA22bInstruct
QwenQwen3Vl235bA22bThinking
QwenQwen3Vl30bA3bInstruct
QwenQwen3Vl30bA3bThinking
QwenQwen3Vl32bInstruct
QwenQwen3Vl8bInstruct
QwenQwen3Vl8bThinking
QwenQwen35122bA10b
QwenQwen3527b
QwenQwen3535bA3b
QwenQwen35397bA17b
QwenQwen359b
QwenQwen35Flash0223
QwenQwen35Plus0215
QwenQwen35Plus20260420
QwenQwen3627b
QwenQwen3635bA3b
QwenQwen36Flash
QwenQwen36MaxPreview
QwenQwen36Plus
RekaaiRekaEdge
RelaceRelaceSearch
Sao10kL3Euryale70b
Sao10kL31Euryale70b
StepfunStep35Flash
TencentHy3Preview
ThedrummerRocinante12b
ThedrummerUnslopnemo12b
UpstageSolarPro3
XAiGrok420
XAiGrok43
XiaomiMimoV2Flash
XiaomiMimoV2Omni
XiaomiMimoV2Pro
XiaomiMimoV25
XiaomiMimoV25Pro
ZAiGlm432b
ZAiGlm45
ZAiGlm45Air
ZAiGlm45AirFree
ZAiGlm45v
ZAiGlm46
ZAiGlm46v
ZAiGlm47
ZAiGlm47Flash
ZAiGlm5
ZAiGlm5Turbo
ZAiGlm51
ZAiGlm5vTurbo
Implementations§
Source§impl OpenRouterModel
impl OpenRouterModel
pub fn reasoning_levels(self) -> &'static [ReasoningEffort]
pub fn supports_reasoning(self) -> bool
pub fn supports_prompt_caching(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 (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 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
Source§fn eq(&self, other: &OpenRouterModel) -> bool
fn eq(&self, other: &OpenRouterModel) -> bool
Tests for
self and other values to be equal, and is used by ==.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.