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