@@ -27,6 +27,7 @@ const PROVIDER_ALIASES: Record<string, string> = {
2727 "google-antigravity" : "google" ,
2828 "antigravity" : "google" ,
2929 "gemini-antigravity" : "google" ,
30+ "deepseek" : "deepseek" ,
3031 "moonshot" : "moonshot" ,
3132 "zhipu-bigmodel" : "zai" ,
3233 "zhipu-bigmodel-coding" : "zai" ,
@@ -40,7 +41,7 @@ const DATA: Record<string, readonly Row[]> = {
4041 "anthropic" : [ [ "claude-3-5-sonnet-20240620" , 200000 , 8192 , "text,image" , 0 , null , 3 , 15 , 0.3 , 3.75 ] , [ "claude-3-5-sonnet-20241022" , 200000 , 8192 , "text,image" , 0 , null , 3 , 15 , 0.3 , 3.75 ] , [ "claude-3-haiku-20240307" , 200000 , 4096 , "text,image" , 0 , null , 0.25 , 1.25 , 0.03 , 0.3 ] , [ "claude-fable-5" , 1000000 , 128000 , "text,image" , 1 , null , 10 , 50 , 1 , 12.5 ] , [ "claude-haiku-4-5" , 200000 , 64000 , "text,image" , 1 , null , 1 , 5 , 0.1 , 1.25 ] , [ "claude-haiku-4-5-20251001" , 200000 , 64000 , "text,image" , 1 , null , 1 , 5 , 0.1 , 1.25 ] , [ "claude-opus-4-0" , 200000 , 32000 , "text,image" , 1 , null , 15 , 75 , 1.5 , 18.75 ] , [ "claude-opus-4-1" , 200000 , 32000 , "text,image" , 1 , null , 15 , 75 , 1.5 , 18.75 ] , [ "claude-opus-4-1-20250805" , 200000 , 32000 , "text,image" , 1 , null , 15 , 75 , 1.5 , 18.75 ] , [ "claude-opus-4-20250514" , 200000 , 32000 , "text,image" , 1 , null , 15 , 75 , 1.5 , 18.75 ] , [ "claude-opus-4-5" , 200000 , 64000 , "text,image" , 1 , null , 5 , 25 , 0.5 , 6.25 ] , [ "claude-opus-4-5-20251101" , 200000 , 64000 , "text,image" , 1 , null , 5 , 25 , 0.5 , 6.25 ] , [ "claude-opus-4-6" , 1000000 , 128000 , "text,image" , 1 , null , 5 , 25 , 0.5 , 6.25 ] , [ "claude-opus-4-6[1m]" , 1000000 , 128000 , "text,image" , 1 , "claude-opus-4-6" , 5 , 25 , 0.5 , 6.25 ] , [ "claude-opus-4-7" , 1000000 , 128000 , "text,image" , 1 , null , 5 , 25 , 0.5 , 6.25 ] , [ "claude-opus-4-7[1m]" , 1000000 , 128000 , "text,image" , 1 , "claude-opus-4-7" , 5 , 25 , 0.5 , 6.25 ] , [ "claude-opus-4-8" , 1000000 , 128000 , "text,image" , 1 , null , 5 , 25 , 0.5 , 6.25 ] , [ "claude-opus-4-8[1m]" , 1000000 , 128000 , "text,image" , 1 , "claude-opus-4-8" , 5 , 25 , 0.5 , 6.25 ] , [ "claude-opus-5" , 1000000 , 128000 , "text,image" , 1 , null , 5 , 25 , 0.5 , 6.25 ] , [ "claude-sonnet-4-0" , 200000 , 64000 , "text,image" , 1 , null , 3 , 15 , 0.3 , 3.75 ] , [ "claude-sonnet-4-20250514" , 200000 , 64000 , "text,image" , 1 , null , 3 , 15 , 0.3 , 3.75 ] , [ "claude-sonnet-4-5" , 1000000 , 64000 , "text,image" , 1 , null , 3 , 15 , 0.3 , 3.75 ] , [ "claude-sonnet-4-5-20250929" , 1000000 , 64000 , "text,image" , 1 , null , 3 , 15 , 0.3 , 3.75 ] , [ "claude-sonnet-4-6" , 1000000 , 128000 , "text,image" , 1 , null , 3 , 15 , 0.3 , 3.75 ] , [ "claude-sonnet-4-6[1m]" , 1000000 , 64000 , "text,image" , 1 , "claude-sonnet-4-6" , 3 , 15 , 0.3 , 3.75 ] , [ "claude-sonnet-5" , 1000000 , 128000 , "text,image" , 1 , null , 2 , 10 , 0.2 , 2.5 ] ] ,
4142 "azure-openai" : [ [ "gpt-4.1" , 1047576 , 32768 , "text,image" , 0 , null , 2 , 8 , 0.5 , 0 ] , [ "gpt-4o" , 128000 , 16384 , "text,image" , 0 , null , 2.5 , 10 , 1.25 , 0 ] , [ "gpt-4o-mini" , 128000 , 16384 , "text,image" , 0 , null , 0.15 , 0.6 , 0.075 , 0 ] , [ "o3" , 200000 , 100000 , "text,image" , 1 , null , 2 , 8 , 0.5 , 0 ] , [ "o3-mini" , 200000 , 100000 , "text" , 1 , null , 1.1 , 4.4 , 0.55 , 0 ] ] ,
4243 "cerebras" : [ [ "gemma-4-31b" , 131072 , 40960 , "text,image" , 1 , null , 0.99 , 1.49 , 0 , 0 ] , [ "gpt-oss-120b" , 131072 , 40960 , "text" , 1 , null , 0.35 , 0.75 , 0 , 0 ] , [ "llama3.1-8b" , 32000 , 8000 , "text" , 0 , null , 0.1 , 0.1 , 0 , 0 ] , [ "qwen-3-235b-a22b-instruct-2507" , 131000 , 32000 , "text" , 0 , null , 0.6 , 1.2 , 0 , 0 ] , [ "qwen-3-coder-480b" , 131072 , 32768 , "text" , 0 , null , 0 , 0 , 0 , 0 ] , [ "zai-glm-4.6" , 131072 , 32768 , "text" , 0 , null , 0 , 0 , 0 , 0 ] , [ "zai-glm-4.7" , 131072 , 40960 , "text" , 1 , null , 2.25 , 2.75 , 2.25 , 0 ] ] ,
43- "deepseek" : [ [ "deepseek-v4-flash" , 1000000 , 384000 , "text" , 1 , null , 0.14 , 0.28 , 0.0028 , 0 ] , [ "deepseek-v4-pro" , 1000000 , 384000 , "text" , 1 , null , 0.435 , 0.87 , 0.003625 , 0 ] ] ,
44+ "deepseek" : [ [ "deepseek-v4-flash" , 1048576 , 384000 , "text" , 1 , null , 0.14 , 0.28 , 0.0028 , 0 ] , [ "deepseek-v4-pro" , 1048576 , 384000 , "text" , 1 , null , 0.435 , 0.87 , 0.003625 , 0 ] ] ,
4445 "google" : [ [ "deep-research-max-preview-04-2026" , 131072 , 65536 , "text,image" , 1 , null , 2 , 12 , 0.2 , 0 ] , [ "deep-research-preview-04-2026" , 131072 , 65536 , "text,image" , 1 , null , 2 , 12 , 0.2 , 0 ] , [ "gemini-1.5-flash" , 1000000 , 8192 , "text,image" , 0 , null , 0.075 , 0.3 , 0.01875 , 0 ] , [ "gemini-1.5-flash-8b" , 1000000 , 8192 , "text,image" , 0 , null , 0.0375 , 0.15 , 0.01 , 0 ] , [ "gemini-1.5-pro" , 1000000 , 8192 , "text,image" , 0 , null , 1.25 , 5 , 0.3125 , 0 ] , [ "gemini-2.0-flash" , 1048576 , 8192 , "text,image" , 0 , null , 0.1 , 0.4 , 0.025 , 0 ] , [ "gemini-2.0-flash-lite" , 1048576 , 8192 , "text,image" , 0 , null , 0.075 , 0.3 , 0 , 0 ] , [ "gemini-2.5-computer-use-preview-10-2025" , 131072 , 65536 , "text,image" , 1 , null , 1.25 , 10 , 0 , 0 ] , [ "gemini-2.5-flash" , 1048576 , 65536 , "text,image" , 1 , null , 0.3 , 2.5 , 0.03 , 0 ] , [ "gemini-2.5-flash-lite" , 1048576 , 65536 , "text,image" , 1 , null , 0.1 , 0.4 , 0.01 , 0 ] , [ "gemini-2.5-flash-lite-preview-06-17" , 1048576 , 65536 , "text,image" , 1 , null , 0.1 , 0.4 , 0.025 , 0 ] , [ "gemini-2.5-flash-lite-preview-09-2025" , 1048576 , 65536 , "text,image" , 1 , null , 0.1 , 0.4 , 0.025 , 0 ] , [ "gemini-2.5-flash-preview-04-17" , 1048576 , 65536 , "text,image" , 1 , null , 0.15 , 0.6 , 0.0375 , 0 ] , [ "gemini-2.5-flash-preview-05-20" , 1048576 , 65536 , "text,image" , 1 , null , 0.15 , 0.6 , 0.0375 , 0 ] , [ "gemini-2.5-flash-preview-09-2025" , 1048576 , 65536 , "text,image" , 1 , null , 0.3 , 2.5 , 0.075 , 0 ] , [ "gemini-2.5-pro" , 1048576 , 65536 , "text,image" , 1 , null , 1.25 , 10 , 0.125 , 0 ] , [ "gemini-2.5-pro-preview-05-06" , 1048576 , 65536 , "text,image" , 1 , null , 1.25 , 10 , 0.31 , 0 ] , [ "gemini-2.5-pro-preview-06-05" , 1048576 , 65536 , "text,image" , 1 , null , 1.25 , 10 , 0.31 , 0 ] , [ "gemini-3-flash-preview" , 1048576 , 65536 , "text,image" , 1 , null , 0.5 , 3 , 0.05 , 0 ] , [ "gemini-3-pro-preview" , 1048576 , 65536 , "text,image" , 1 , null , 2 , 12 , 0.2 , 0 ] , [ "gemini-3.1-flash-lite" , 1048576 , 65536 , "text,image" , 1 , null , 0.25 , 1.5 , 0.025 , 0 ] , [ "gemini-3.1-flash-lite-image" , 65536 , 65536 , "text,image" , 1 , null , 0.25 , 30 , 0 , 0 ] , [ "gemini-3.1-flash-lite-preview" , 1048576 , 65536 , "text,image" , 1 , null , 0.25 , 1.5 , 0.025 , 0 ] , [ "gemini-3.1-flash-live-preview" , 131072 , 65536 , "text,image" , 1 , null , 0.75 , 4.5 , 0 , 0 ] , [ "gemini-3.1-pro-preview" , 1048576 , 65536 , "text,image" , 1 , null , 2 , 12 , 0.2 , 0 ] , [ "gemini-3.1-pro-preview-customtools" , 1048576 , 65536 , "text,image" , 1 , null , 2 , 12 , 0.2 , 0 ] , [ "gemini-3.5-flash" , 1048576 , 65536 , "text,image" , 1 , null , 1.5 , 9 , 0.15 , 0 ] , [ "gemini-3.5-flash-lite" , 1048576 , 65536 , "text,image" , 1 , null , 0.3 , 2.5 , 0.03 , 0 ] , [ "gemini-3.6-flash" , 1048576 , 65536 , "text,image" , 1 , null , 1.5 , 7.5 , 0.15 , 0 ] , [ "gemini-flash-latest" , 1048576 , 65536 , "text,image" , 1 , null , 1.5 , 9 , 0.15 , 0 ] , [ "gemini-flash-lite-latest" , 1048576 , 65536 , "text,image" , 1 , null , 0.25 , 1.5 , 0.025 , 0 ] , [ "gemini-live-2.5-flash" , 128000 , 8000 , "text,image" , 1 , null , 0.5 , 2 , 0 , 0 ] , [ "gemini-live-2.5-flash-preview-native-audio" , 131072 , 65536 , "text" , 1 , null , 0.5 , 2 , 0 , 0 ] , [ "gemini-robotics-er-1.6-preview" , 131072 , 65536 , "text,image" , 1 , null , 1 , 5 , 0 , 0 ] , [ "gemma-3-27b-it" , 131072 , 8192 , "text,image" , 0 , null , 0 , 0 , 0 , 0 ] , [ "gemma-4-26b" , 256000 , 8192 , "text,image" , 1 , null , 0 , 0 , 0 , 0 ] , [ "gemma-4-26b-a4b-it" , 262144 , 32768 , "text,image" , 1 , null , 0 , 0 , 0 , 0 ] , [ "gemma-4-26b-it" , 256000 , 8192 , "text,image" , 1 , null , 0 , 0 , 0 , 0 ] , [ "gemma-4-31b" , 256000 , 8192 , "text,image" , 1 , null , 0 , 0 , 0 , 0 ] , [ "gemma-4-31b-it" , 262144 , 32768 , "text,image" , 1 , null , 0 , 0 , 0 , 0 ] , [ "gemma-4-E2B-it" , 131072 , 8192 , "text,image" , 1 , null , 0 , 0 , 0 , 0 ] , [ "gemma-4-E4B-it" , 131072 , 8192 , "text,image" , 1 , null , 0 , 0 , 0 , 0 ] ] ,
4546 "minimax" : [ [ "MiniMax-M2" , 196608 , 128000 , "text" , 1 , null , 0.3 , 1.2 , 0 , 0 ] , [ "MiniMax-M2.1" , 204800 , 131072 , "text" , 1 , null , 0.3 , 1.2 , 0 , 0 ] , [ "MiniMax-M2.5" , 204800 , 131072 , "text" , 1 , null , 0.3 , 1.2 , 0.03 , 0.375 ] , [ "MiniMax-M2.5-highspeed" , 204800 , 131072 , "text" , 1 , null , 0.6 , 2.4 , 0.06 , 0.375 ] , [ "MiniMax-M2.5-lightning" , 204800 , 32000 , "text" , 1 , null , 0.3 , 2.4 , 0 , 0 ] , [ "MiniMax-M2.7" , 204800 , 131072 , "text" , 1 , null , 0.3 , 1.2 , 0.06 , 0.375 ] , [ "MiniMax-M2.7-highspeed" , 204800 , 131072 , "text" , 1 , null , 0.6 , 2.4 , 0.06 , 0.375 ] , [ "minimax-m3" , 512000 , 128000 , "text,image" , 1 , null , 0.6 , 2.4 , 0.12 , 0 ] , [ "MiniMax-M3" , 1000000 , 128000 , "text,image,video" , 1 , null , 0.3 , 1.2 , 0.06 , 0 ] ] ,
4647 "mistral" : [ [ "codestral-latest" , 256000 , 4096 , "text" , 0 , null , 0.3 , 0.9 , 0 , 0 ] , [ "devstral-2512" , 262144 , 262144 , "text" , 0 , null , 0.4 , 2 , 0 , 0 ] , [ "devstral-latest" , 262144 , 262144 , "text" , 0 , null , 0.4 , 2 , 0 , 0 ] , [ "devstral-medium-2507" , 128000 , 128000 , "text" , 0 , null , 0.4 , 2 , 0 , 0 ] , [ "devstral-medium-latest" , 262144 , 262144 , "text" , 0 , null , 0.4 , 2 , 0 , 0 ] , [ "devstral-small-2505" , 128000 , 128000 , "text" , 0 , null , 0.1 , 0.3 , 0 , 0 ] , [ "devstral-small-2507" , 128000 , 128000 , "text" , 0 , null , 0.1 , 0.3 , 0 , 0 ] , [ "labs-devstral-small-2512" , 256000 , 256000 , "text,image" , 0 , null , 0 , 0 , 0 , 0 ] , [ "magistral-medium-latest" , 128000 , 16384 , "text" , 1 , null , 2 , 5 , 0 , 0 ] , [ "magistral-small" , 128000 , 128000 , "text" , 1 , null , 0.5 , 1.5 , 0 , 0 ] , [ "ministral-3b-latest" , 128000 , 128000 , "text" , 0 , null , 0.04 , 0.04 , 0 , 0 ] , [ "ministral-8b-latest" , 128000 , 128000 , "text" , 0 , null , 0.1 , 0.1 , 0 , 0 ] , [ "mistral-large-2411" , 131072 , 16384 , "text" , 0 , null , 2 , 6 , 0 , 0 ] , [ "mistral-large-2512" , 262144 , 262144 , "text,image" , 0 , null , 0.5 , 1.5 , 0 , 0 ] , [ "mistral-large-latest" , 262144 , 262144 , "text,image" , 0 , null , 0.5 , 1.5 , 0 , 0 ] , [ "mistral-medium-2505" , 131072 , 131072 , "text,image" , 0 , null , 0.4 , 2 , 0 , 0 ] , [ "mistral-medium-2508" , 262144 , 262144 , "text,image" , 0 , null , 0.4 , 2 , 0 , 0 ] , [ "mistral-medium-2604" , 262144 , 262144 , "text,image" , 1 , null , 1.5 , 7.5 , 0 , 0 ] , [ "mistral-medium-latest" , 262144 , 262144 , "text,image" , 1 , null , 1.5 , 7.5 , 0 , 0 ] , [ "mistral-nemo" , 128000 , 128000 , "text" , 0 , null , 0.15 , 0.15 , 0 , 0 ] , [ "mistral-small-2506" , 128000 , 16384 , "text,image" , 0 , null , 0.1 , 0.3 , 0 , 0 ] , [ "mistral-small-2603" , 256000 , 256000 , "text,image" , 1 , null , 0.15 , 0.6 , 0 , 0 ] , [ "mistral-small-latest" , 256000 , 256000 , "text,image" , 1 , null , 0.15 , 0.6 , 0 , 0 ] , [ "open-mistral-7b" , 8000 , 8000 , "text" , 0 , null , 0.25 , 0.25 , 0 , 0 ] , [ "open-mistral-nemo" , 128000 , 128000 , "text" , 0 , null , 0.15 , 0.15 , 0 , 0 ] , [ "open-mixtral-8x22b" , 64000 , 64000 , "text" , 0 , null , 2 , 6 , 0 , 0 ] , [ "open-mixtral-8x7b" , 32000 , 32000 , "text" , 0 , null , 0.7 , 0.7 , 0 , 0 ] , [ "pixtral-12b" , 128000 , 128000 , "text,image" , 0 , null , 0.15 , 0.15 , 0 , 0 ] , [ "pixtral-large-latest" , 128000 , 128000 , "text,image" , 0 , null , 2 , 6 , 0 , 0 ] ] ,
@@ -54,7 +55,7 @@ const DATA: Record<string, readonly Row[]> = {
5455} ;
5556
5657export function resolveMetadataProvider ( provider : string ) : string | undefined {
57- return PROVIDER_ALIASES [ provider ] ;
58+ return PROVIDER_ALIASES [ provider ] ?? PROVIDER_ALIASES [ provider . toLowerCase ( ) ] ;
5859}
5960
6061export function getModelMetadata ( provider : string , modelId : string ) : ModelMetadata | undefined {
0 commit comments