Skip to content

Commit 8e2be40

Browse files
chore: sync model metadata from OpenRouter
1 parent 9be8fa4 commit 8e2be40

4 files changed

Lines changed: 1445 additions & 1067 deletions

File tree

.changeset/sync-models.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/ai-openrouter': patch
3+
---
4+
5+
Update model metadata from OpenRouter API

packages/ai-openrouter/src/model-meta.ts

Lines changed: 89 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ const _MOONSHOTAI_KIMI_LATEST = {
215215
pricing: {
216216
text: {
217217
input: {
218-
normal: 0.55,
219-
cached: 0.11,
218+
normal: 0.66,
219+
cached: 0.14,
220220
},
221221
output: {
222-
normal: 3.2,
222+
normal: 3.41,
223223
},
224224
},
225225
image: 0,
@@ -1935,10 +1935,11 @@ const DEEPSEEK_DEEPSEEK_V4_FLASH = {
19351935
],
19361936
},
19371937
context_window: 1048576,
1938+
max_output_tokens: 16384,
19381939
pricing: {
19391940
text: {
19401941
input: {
1941-
normal: 0.089,
1942+
normal: 0.09,
19421943
cached: 0.018,
19431944
},
19441945
output: {
@@ -2761,6 +2762,7 @@ const GOOGLE_GEMMA_4_26B_A4B_IT_FREE = {
27612762
output: ['text'],
27622763
supports: [
27632764
'frequencyPenalty',
2765+
'logprobs',
27642766
'maxCompletionTokens',
27652767
'presencePenalty',
27662768
'reasoning',
@@ -2769,6 +2771,7 @@ const GOOGLE_GEMMA_4_26B_A4B_IT_FREE = {
27692771
'stop',
27702772
'temperature',
27712773
'toolChoice',
2774+
'topLogprobs',
27722775
'topP',
27732776
],
27742777
},
@@ -4880,11 +4883,11 @@ const MOONSHOTAI_KIMI_K2_6 = {
48804883
pricing: {
48814884
text: {
48824885
input: {
4883-
normal: 0.55,
4884-
cached: 0.11,
4886+
normal: 0.66,
4887+
cached: 0.14,
48854888
},
48864889
output: {
4887-
normal: 3.2,
4890+
normal: 3.41,
48884891
},
48894892
},
48904893
image: 0,
@@ -5321,15 +5324,14 @@ const NVIDIA_NEMOTRON_3_SUPER_120B_A12B = {
53215324
],
53225325
},
53235326
context_window: 1000000,
5324-
max_output_tokens: 16384,
53255327
pricing: {
53265328
text: {
53275329
input: {
5328-
normal: 0.085,
5330+
normal: 0.08,
53295331
cached: 0,
53305332
},
53315333
output: {
5332-
normal: 0.4,
5334+
normal: 0.45,
53335335
},
53345336
},
53355337
image: 0,
@@ -7130,6 +7132,7 @@ const OPENAI_GPT_OSS_20B_FREE = {
71307132
output: ['text'],
71317133
supports: [
71327134
'frequencyPenalty',
7135+
'logprobs',
71337136
'maxCompletionTokens',
71347137
'presencePenalty',
71357138
'reasoning',
@@ -7138,6 +7141,7 @@ const OPENAI_GPT_OSS_20B_FREE = {
71387141
'stop',
71397142
'temperature',
71407143
'toolChoice',
7144+
'topLogprobs',
71417145
'topP',
71427146
],
71437147
},
@@ -7709,6 +7713,52 @@ const POOLSIDE_LAGUNA_M_1_FREE = {
77097713
image: 0,
77107714
},
77117715
} as const
7716+
const POOLSIDE_LAGUNA_XS_2_1 = {
7717+
id: 'poolside/laguna-xs-2.1',
7718+
name: 'Poolside: Laguna XS 2.1',
7719+
supports: {
7720+
input: ['text'],
7721+
output: ['text'],
7722+
supports: ['maxCompletionTokens', 'reasoning', 'temperature', 'toolChoice'],
7723+
},
7724+
context_window: 262144,
7725+
max_output_tokens: 32768,
7726+
pricing: {
7727+
text: {
7728+
input: {
7729+
normal: 0.06,
7730+
cached: 0.03,
7731+
},
7732+
output: {
7733+
normal: 0.12,
7734+
},
7735+
},
7736+
image: 0,
7737+
},
7738+
} as const
7739+
const POOLSIDE_LAGUNA_XS_2_1_FREE = {
7740+
id: 'poolside/laguna-xs-2.1:free',
7741+
name: 'Poolside: Laguna XS 2.1 (free)',
7742+
supports: {
7743+
input: ['text'],
7744+
output: ['text'],
7745+
supports: ['maxCompletionTokens', 'reasoning', 'temperature', 'toolChoice'],
7746+
},
7747+
context_window: 262144,
7748+
max_output_tokens: 32768,
7749+
pricing: {
7750+
text: {
7751+
input: {
7752+
normal: 0,
7753+
cached: 0,
7754+
},
7755+
output: {
7756+
normal: 0,
7757+
},
7758+
},
7759+
image: 0,
7760+
},
7761+
} as const
77127762
const POOLSIDE_LAGUNA_XS_2 = {
77137763
id: 'poolside/laguna-xs.2',
77147764
name: 'Poolside: Laguna XS.2',
@@ -8801,7 +8851,6 @@ const QWEN_QWEN3_VL_30B_A3B_THINKING = {
88018851
'reasoning',
88028852
'responseFormat',
88038853
'seed',
8804-
'stop',
88058854
'temperature',
88068855
'toolChoice',
88078856
'topLogprobs',
@@ -8882,11 +8931,11 @@ const QWEN_QWEN3_VL_8B_INSTRUCT = {
88828931
pricing: {
88838932
text: {
88848933
input: {
8885-
normal: 0.08,
8934+
normal: 0.117,
88868935
cached: 0,
88878936
},
88888937
output: {
8889-
normal: 0.5,
8938+
normal: 0.455,
88908939
},
88918940
},
88928941
image: 0,
@@ -9238,7 +9287,7 @@ const QWEN_QWEN3_6_27B = {
92389287
text: {
92399288
input: {
92409289
normal: 0.285,
9241-
cached: 0,
9290+
cached: 0.15,
92429291
},
92439292
output: {
92449293
normal: 2.4,
@@ -10640,7 +10689,6 @@ const Z_AI_GLM_5_1 = {
1064010689
'logitBias',
1064110690
'logprobs',
1064210691
'maxCompletionTokens',
10643-
'parallelToolCalls',
1064410692
'presencePenalty',
1064510693
'reasoning',
1064610694
'responseFormat',
@@ -10653,14 +10701,15 @@ const Z_AI_GLM_5_1 = {
1065310701
],
1065410702
},
1065510703
context_window: 202752,
10704+
max_output_tokens: 128000,
1065610705
pricing: {
1065710706
text: {
1065810707
input: {
10659-
normal: 0.975,
10660-
cached: 0,
10708+
normal: 0.966,
10709+
cached: 0.1794,
1066110710
},
1066210711
output: {
10663-
normal: 4.3,
10712+
normal: 3.036,
1066410713
},
1066510714
},
1066610715
image: 0,
@@ -10690,15 +10739,15 @@ const Z_AI_GLM_5_2 = {
1069010739
],
1069110740
},
1069210741
context_window: 1048576,
10693-
max_output_tokens: 32768,
10742+
max_output_tokens: 131072,
1069410743
pricing: {
1069510744
text: {
1069610745
input: {
10697-
normal: 0.93,
10698-
cached: 0.18,
10746+
normal: 0.9086,
10747+
cached: 0.16874,
1069910748
},
1070010749
output: {
10701-
normal: 3,
10750+
normal: 2.8556,
1070210751
},
1070310752
},
1070410753
image: 0,
@@ -11745,6 +11794,7 @@ export type OpenRouterModelOptionsByName = {
1174511794
Pick<
1174611795
OpenRouterBaseOptions,
1174711796
| 'frequencyPenalty'
11797+
| 'logprobs'
1174811798
| 'maxCompletionTokens'
1174911799
| 'presencePenalty'
1175011800
| 'reasoning'
@@ -11753,6 +11803,7 @@ export type OpenRouterModelOptionsByName = {
1175311803
| 'stop'
1175411804
| 'temperature'
1175511805
| 'toolChoice'
11806+
| 'topLogprobs'
1175611807
| 'topP'
1175711808
>
1175811809
[GOOGLE_GEMMA_4_31B_IT.id]: OpenRouterCommonOptions &
@@ -13434,6 +13485,7 @@ export type OpenRouterModelOptionsByName = {
1343413485
Pick<
1343513486
OpenRouterBaseOptions,
1343613487
| 'frequencyPenalty'
13488+
| 'logprobs'
1343713489
| 'maxCompletionTokens'
1343813490
| 'presencePenalty'
1343913491
| 'reasoning'
@@ -13442,6 +13494,7 @@ export type OpenRouterModelOptionsByName = {
1344213494
| 'stop'
1344313495
| 'temperature'
1344413496
| 'toolChoice'
13497+
| 'topLogprobs'
1344513498
| 'topP'
1344613499
>
1344713500
[OPENAI_GPT_OSS_SAFEGUARD_20B.id]: OpenRouterCommonOptions &
@@ -13626,6 +13679,16 @@ export type OpenRouterModelOptionsByName = {
1362613679
OpenRouterBaseOptions,
1362713680
'maxCompletionTokens' | 'reasoning' | 'temperature' | 'toolChoice'
1362813681
>
13682+
[POOLSIDE_LAGUNA_XS_2_1.id]: OpenRouterCommonOptions &
13683+
Pick<
13684+
OpenRouterBaseOptions,
13685+
'maxCompletionTokens' | 'reasoning' | 'temperature' | 'toolChoice'
13686+
>
13687+
[POOLSIDE_LAGUNA_XS_2_1_FREE.id]: OpenRouterCommonOptions &
13688+
Pick<
13689+
OpenRouterBaseOptions,
13690+
'maxCompletionTokens' | 'reasoning' | 'temperature' | 'toolChoice'
13691+
>
1362913692
[POOLSIDE_LAGUNA_XS_2.id]: OpenRouterCommonOptions &
1363013693
Pick<
1363113694
OpenRouterBaseOptions,
@@ -14080,7 +14143,6 @@ export type OpenRouterModelOptionsByName = {
1408014143
| 'reasoning'
1408114144
| 'responseFormat'
1408214145
| 'seed'
14083-
| 'stop'
1408414146
| 'temperature'
1408514147
| 'toolChoice'
1408614148
| 'topLogprobs'
@@ -14831,7 +14893,6 @@ export type OpenRouterModelOptionsByName = {
1483114893
| 'logitBias'
1483214894
| 'logprobs'
1483314895
| 'maxCompletionTokens'
14834-
| 'parallelToolCalls'
1483514896
| 'presencePenalty'
1483614897
| 'reasoning'
1483714898
| 'responseFormat'
@@ -15175,6 +15236,8 @@ export type OpenRouterModelInputModalitiesByName = {
1517515236
[PERPLEXITY_SONAR_REASONING_PRO.id]: ReadonlyArray<'text' | 'image'>
1517615237
[POOLSIDE_LAGUNA_M_1.id]: ReadonlyArray<'text'>
1517715238
[POOLSIDE_LAGUNA_M_1_FREE.id]: ReadonlyArray<'text'>
15239+
[POOLSIDE_LAGUNA_XS_2_1.id]: ReadonlyArray<'text'>
15240+
[POOLSIDE_LAGUNA_XS_2_1_FREE.id]: ReadonlyArray<'text'>
1517815241
[POOLSIDE_LAGUNA_XS_2.id]: ReadonlyArray<'text'>
1517915242
[POOLSIDE_LAGUNA_XS_2_FREE.id]: ReadonlyArray<'text'>
1518015243
[QWEN_QWEN_2_5_72B_INSTRUCT.id]: ReadonlyArray<'text'>
@@ -15512,6 +15575,8 @@ export const OPENROUTER_CHAT_MODELS = [
1551215575
PERPLEXITY_SONAR_REASONING_PRO.id,
1551315576
POOLSIDE_LAGUNA_M_1.id,
1551415577
POOLSIDE_LAGUNA_M_1_FREE.id,
15578+
POOLSIDE_LAGUNA_XS_2_1.id,
15579+
POOLSIDE_LAGUNA_XS_2_1_FREE.id,
1551515580
POOLSIDE_LAGUNA_XS_2.id,
1551615581
POOLSIDE_LAGUNA_XS_2_FREE.id,
1551715582
QWEN_QWEN_2_5_72B_INSTRUCT.id,

scripts/.sync-models-last-run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1782981491
1+
1783331361

0 commit comments

Comments
 (0)