vtcode_config/models/model_id.rs
1use serde::{Deserialize, Serialize};
2
3mod as_str;
4mod capabilities;
5mod collection;
6mod defaults;
7mod description;
8mod display;
9mod format;
10mod openrouter;
11mod parse;
12mod provider;
13mod table;
14
15pub use capabilities::{
16 ModelCatalogEntry, ModelPricing, catalog_provider_keys, model_catalog_entry, supported_models_for_provider,
17};
18
19/// Centralized enum for all supported model identifiers
20#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
21#[derive(Clone, Debug, Default, PartialEq, Eq, Hash, Serialize, Deserialize)]
22pub enum ModelId {
23 // Gemini models
24 /// Gemini 3.6 Flash - Latest flash model with improved capabilities
25 /// Gemini 3.7 Flash - Flash model with 1M context and tunable thinking levels
26 /// Gemini 3.8 Flash - Most intelligent Flash for long-horizon SWE, agents, and enterprise workflows (1M context, 64k output, low/medium/high thinking)
27 Gemini38Flash,
28 /// Gemini 4 Argon - Flagship reasoning model for the hardest coding, agentic, math, and science problems (unified 1M context window, 64K sync output, long decode, low/medium/high thinking)
29 Gemini4Argon,
30 /// Gemini 4 Hydrogen - Fast and efficient model for everyday coding and agentic workflows (unified 1M context window, 64K sync output, long decode, low/medium/high/xhigh thinking)
31 Gemini4Hydrogen,
32 /// Gemini 4 Carbon - Strongest reasoning model for sustained agentic coding, multimodal knowledge work, scientific reasoning, and cybersecurity defense (unified 1M context window, 64K sync output, long decode, low/medium/high thinking)
33 Gemini4Carbon,
34
35 // OpenAI models
36 /// GPT-6 Astra - Most capable model for hardest end-to-end work with complex reasoning, coding, computer use, and research
37 GPT6Astra,
38 /// GPT-6 Sol - Cost-efficient high-end model in the GPT-6 series for demanding professional work
39 GPT6Sol,
40 /// GPT-6.1 Sol - Near-Astra performance for complex coding, computer use, and professional work at a lower cost
41 GPT61Sol,
42 /// GPT-6.1 Terra - Fast, efficient model for visual reasoning, precise computer use, and clear, natural writing
43 GPT61Terra,
44 /// GPT-6 Luna - Fast cost-efficient model in the GPT-6 series for high-volume latency-sensitive workloads
45 GPT6Luna,
46 /// GPT-5.6 Sol - Frontier model for complex professional work in the GPT-5.6 family
47 GPT56Sol,
48 /// GPT-5.6 Terra - GPT-5.6 model that balances intelligence and cost
49 GPT56Terra,
50 /// GPT-5.6 Luna - GPT-5.6 model optimized for cost-sensitive workloads
51 GPT56Luna,
52 /// GPT-OSS 20B - OpenAI's open-source 20B parameter model using harmony
53 OpenAIGptOss20b,
54 /// GPT-OSS 120B - OpenAI's open-source 120B parameter model using harmony
55 OpenAIGptOss120b,
56
57 // Anthropic models
58 /// Claude Sonnet 5 - The best combination of speed and intelligence with adaptive thinking on by default
59 #[default]
60 ClaudeSonnet5,
61 /// Claude Sonnet 5.5 - Latest Sonnet: best speed/intelligence balance, 1M context, 128K output, `between_tools` as the lowest thinking setting, default effort high
62 ClaudeSonnet55,
63 /// Claude Haiku 5.5 - High-volume latency-sensitive work: classification, routing, extraction, subagents; adaptive thinking, 1M context, 128K output, default effort medium
64 ClaudeHaiku55,
65 /// Claude Fable 5 - Anthropic's most capable widely released model for demanding reasoning and long-horizon agentic work
66 ClaudeFable5,
67 /// Claude Fable 5.1 - successor to Fable 5 for demanding reasoning and long-horizon agentic work, 1M context, adaptive thinking always on, cache reads at 1/4 cost
68 ClaudeFable51,
69 /// Claude Fable 5.2 - latest Fable for demanding reasoning and long-horizon agentic work, 1M context, 128K output, adaptive thinking always on, default effort high
70 ClaudeFable52,
71 /// Claude Opus 5 - Anthropic's newest Opus-tier model with 1M context, thinking on by default
72 ClaudeOpus5,
73 /// Claude Opus 5.5 - Opus-tier successor for long-running agentic coding, adaptive thinking always on, 1M context, 128K output, default effort medium
74 ClaudeOpus55,
75 /// GitHub Copilot auto model selection
76 CopilotAuto,
77 /// GitHub Copilot GPT-5.2 Codex
78 CopilotGPT52Codex,
79 /// GitHub Copilot GPT-5.1 Codex Max
80 CopilotGPT51CodexMax,
81 /// GitHub Copilot GPT-5.4
82 CopilotGPT54,
83 /// GitHub Copilot GPT-5.4 Mini
84 CopilotGPT54Mini,
85
86 // DeepSeek models
87 /// DeepSeek V4.1 Flash - Latest flash model with improved reasoning and efficiency
88 DeepSeekFlash,
89
90 // Official Meta AI models
91 /// Meta Muse Spark 1.3 - Official Meta AI flagship Standard-tier reasoning model, tuned for agentic workflows
92 MetaMuseSpark13,
93 /// Meta Muse Spark 1.3 Contributor tier - opt-in variant with Meta's discounted data-contribution terms
94 MetaMuseSpark13Contributor,
95 /// Meta Muse Wonder 1.0 - Frontier coding, long-running agents, and advanced computer use
96 MetaMuseWonder10,
97 /// Meta Muse Wonder Full 1.0 - Most advanced Meta model for critical workflows (Muse Code subscription)
98 MetaMuseWonderFull10,
99 /// Meta Muse Ember 1.0 - Efficient execution model for high-volume sub-agent tasks, tool calls, and routing
100 MetaMuseEmber10,
101
102 // NVIDIA NIM models
103 /// NVIDIA Nemotron 3 Ultra - NVIDIA's flagship agentic reasoning model via NIM
104 NvidiaNemotron3Ultra550bA55b,
105 /// NVIDIA Nemotron 3 Super - Efficient long-context agentic reasoning model via NIM
106 NvidiaNemotron3Super120bA12b,
107 /// NVIDIA Nemotron 3 Nano - Efficient reasoning and tool-use model via NIM
108 NvidiaNemotron3Nano30bA3b,
109
110 // Merge Gateway routes
111 /// Merge Gateway's default route selected by Merge
112 MergeGatewayDefaultRouting,
113 /// Anthropic Claude Opus 5 through Merge Gateway
114 MergeGatewayAnthropicClaudeOpus5,
115 /// Anthropic Claude Opus 5.5 through Merge Gateway
116 MergeGatewayAnthropicClaudeOpus55,
117 /// Anthropic Claude Sonnet 5 through Merge Gateway
118 MergeGatewayAnthropicClaudeSonnet5,
119 /// Anthropic Claude Sonnet 5.5 through Merge Gateway
120 MergeGatewayAnthropicClaudeSonnet55,
121 /// Google Gemini 3.6 Flash through Merge Gateway
122 /// Google Gemini 3.7 Flash through Merge Gateway
123 /// DeepSeek V4.1 Flash through Merge Gateway
124 MergeGatewayDeepseekFlash,
125 /// xAI Grok 4.6 through Merge Gateway
126 MergeGatewayXaiGrok46,
127 /// xAI Grok 4.7 through Merge Gateway
128 MergeGatewayXaiGrok47,
129 /// MiniMax H3 through Merge Gateway
130 MergeGatewayMinimaxH3,
131 /// MiniMax M3.1 Flash through Merge Gateway
132 MergeGatewayMinimaxM31Flash,
133 /// Moonshot Kimi K3 through Merge Gateway
134 MergeGatewayMoonshotKimiK3,
135 /// Moonshot Kimi K3.1 Pro through Merge Gateway
136 MergeGatewayMoonshotKimiK31Pro,
137 /// Thinking Machines Inkling through Merge Gateway
138 MergeGatewayThinkingMachinesInkling,
139 /// Z.AI GLM-5.3 Flash through Merge Gateway
140 MergeGatewayZaiGlm53Flash,
141 /// Z.AI GLM-5.3 FlashX through Merge Gateway
142 MergeGatewayZaiGlm53Flashx,
143 /// OpenAI GPT-5.6 Luna through Merge Gateway
144 MergeGatewayOpenAIGpt56Luna,
145 /// OpenAI GPT-5.6 Sol through Merge Gateway
146 MergeGatewayOpenAIGpt56Sol,
147 /// OpenAI GPT-5.6 Terra through Merge Gateway
148 MergeGatewayOpenAIGpt56Terra,
149 /// Google Gemini 3.8 Flash through Merge Gateway
150 MergeGatewayGoogleGemini38Flash,
151 /// Google Gemini 4 Argon through Merge Gateway
152 MergeGatewayGoogleGemini4Argon,
153 /// Google Gemini 4 Carbon through Merge Gateway
154 MergeGatewayGoogleGemini4Carbon,
155 /// Google Gemini 4 Hydrogen through Merge Gateway
156 MergeGatewayGoogleGemini4Hydrogen,
157 /// Anthropic Claude Haiku 4.5 through Merge Gateway
158 MergeGatewayAnthropicClaudeHaiku4520251001,
159 /// Anthropic Claude Haiku 5.5 through Merge Gateway
160 MergeGatewayAnthropicClaudeHaiku55,
161 /// Anthropic Claude Fable 5.1 through Merge Gateway
162 MergeGatewayAnthropicClaudeFable51,
163 /// Anthropic Claude Fable 5.2 through Merge Gateway
164 MergeGatewayAnthropicClaudeFable52,
165 /// OpenAI GPT-6 Astra through Merge Gateway
166 MergeGatewayOpenAIGpt6Astra,
167 /// OpenAI GPT-6 Sol through Merge Gateway
168 MergeGatewayOpenAIGpt6Sol,
169 /// OpenAI GPT-6.1 Sol through Merge Gateway
170 MergeGatewayOpenAIGpt61Sol,
171 /// OpenAI GPT-6.1 Terra through Merge Gateway
172 MergeGatewayOpenAIGpt61Terra,
173 /// OpenAI GPT-6 Luna through Merge Gateway
174 MergeGatewayOpenAIGpt6Luna,
175 /// Xiaomi MiMo V2.6 Pro through Merge Gateway
176 MergeGatewayXiaomimimoMimoV26Pro,
177 /// Xiaomi MiMo V2.6 Flash through Merge Gateway
178 MergeGatewayXiaomimimoMimoV26Flash,
179 /// Mistral Large 4 through Merge Gateway
180 MergeGatewayMistralLarge4,
181 /// Meta Muse Spark Open (816B/42B) through Merge Gateway
182 MergeGatewayMetaMuseSparkOpen,
183
184 // Mistral AI models
185 /// Mistral Large 3 - State-of-the-art open-weight general-purpose multimodal model
186 MistralLarge3,
187 /// Mistral Large 4 - Open-weight MoE flagship (49B active / 1.05T total) with 1M context (Public Preview)
188 MistralLarge4,
189 // Hugging Face models
190 /// OpenAI GPT-OSS 20B via Hugging Face router
191 HuggingFaceOpenAIGptOss20b,
192 /// OpenAI GPT-OSS 120B via Hugging Face router
193 HuggingFaceOpenAIGptOss120b,
194 /// Z.AI GLM-5.2 via Novita inference provider on Hugging Face router
195 /// Z.AI GLM-5.3 Flash via Together inference provider on Hugging Face router
196 HuggingFaceGlm53FlashTogether,
197 /// Z.AI GLM-5.3 via Together inference provider on Hugging Face router
198 HuggingFaceGlm53Together,
199 /// Kimi K3 via Together on Hugging Face router
200 HuggingFaceKimiK3Together,
201 /// MiniMax M3 via Novita on Hugging Face router
202 HuggingFaceMinimaxM3Novita,
203 /// Meta Muse Spark Open 816B-A42B via Baseten on Hugging Face router
204 HuggingFaceMuseSparkOpenBaseten,
205
206 // StepFun models
207 /// Step 3.7 Flash - StepFun's flagship multimodal reasoning model with tool calling
208 StepFun37Flash,
209 /// Step 5 Preview - StepFun's frontier model for production-scale Agent applications with 1M context
210 StepFun5Preview,
211
212 // Evolink gateway models (namespaced as `evolink/<model>`)
213 /// GPT-5.2 served through the Evolink gateway
214 /// GPT-5.5 served through the Evolink gateway
215 /// Gemini 3.1 Pro served through the Evolink gateway (OpenAI SDK format)
216 EvolinkGemini31Pro,
217 /// Gemini 3.5 Flash served through the Evolink gateway (OpenAI SDK format)
218 /// MiniMax-M3 served through the Evolink gateway (OpenAI Chat Completions format)
219 EvolinkMinimaxM3,
220 /// Claude Haiku 4.5 served through the Evolink gateway (Anthropic Messages API)
221 EvolinkClaudeHaiku45,
222
223 /// GLM-5.3 - Z.ai flagship coding model with frontier long-horizon agentic performance
224 ZaiGlm53,
225 /// GLM-5.3 Flash - Z.ai efficient multimodal model with hybrid sparse+linear attention, 320B total / 18B active, 1M context, native vision
226 ZaiGlm53Flash,
227 /// GLM-5.3 FlashX - Z.ai high-speed Flash variant with faster inference (up to 200 tok/s), 320B total / 18B active, 1M context, native vision
228 ZaiGlm53Flashx,
229
230 // MiMo models
231 /// MiMo V2.6 Pro - Xiaomi's flagship reasoning model with 1M context
232 MiMoV26Pro,
233 /// MiMo V2.6 Flash - Xiaomi's efficient high-volume model with 1M context
234 MiMoV26Flash,
235 /// MiMo V2.6 Pro UltraSpeed - Xiaomi's fastest flagship variant with 1M context
236 MiMoV26ProUltraspeed,
237
238 // Moonshot models
239 /// Kimi K3.1 Pro - Moonshot.ai's 3T-class open-weight flagship post-trained from K3, 1M context
240 MoonshotKimiK31Pro,
241 /// Kimi K3 - Moonshot.ai's 2.8T parameter flagship with Delta Attention, native vision, 1M context
242 MoonshotKimiK3,
243
244 // OpenCode Zen models
245
246 // OpenCode Go models (20 models - https://opencode.ai/docs/go)
247 /// GLM-5.3 - Z.AI flagship for frontier long-horizon coding on OpenCode Go
248 OpenCodeGoGlm53,
249 /// GLM-5.2 - Z.AI flagship model included with OpenCode Go
250 /// GPT-5.6 Luna - OpenAI cost-efficient frontier model on OpenCode Go
251 OpenCodeGoGpt56Luna,
252 /// Kimi K3 - Moonshot flagship 2.8T agentic model on OpenCode Go
253 OpenCodeGoKimiK3,
254 /// MiniMax M3 - Frontier multimodal coding model on OpenCode Go
255 OpenCodeGoMinimaxM3,
256
257 // Qwen models (non-Qwen3 only)
258
259 // Ollama models
260 /// GPT-OSS 20B - Open-weight GPT-OSS 20B model served via Ollama locally
261 OllamaGptOss20b,
262 /// GPT-OSS 20B Cloud - Cloud-hosted GPT-OSS 20B served via Ollama Cloud
263 OllamaGptOss20bCloud,
264 /// GPT-OSS 120B Cloud - Cloud-hosted GPT-OSS 120B served via Ollama Cloud
265 OllamaGptOss120bCloud,
266 /// MiniMax-M3 Cloud - Cloud-hosted MiniMax-M3 model served via Ollama Cloud
267 OllamaMinimaxM3Cloud,
268 /// MiniMax M3.1 Flash Cloud - ultra-efficient multimodal MiniMax M3.1 Flash served via Ollama Cloud
269 OllamaMinimaxM31FlashCloud,
270 /// GLM-5.2 Cloud - Cloud-hosted GLM-5.2 flagship model served via Ollama Cloud
271 /// GLM-5.3 Cloud - Cloud-hosted GLM-5.3 flagship model served via Ollama Cloud
272 OllamaGlm53Cloud,
273 /// GLM-5.3 Flash Cloud - Multimodal GLM-5.3 Flash served via Ollama Cloud
274 OllamaGlm53FlashCloud,
275 /// Mistral Large 4 Cloud - Multimodal Mistral Large 4 served via Ollama Cloud
276 OllamaMistralLarge4Cloud,
277 /// Muse Spark Open Cloud - Multimodal Muse Spark Open served via Ollama Cloud
278 OllamaMuseSparkOpenCloud,
279 /// DeepSeek V4.1 Flash Cloud - Multimodal DeepSeek V4.1 Flash served via Ollama Cloud
280 OllamaDeepSeekV41FlashCloud,
281 /// Kimi K3 Cloud - Moonshot Kimi K3 via Ollama Cloud
282 OllamaKimiK3Cloud,
283 /// Gemma 4 - Google Gemma 4 model served via Ollama
284 OllamaGemma4,
285 /// Laguna XS.2 - Poolside's 33B MoE model (3B activated) for agentic coding via Ollama
286
287 // llama.cpp models
288 /// Gemma 4 26B A4B - Desktop Gemma 4 MoE model served through llama.cpp
289 LlamaCppGemma426bA4b,
290 /// Gemma 4 E4B - Tiny-footprint Gemma 4 model served through llama.cpp
291 LlamaCppGemma4E4b,
292 /// GPT-OSS 20B - OpenAI open-weight model served through llama.cpp
293 LlamaCppGptOss20b,
294
295 // MiniMax models
296 /// MiniMax-M3 - Frontier multimodal coding model with 1M context
297 MinimaxM3,
298 /// MiniMax-M3.1-Flash - Latest ultra-efficient multimodal model via OpenRouter
299 OpenRouterMinimaxM31FlashFree,
300 /// MiniMax-M3.1-Flash - Latest ultra-efficient multimodal model with 1M context and tunable thinking depth
301 MinimaxM31Flash,
302
303 // OpenRouter models
304 /// DeepSeek V4.1 Flash 1017 - Latest flash model via OpenRouter
305 OpenRouterDeepSeekFlash,
306 /// OpenAI gpt-oss-120b - Open-weight 120B reasoning model via OpenRouter
307 OpenRouterOpenAIGptOss120b,
308 /// OpenAI gpt-oss-120b:free - Open-weight 120B reasoning model free tier via OpenRouter
309 OpenRouterOpenAIGptOss120bFree,
310 /// OpenAI gpt-oss-20b - Open-weight 20B deployment via OpenRouter
311 OpenRouterOpenAIGptOss20b,
312 /// OpenAI GPT-6 Astra - OpenAI's flagship model for demanding end-to-end work via OpenRouter
313 OpenRouterOpenAIGpt6Astra,
314 /// GPT-6 Sol - Cost-efficient high-end model in the GPT-6 series via OpenRouter
315 OpenRouterOpenAIGpt6Sol,
316 /// GPT-6 Luna - Fast cost-efficient model in the GPT-6 series via OpenRouter
317 OpenRouterOpenAIGpt6Luna,
318
319 /// Meta Muse Glimmer 30B via OpenRouter
320 OpenRouterMetaMuseGlimmer30b,
321 /// Meta Muse Spark 1.3 via OpenRouter
322 OpenRouterMetaMuseSpark13,
323 /// Meta Muse Spark Open 816B-A42B via OpenRouter
324 OpenRouterMetaMuseSparkOpen,
325 /// Gemini 3.7 Flash - Flash model with 1M context and tunable thinking levels via OpenRouter
326 /// Gemini 3.8 Flash - Most intelligent Flash for long-horizon SWE/agents with 1M context via OpenRouter
327 OpenRouterGoogleGemini38Flash,
328
329 /// Claude Sonnet 5 - Anthropic Claude Sonnet 5 listing
330 OpenRouterAnthropicClaudeSonnet5,
331 /// Mistral Large 3 2512 - Mistral Large 3 2512 model via OpenRouter
332 OpenRouterMistralaiMistralLarge2512,
333 /// DeepSeek V3.1 Nex N1 - Nex AGI DeepSeek V3.1 Nex N1 model via OpenRouter
334 OpenRouterNexAgiDeepseekV31NexN1,
335 /// GLM-5.2 - Z.AI GLM-5.2 flagship model for long-horizon tasks via OpenRouter
336 /// GLM-5.3 Flash - Z.AI efficient multimodal model with hybrid sparse+linear attention via OpenRouter
337 OpenRouterZaiGlm53Flash,
338 /// GLM-5.3 FlashX - Z.AI high-speed Flash variant with faster inference via OpenRouter
339 OpenRouterZaiGlm53Flashx,
340 /// Kimi K3 - Moonshot AI's 2.8T parameter flagship via OpenRouter
341 OpenRouterMoonshotaiKimiK3,
342 /// Grok 4.6 - xAI's flagship reasoning model with reasoning_effort support via OpenRouter
343 OpenRouterXAiGrok46,
344 /// Grok 4.7 - xAI's flagship reasoning model with reasoning_effort support via OpenRouter
345 OpenRouterXAiGrok47,
346 /// MiMo-V2.6-Pro - Xiaomi's flagship agentic model for complex software engineering via OpenRouter
347 OpenRouterXiaomiMimoV26Pro,
348 /// MiMo-V2.6-Flash - Xiaomi's efficient high-volume agentic model via OpenRouter
349 OpenRouterXiaomiMimoV26Flash,
350 /// MiMo-V2.6-Pro-UltraSpeed - Xiaomi's fastest flagship variant via OpenRouter
351 OpenRouterXiaomiMimoV26ProUltraspeed,
352 /// Step 5 Preview - StepFun's flagship agentic model via OpenRouter
353 OpenRouterStepfunStep5Preview,
354
355 // Vercel AI Gateway models (namespaced as `vendor/model` on the gateway)
356 /// Claude Sonnet 5 served through the Vercel AI Gateway
357 VercelAnthropicClaudeSonnet5,
358 /// Claude Opus 5 served through the Vercel AI Gateway
359 VercelAnthropicClaudeOpus5,
360 /// Claude Opus 5.5 served through the Vercel AI Gateway
361 VercelAnthropicClaudeOpus55,
362 /// Claude Haiku 4.5 served through the Vercel AI Gateway
363 VercelAnthropicClaudeHaiku45,
364 /// GPT-5.6 Sol served through the Vercel AI Gateway
365 VercelOpenAiGpt56Sol,
366 /// GPT-6 Astra served through the Vercel AI Gateway
367 VercelOpenAiGpt6Astra,
368 /// GPT-5.6 Luna served through the Vercel AI Gateway
369 VercelOpenAiGpt56Luna,
370 /// GPT-6 Sol served through the Vercel AI Gateway
371 VercelOpenAiGpt6Sol,
372 /// GPT-6 Luna served through the Vercel AI Gateway
373 VercelOpenAiGpt6Luna,
374 /// GPT-5.3 Codex served through the Vercel AI Gateway
375 /// Gemini 3.1 Pro Preview served through the Vercel AI Gateway
376 /// Gemini 3.8 Flash served through the Vercel AI Gateway
377 VercelGoogleGemini38Flash,
378 /// DeepSeek V4.1 Flash served through the Vercel AI Gateway
379 VercelDeepseekFlash,
380 /// Kimi K3 served through the Vercel AI Gateway
381 VercelMoonshotaiKimiK3,
382 /// MiniMax M3 served through the Vercel AI Gateway
383 VercelMinimaxM3,
384 /// Grok 4.7 served through the Vercel AI Gateway
385 VercelSpacexaiGrok47,
386 // xAI models
387 /// Grok 4.6 - xAI's flagship reasoning model with reasoning_effort support (500k context)
388 XaiGrok46,
389 /// Grok 4.7 - xAI's flagship reasoning model with reasoning_effort support (500k context)
390 XaiGrok47,
391
392 /// User-defined model not in the hardcoded catalog.
393 /// Carries the provider key string and model identifier string.
394 Custom(String, String),
395}