@funkai/models 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/.generated/entries.json +23 -0
  2. package/.generated/req.txt +1 -0
  3. package/.turbo/turbo-build.log +145 -0
  4. package/.turbo/turbo-typecheck.log +4 -0
  5. package/CHANGELOG.md +23 -0
  6. package/README.md +95 -0
  7. package/dist/alibaba-B6q4Ng1R.mjs +957 -0
  8. package/dist/alibaba-B6q4Ng1R.mjs.map +1 -0
  9. package/dist/amazon-bedrock-Cv9AHQBH.mjs +2070 -0
  10. package/dist/amazon-bedrock-Cv9AHQBH.mjs.map +1 -0
  11. package/dist/anthropic-yB7ST97_.mjs +651 -0
  12. package/dist/anthropic-yB7ST97_.mjs.map +1 -0
  13. package/dist/cerebras-COfl7XM-.mjs +95 -0
  14. package/dist/cerebras-COfl7XM-.mjs.map +1 -0
  15. package/dist/cohere-B7TgO0hT.mjs +271 -0
  16. package/dist/cohere-B7TgO0hT.mjs.map +1 -0
  17. package/dist/deepinfra-B0GxUwCG.mjs +636 -0
  18. package/dist/deepinfra-B0GxUwCG.mjs.map +1 -0
  19. package/dist/deepseek-D64ZEsvS.mjs +50 -0
  20. package/dist/deepseek-D64ZEsvS.mjs.map +1 -0
  21. package/dist/fireworks-ai-DJYvdAi_.mjs +304 -0
  22. package/dist/fireworks-ai-DJYvdAi_.mjs.map +1 -0
  23. package/dist/google-BypRl349.mjs +833 -0
  24. package/dist/google-BypRl349.mjs.map +1 -0
  25. package/dist/google-vertex-DbS-zTGD.mjs +730 -0
  26. package/dist/google-vertex-DbS-zTGD.mjs.map +1 -0
  27. package/dist/groq-ei_PerYi.mjs +381 -0
  28. package/dist/groq-ei_PerYi.mjs.map +1 -0
  29. package/dist/huggingface-DaM1EeLP.mjs +456 -0
  30. package/dist/huggingface-DaM1EeLP.mjs.map +1 -0
  31. package/dist/inception-CspEzqNV.mjs +101 -0
  32. package/dist/inception-CspEzqNV.mjs.map +1 -0
  33. package/dist/index.d.mts +30314 -0
  34. package/dist/index.d.mts.map +1 -0
  35. package/dist/index.mjs +271 -0
  36. package/dist/index.mjs.map +1 -0
  37. package/dist/llama-Cf3-koap.mjs +161 -0
  38. package/dist/llama-Cf3-koap.mjs.map +1 -0
  39. package/dist/mistral-BI9MdAO4.mjs +579 -0
  40. package/dist/mistral-BI9MdAO4.mjs.map +1 -0
  41. package/dist/nvidia-COHacuoa.mjs +1625 -0
  42. package/dist/nvidia-COHacuoa.mjs.map +1 -0
  43. package/dist/openai-C0nCfZUq.mjs +1023 -0
  44. package/dist/openai-C0nCfZUq.mjs.map +1 -0
  45. package/dist/openrouter-DSFzxKQb.mjs +4608 -0
  46. package/dist/openrouter-DSFzxKQb.mjs.map +1 -0
  47. package/dist/perplexity-zeZ2WlBU.mjs +96 -0
  48. package/dist/perplexity-zeZ2WlBU.mjs.map +1 -0
  49. package/dist/providers/alibaba.d.mts +1795 -0
  50. package/dist/providers/alibaba.d.mts.map +1 -0
  51. package/dist/providers/alibaba.mjs +39 -0
  52. package/dist/providers/alibaba.mjs.map +1 -0
  53. package/dist/providers/amazon-bedrock.d.mts +3713 -0
  54. package/dist/providers/amazon-bedrock.d.mts.map +1 -0
  55. package/dist/providers/amazon-bedrock.mjs +39 -0
  56. package/dist/providers/amazon-bedrock.mjs.map +1 -0
  57. package/dist/providers/anthropic.d.mts +1109 -0
  58. package/dist/providers/anthropic.d.mts.map +1 -0
  59. package/dist/providers/anthropic.mjs +39 -0
  60. package/dist/providers/anthropic.mjs.map +1 -0
  61. package/dist/providers/cerebras.d.mts +219 -0
  62. package/dist/providers/cerebras.d.mts.map +1 -0
  63. package/dist/providers/cerebras.mjs +39 -0
  64. package/dist/providers/cerebras.mjs.map +1 -0
  65. package/dist/providers/cohere.d.mts +555 -0
  66. package/dist/providers/cohere.d.mts.map +1 -0
  67. package/dist/providers/cohere.mjs +39 -0
  68. package/dist/providers/cohere.mjs.map +1 -0
  69. package/dist/providers/deepinfra.d.mts +1245 -0
  70. package/dist/providers/deepinfra.d.mts.map +1 -0
  71. package/dist/providers/deepinfra.mjs +39 -0
  72. package/dist/providers/deepinfra.mjs.map +1 -0
  73. package/dist/providers/deepseek.d.mts +139 -0
  74. package/dist/providers/deepseek.d.mts.map +1 -0
  75. package/dist/providers/deepseek.mjs +39 -0
  76. package/dist/providers/deepseek.mjs.map +1 -0
  77. package/dist/providers/fireworks-ai.d.mts +611 -0
  78. package/dist/providers/fireworks-ai.d.mts.map +1 -0
  79. package/dist/providers/fireworks-ai.mjs +39 -0
  80. package/dist/providers/fireworks-ai.mjs.map +1 -0
  81. package/dist/providers/google-vertex.d.mts +1227 -0
  82. package/dist/providers/google-vertex.d.mts.map +1 -0
  83. package/dist/providers/google-vertex.mjs +39 -0
  84. package/dist/providers/google-vertex.mjs.map +1 -0
  85. package/dist/providers/google.d.mts +1359 -0
  86. package/dist/providers/google.d.mts.map +1 -0
  87. package/dist/providers/google.mjs +39 -0
  88. package/dist/providers/google.mjs.map +1 -0
  89. package/dist/providers/groq.d.mts +765 -0
  90. package/dist/providers/groq.d.mts.map +1 -0
  91. package/dist/providers/groq.mjs +39 -0
  92. package/dist/providers/groq.mjs.map +1 -0
  93. package/dist/providers/huggingface.d.mts +901 -0
  94. package/dist/providers/huggingface.d.mts.map +1 -0
  95. package/dist/providers/huggingface.mjs +39 -0
  96. package/dist/providers/huggingface.mjs.map +1 -0
  97. package/dist/providers/inception.d.mts +231 -0
  98. package/dist/providers/inception.d.mts.map +1 -0
  99. package/dist/providers/inception.mjs +39 -0
  100. package/dist/providers/inception.mjs.map +1 -0
  101. package/dist/providers/llama.d.mts +345 -0
  102. package/dist/providers/llama.d.mts.map +1 -0
  103. package/dist/providers/llama.mjs +39 -0
  104. package/dist/providers/llama.mjs.map +1 -0
  105. package/dist/providers/mistral.d.mts +1143 -0
  106. package/dist/providers/mistral.d.mts.map +1 -0
  107. package/dist/providers/mistral.mjs +39 -0
  108. package/dist/providers/mistral.mjs.map +1 -0
  109. package/dist/providers/nvidia.d.mts +3117 -0
  110. package/dist/providers/nvidia.d.mts.map +1 -0
  111. package/dist/providers/nvidia.mjs +39 -0
  112. package/dist/providers/nvidia.mjs.map +1 -0
  113. package/dist/providers/openai.d.mts +1963 -0
  114. package/dist/providers/openai.d.mts.map +1 -0
  115. package/dist/providers/openai.mjs +39 -0
  116. package/dist/providers/openai.mjs.map +1 -0
  117. package/dist/providers/openrouter.d.mts +8531 -0
  118. package/dist/providers/openrouter.d.mts.map +1 -0
  119. package/dist/providers/openrouter.mjs +39 -0
  120. package/dist/providers/openrouter.mjs.map +1 -0
  121. package/dist/providers/perplexity.d.mts +221 -0
  122. package/dist/providers/perplexity.d.mts.map +1 -0
  123. package/dist/providers/perplexity.mjs +39 -0
  124. package/dist/providers/perplexity.mjs.map +1 -0
  125. package/dist/providers/togetherai.d.mts +767 -0
  126. package/dist/providers/togetherai.d.mts.map +1 -0
  127. package/dist/providers/togetherai.mjs +39 -0
  128. package/dist/providers/togetherai.mjs.map +1 -0
  129. package/dist/providers/xai.d.mts +1161 -0
  130. package/dist/providers/xai.d.mts.map +1 -0
  131. package/dist/providers/xai.mjs +39 -0
  132. package/dist/providers/xai.mjs.map +1 -0
  133. package/dist/togetherai-BvcxUfPE.mjs +382 -0
  134. package/dist/togetherai-BvcxUfPE.mjs.map +1 -0
  135. package/dist/types-DjdaZckF.d.mts +71 -0
  136. package/dist/types-DjdaZckF.d.mts.map +1 -0
  137. package/dist/xai-fSuAkQJo.mjs +587 -0
  138. package/dist/xai-fSuAkQJo.mjs.map +1 -0
  139. package/docs/catalog/filtering.md +102 -0
  140. package/docs/catalog/overview.md +168 -0
  141. package/docs/catalog/providers.md +73 -0
  142. package/docs/cost/overview.md +125 -0
  143. package/docs/guides/filter-models.md +113 -0
  144. package/docs/guides/setup-resolver.md +106 -0
  145. package/docs/guides/track-costs.md +133 -0
  146. package/docs/overview.md +139 -0
  147. package/docs/provider/configuration.md +100 -0
  148. package/docs/provider/openrouter.md +105 -0
  149. package/docs/provider/overview.md +131 -0
  150. package/docs/troubleshooting.md +100 -0
  151. package/package.json +142 -0
  152. package/providers.json +39 -0
  153. package/scripts/generate-models.ts +392 -0
  154. package/src/catalog/index.test.ts +124 -0
  155. package/src/catalog/index.ts +65 -0
  156. package/src/catalog/providers/alibaba.ts +468 -0
  157. package/src/catalog/providers/amazon-bedrock.ts +941 -0
  158. package/src/catalog/providers/anthropic.ts +270 -0
  159. package/src/catalog/providers/cerebras.ts +61 -0
  160. package/src/catalog/providers/cohere.ts +149 -0
  161. package/src/catalog/providers/deepinfra.ts +325 -0
  162. package/src/catalog/providers/deepseek.ts +39 -0
  163. package/src/catalog/providers/fireworks-ai.ts +160 -0
  164. package/src/catalog/providers/google-vertex.ts +314 -0
  165. package/src/catalog/providers/google.ts +347 -0
  166. package/src/catalog/providers/groq.ts +204 -0
  167. package/src/catalog/providers/huggingface.ts +237 -0
  168. package/src/catalog/providers/inception.ts +61 -0
  169. package/src/catalog/providers/index.ts +59 -0
  170. package/src/catalog/providers/llama.ts +94 -0
  171. package/src/catalog/providers/mistral.ts +303 -0
  172. package/src/catalog/providers/nvidia.ts +820 -0
  173. package/src/catalog/providers/openai.ts +501 -0
  174. package/src/catalog/providers/openrouter.ts +2201 -0
  175. package/src/catalog/providers/perplexity.ts +61 -0
  176. package/src/catalog/providers/togetherai.ts +204 -0
  177. package/src/catalog/providers/xai.ts +292 -0
  178. package/src/catalog/types.ts +86 -0
  179. package/src/cost/calculate.test.ts +157 -0
  180. package/src/cost/calculate.ts +43 -0
  181. package/src/cost/index.ts +2 -0
  182. package/src/cost/types.ts +25 -0
  183. package/src/index.ts +25 -0
  184. package/src/provider/index.ts +9 -0
  185. package/src/provider/openrouter.test.ts +125 -0
  186. package/src/provider/openrouter.ts +110 -0
  187. package/src/provider/resolver.test.ts +138 -0
  188. package/src/provider/resolver.ts +125 -0
  189. package/src/provider/types.ts +39 -0
  190. package/src/providers/alibaba.ts +65 -0
  191. package/src/providers/amazon-bedrock.ts +67 -0
  192. package/src/providers/anthropic.ts +65 -0
  193. package/src/providers/cerebras.ts +65 -0
  194. package/src/providers/cohere.ts +65 -0
  195. package/src/providers/deepinfra.ts +65 -0
  196. package/src/providers/deepseek.ts +65 -0
  197. package/src/providers/fireworks-ai.ts +65 -0
  198. package/src/providers/google-vertex.ts +67 -0
  199. package/src/providers/google.ts +65 -0
  200. package/src/providers/groq.ts +65 -0
  201. package/src/providers/huggingface.ts +67 -0
  202. package/src/providers/inception.ts +65 -0
  203. package/src/providers/llama.ts +65 -0
  204. package/src/providers/mistral.ts +65 -0
  205. package/src/providers/nvidia.ts +65 -0
  206. package/src/providers/openai.ts +65 -0
  207. package/src/providers/openrouter.ts +67 -0
  208. package/src/providers/perplexity.ts +67 -0
  209. package/src/providers/togetherai.ts +65 -0
  210. package/src/providers/xai.ts +65 -0
  211. package/tsconfig.json +25 -0
  212. package/tsdown.config.ts +23 -0
  213. package/vitest.config.ts +29 -0
@@ -0,0 +1,314 @@
1
+ // ──────────────────────────────────────────────────────────────
2
+ // ███████╗██╗ ██╗███╗ ██╗██╗ ██╗ █████╗ ██╗
3
+ // ██╔════╝██║ ██║████╗ ██║██║ ██╔╝██╔══██╗██║
4
+ // █████╗ ██║ ██║██╔██╗ ██║█████╔╝ ███████║██║
5
+ // ██╔══╝ ██║ ██║██║╚██╗██║██╔═██╗ ██╔══██║██║
6
+ // ██║ ╚██████╔╝██║ ╚████║██║ ██╗██║ ██║██║
7
+ // ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝
8
+ //
9
+ // AUTO-GENERATED — DO NOT EDIT
10
+ // Source: https://models.dev
11
+ // Update: pnpm --filter=@funkai/models generate:models
12
+ // ──────────────────────────────────────────────────────────────
13
+
14
+ import type { ModelDefinition } from "../types.js";
15
+
16
+ export const GOOGLE_VERTEX_MODELS = [
17
+ {
18
+ id: "gemini-embedding-001",
19
+ name: "Gemini Embedding 001",
20
+ provider: "google-vertex",
21
+ family: "gemini",
22
+ pricing: { input: 1.5e-7, output: 0 },
23
+ contextWindow: 2048,
24
+ maxOutput: 3072,
25
+ modalities: { input: ["text"], output: ["text"] },
26
+ capabilities: { reasoning: false, toolCall: false, attachment: false, structuredOutput: false },
27
+ },
28
+ {
29
+ id: "gemini-2.5-flash-lite-preview-09-2025",
30
+ name: "Gemini 2.5 Flash Lite Preview 09-25",
31
+ provider: "google-vertex",
32
+ family: "gemini-flash-lite",
33
+ pricing: { input: 1e-7, output: 4e-7, cacheRead: 2.5e-8 },
34
+ contextWindow: 1048576,
35
+ maxOutput: 65536,
36
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
37
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
38
+ },
39
+ {
40
+ id: "gemini-3.1-pro-preview-customtools",
41
+ name: "Gemini 3.1 Pro Preview Custom Tools",
42
+ provider: "google-vertex",
43
+ family: "gemini-pro",
44
+ pricing: { input: 0.000002, output: 0.000012, cacheRead: 2e-7 },
45
+ contextWindow: 1048576,
46
+ maxOutput: 65536,
47
+ modalities: { input: ["text", "image", "video", "audio", "pdf"], output: ["text"] },
48
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
49
+ },
50
+ {
51
+ id: "gemini-2.5-pro-preview-06-05",
52
+ name: "Gemini 2.5 Pro Preview 06-05",
53
+ provider: "google-vertex",
54
+ family: "gemini-pro",
55
+ pricing: { input: 0.00000125, output: 0.00001, cacheRead: 3.1e-7 },
56
+ contextWindow: 1048576,
57
+ maxOutput: 65536,
58
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
59
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
60
+ },
61
+ {
62
+ id: "gemini-2.5-flash-preview-04-17",
63
+ name: "Gemini 2.5 Flash Preview 04-17",
64
+ provider: "google-vertex",
65
+ family: "gemini-flash",
66
+ pricing: { input: 1.5e-7, output: 6e-7, cacheRead: 3.75e-8 },
67
+ contextWindow: 1048576,
68
+ maxOutput: 65536,
69
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
70
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
71
+ },
72
+ {
73
+ id: "gemini-2.5-flash-preview-09-2025",
74
+ name: "Gemini 2.5 Flash Preview 09-25",
75
+ provider: "google-vertex",
76
+ family: "gemini-flash",
77
+ pricing: { input: 3e-7, output: 0.0000025, cacheRead: 7.5e-8, cacheWrite: 3.83e-7 },
78
+ contextWindow: 1048576,
79
+ maxOutput: 65536,
80
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
81
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
82
+ },
83
+ {
84
+ id: "gemini-2.5-pro-preview-05-06",
85
+ name: "Gemini 2.5 Pro Preview 05-06",
86
+ provider: "google-vertex",
87
+ family: "gemini-pro",
88
+ pricing: { input: 0.00000125, output: 0.00001, cacheRead: 3.1e-7 },
89
+ contextWindow: 1048576,
90
+ maxOutput: 65536,
91
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
92
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
93
+ },
94
+ {
95
+ id: "gemini-2.5-flash-preview-05-20",
96
+ name: "Gemini 2.5 Flash Preview 05-20",
97
+ provider: "google-vertex",
98
+ family: "gemini-flash",
99
+ pricing: { input: 1.5e-7, output: 6e-7, cacheRead: 3.75e-8 },
100
+ contextWindow: 1048576,
101
+ maxOutput: 65536,
102
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
103
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
104
+ },
105
+ {
106
+ id: "gemini-2.5-flash",
107
+ name: "Gemini 2.5 Flash",
108
+ provider: "google-vertex",
109
+ family: "gemini-flash",
110
+ pricing: { input: 3e-7, output: 0.0000025, cacheRead: 7.5e-8, cacheWrite: 3.83e-7 },
111
+ contextWindow: 1048576,
112
+ maxOutput: 65536,
113
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
114
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
115
+ },
116
+ {
117
+ id: "gemini-3-flash-preview",
118
+ name: "Gemini 3 Flash Preview",
119
+ provider: "google-vertex",
120
+ family: "gemini-flash",
121
+ pricing: { input: 5e-7, output: 0.000003, cacheRead: 5e-8 },
122
+ contextWindow: 1048576,
123
+ maxOutput: 65536,
124
+ modalities: { input: ["text", "image", "video", "audio", "pdf"], output: ["text"] },
125
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
126
+ },
127
+ {
128
+ id: "gemini-2.5-flash-lite",
129
+ name: "Gemini 2.5 Flash Lite",
130
+ provider: "google-vertex",
131
+ family: "gemini-flash-lite",
132
+ pricing: { input: 1e-7, output: 4e-7, cacheRead: 2.5e-8 },
133
+ contextWindow: 1048576,
134
+ maxOutput: 65536,
135
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
136
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
137
+ },
138
+ {
139
+ id: "gemini-3.1-pro-preview",
140
+ name: "Gemini 3.1 Pro Preview",
141
+ provider: "google-vertex",
142
+ family: "gemini-pro",
143
+ pricing: { input: 0.000002, output: 0.000012, cacheRead: 2e-7 },
144
+ contextWindow: 1048576,
145
+ maxOutput: 65536,
146
+ modalities: { input: ["text", "image", "video", "audio", "pdf"], output: ["text"] },
147
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
148
+ },
149
+ {
150
+ id: "gemini-flash-latest",
151
+ name: "Gemini Flash Latest",
152
+ provider: "google-vertex",
153
+ family: "gemini-flash",
154
+ pricing: { input: 3e-7, output: 0.0000025, cacheRead: 7.5e-8, cacheWrite: 3.83e-7 },
155
+ contextWindow: 1048576,
156
+ maxOutput: 65536,
157
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
158
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
159
+ },
160
+ {
161
+ id: "gemini-2.5-flash-lite-preview-06-17",
162
+ name: "Gemini 2.5 Flash Lite Preview 06-17",
163
+ provider: "google-vertex",
164
+ family: "gemini-flash-lite",
165
+ pricing: { input: 1e-7, output: 4e-7, cacheRead: 2.5e-8 },
166
+ contextWindow: 65536,
167
+ maxOutput: 65536,
168
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
169
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
170
+ },
171
+ {
172
+ id: "gemini-3-pro-preview",
173
+ name: "Gemini 3 Pro Preview",
174
+ provider: "google-vertex",
175
+ family: "gemini-pro",
176
+ pricing: { input: 0.000002, output: 0.000012, cacheRead: 2e-7 },
177
+ contextWindow: 1048576,
178
+ maxOutput: 65536,
179
+ modalities: { input: ["text", "image", "video", "audio", "pdf"], output: ["text"] },
180
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
181
+ },
182
+ {
183
+ id: "gemini-2.0-flash-lite",
184
+ name: "Gemini 2.0 Flash Lite",
185
+ provider: "google-vertex",
186
+ family: "gemini-flash-lite",
187
+ pricing: { input: 7.5e-8, output: 3e-7 },
188
+ contextWindow: 1048576,
189
+ maxOutput: 8192,
190
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
191
+ capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
192
+ },
193
+ {
194
+ id: "gemini-flash-lite-latest",
195
+ name: "Gemini Flash-Lite Latest",
196
+ provider: "google-vertex",
197
+ family: "gemini-flash-lite",
198
+ pricing: { input: 1e-7, output: 4e-7, cacheRead: 2.5e-8 },
199
+ contextWindow: 1048576,
200
+ maxOutput: 65536,
201
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
202
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
203
+ },
204
+ {
205
+ id: "gemini-2.5-pro",
206
+ name: "Gemini 2.5 Pro",
207
+ provider: "google-vertex",
208
+ family: "gemini-pro",
209
+ pricing: { input: 0.00000125, output: 0.00001, cacheRead: 3.1e-7 },
210
+ contextWindow: 1048576,
211
+ maxOutput: 65536,
212
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
213
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
214
+ },
215
+ {
216
+ id: "gemini-2.0-flash",
217
+ name: "Gemini 2.0 Flash",
218
+ provider: "google-vertex",
219
+ family: "gemini-flash",
220
+ pricing: { input: 1.5e-7, output: 6e-7, cacheRead: 2.5e-8 },
221
+ contextWindow: 1048576,
222
+ maxOutput: 8192,
223
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
224
+ capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
225
+ },
226
+ {
227
+ id: "zai-org/glm-5-maas",
228
+ name: "GLM-5",
229
+ provider: "google-vertex",
230
+ family: "glm",
231
+ pricing: { input: 0.000001, output: 0.0000032, cacheRead: 1e-7 },
232
+ contextWindow: 202752,
233
+ maxOutput: 131072,
234
+ modalities: { input: ["text"], output: ["text"] },
235
+ capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
236
+ },
237
+ {
238
+ id: "zai-org/glm-4.7-maas",
239
+ name: "GLM-4.7",
240
+ provider: "google-vertex",
241
+ family: "glm",
242
+ pricing: { input: 6e-7, output: 0.0000022 },
243
+ contextWindow: 200000,
244
+ maxOutput: 128000,
245
+ modalities: { input: ["text", "pdf"], output: ["text"] },
246
+ capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: true },
247
+ },
248
+ {
249
+ id: "deepseek-ai/deepseek-v3.1-maas",
250
+ name: "DeepSeek V3.1",
251
+ provider: "google-vertex",
252
+ family: "deepseek",
253
+ pricing: { input: 6e-7, output: 0.0000017 },
254
+ contextWindow: 163840,
255
+ maxOutput: 32768,
256
+ modalities: { input: ["text", "pdf"], output: ["text"] },
257
+ capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: true },
258
+ },
259
+ {
260
+ id: "qwen/qwen3-235b-a22b-instruct-2507-maas",
261
+ name: "Qwen3 235B A22B Instruct",
262
+ provider: "google-vertex",
263
+ family: "qwen",
264
+ pricing: { input: 2.2e-7, output: 8.8e-7 },
265
+ contextWindow: 262144,
266
+ maxOutput: 16384,
267
+ modalities: { input: ["text"], output: ["text"] },
268
+ capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: true },
269
+ },
270
+ {
271
+ id: "meta/llama-4-maverick-17b-128e-instruct-maas",
272
+ name: "Llama 4 Maverick 17B 128E Instruct",
273
+ provider: "google-vertex",
274
+ family: "llama",
275
+ pricing: { input: 3.5e-7, output: 0.00000115 },
276
+ contextWindow: 524288,
277
+ maxOutput: 8192,
278
+ modalities: { input: ["text", "image"], output: ["text"] },
279
+ capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: true },
280
+ },
281
+ {
282
+ id: "meta/llama-3.3-70b-instruct-maas",
283
+ name: "Llama 3.3 70B Instruct",
284
+ provider: "google-vertex",
285
+ family: "llama",
286
+ pricing: { input: 7.2e-7, output: 7.2e-7 },
287
+ contextWindow: 128000,
288
+ maxOutput: 8192,
289
+ modalities: { input: ["text"], output: ["text"] },
290
+ capabilities: { reasoning: false, toolCall: true, attachment: false, structuredOutput: true },
291
+ },
292
+ {
293
+ id: "openai/gpt-oss-20b-maas",
294
+ name: "GPT OSS 20B",
295
+ provider: "google-vertex",
296
+ family: "gpt-oss",
297
+ pricing: { input: 7e-8, output: 2.5e-7 },
298
+ contextWindow: 131072,
299
+ maxOutput: 32768,
300
+ modalities: { input: ["text"], output: ["text"] },
301
+ capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
302
+ },
303
+ {
304
+ id: "openai/gpt-oss-120b-maas",
305
+ name: "GPT OSS 120B",
306
+ provider: "google-vertex",
307
+ family: "gpt-oss",
308
+ pricing: { input: 9e-8, output: 3.6e-7 },
309
+ contextWindow: 131072,
310
+ maxOutput: 32768,
311
+ modalities: { input: ["text"], output: ["text"] },
312
+ capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
313
+ },
314
+ ] as const satisfies readonly ModelDefinition[];
@@ -0,0 +1,347 @@
1
+ // ──────────────────────────────────────────────────────────────
2
+ // ███████╗██╗ ██╗███╗ ██╗██╗ ██╗ █████╗ ██╗
3
+ // ██╔════╝██║ ██║████╗ ██║██║ ██╔╝██╔══██╗██║
4
+ // █████╗ ██║ ██║██╔██╗ ██║█████╔╝ ███████║██║
5
+ // ██╔══╝ ██║ ██║██║╚██╗██║██╔═██╗ ██╔══██║██║
6
+ // ██║ ╚██████╔╝██║ ╚████║██║ ██╗██║ ██║██║
7
+ // ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝
8
+ //
9
+ // AUTO-GENERATED — DO NOT EDIT
10
+ // Source: https://models.dev
11
+ // Update: pnpm --filter=@funkai/models generate:models
12
+ // ──────────────────────────────────────────────────────────────
13
+
14
+ import type { ModelDefinition } from "../types.js";
15
+
16
+ export const GOOGLE_MODELS = [
17
+ {
18
+ id: "gemini-embedding-001",
19
+ name: "Gemini Embedding 001",
20
+ provider: "google",
21
+ family: "gemini",
22
+ pricing: { input: 1.5e-7, output: 0 },
23
+ contextWindow: 2048,
24
+ maxOutput: 3072,
25
+ modalities: { input: ["text"], output: ["text"] },
26
+ capabilities: { reasoning: false, toolCall: false, attachment: false, structuredOutput: false },
27
+ },
28
+ {
29
+ id: "gemini-2.5-flash-lite-preview-09-2025",
30
+ name: "Gemini 2.5 Flash Lite Preview 09-25",
31
+ provider: "google",
32
+ family: "gemini-flash-lite",
33
+ pricing: { input: 1e-7, output: 4e-7, cacheRead: 2.5e-8 },
34
+ contextWindow: 1048576,
35
+ maxOutput: 65536,
36
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
37
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
38
+ },
39
+ {
40
+ id: "gemini-3.1-pro-preview-customtools",
41
+ name: "Gemini 3.1 Pro Preview Custom Tools",
42
+ provider: "google",
43
+ family: "gemini-pro",
44
+ pricing: { input: 0.000002, output: 0.000012, cacheRead: 2e-7 },
45
+ contextWindow: 1048576,
46
+ maxOutput: 65536,
47
+ modalities: { input: ["text", "image", "video", "audio", "pdf"], output: ["text"] },
48
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
49
+ },
50
+ {
51
+ id: "gemini-2.5-pro-preview-06-05",
52
+ name: "Gemini 2.5 Pro Preview 06-05",
53
+ provider: "google",
54
+ family: "gemini-pro",
55
+ pricing: { input: 0.00000125, output: 0.00001, cacheRead: 3.1e-7 },
56
+ contextWindow: 1048576,
57
+ maxOutput: 65536,
58
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
59
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
60
+ },
61
+ {
62
+ id: "gemini-2.5-flash-preview-04-17",
63
+ name: "Gemini 2.5 Flash Preview 04-17",
64
+ provider: "google",
65
+ family: "gemini-flash",
66
+ pricing: { input: 1.5e-7, output: 6e-7, cacheRead: 3.75e-8 },
67
+ contextWindow: 1048576,
68
+ maxOutput: 65536,
69
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
70
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
71
+ },
72
+ {
73
+ id: "gemini-2.5-flash-preview-09-2025",
74
+ name: "Gemini 2.5 Flash Preview 09-25",
75
+ provider: "google",
76
+ family: "gemini-flash",
77
+ pricing: { input: 3e-7, output: 0.0000025, cacheRead: 7.5e-8 },
78
+ contextWindow: 1048576,
79
+ maxOutput: 65536,
80
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
81
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
82
+ },
83
+ {
84
+ id: "gemini-2.5-pro-preview-05-06",
85
+ name: "Gemini 2.5 Pro Preview 05-06",
86
+ provider: "google",
87
+ family: "gemini-pro",
88
+ pricing: { input: 0.00000125, output: 0.00001, cacheRead: 3.1e-7 },
89
+ contextWindow: 1048576,
90
+ maxOutput: 65536,
91
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
92
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
93
+ },
94
+ {
95
+ id: "gemini-2.5-flash-preview-05-20",
96
+ name: "Gemini 2.5 Flash Preview 05-20",
97
+ provider: "google",
98
+ family: "gemini-flash",
99
+ pricing: { input: 1.5e-7, output: 6e-7, cacheRead: 3.75e-8 },
100
+ contextWindow: 1048576,
101
+ maxOutput: 65536,
102
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
103
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
104
+ },
105
+ {
106
+ id: "gemini-2.5-flash",
107
+ name: "Gemini 2.5 Flash",
108
+ provider: "google",
109
+ family: "gemini-flash",
110
+ pricing: { input: 3e-7, output: 0.0000025, cacheRead: 7.5e-8 },
111
+ contextWindow: 1048576,
112
+ maxOutput: 65536,
113
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
114
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
115
+ },
116
+ {
117
+ id: "gemini-3.1-flash-image-preview",
118
+ name: "Gemini 3.1 Flash Image (Preview)",
119
+ provider: "google",
120
+ family: "gemini-flash",
121
+ pricing: { input: 2.5e-7, output: 0.00006 },
122
+ contextWindow: 131072,
123
+ maxOutput: 32768,
124
+ modalities: { input: ["text", "image", "pdf"], output: ["text", "image"] },
125
+ capabilities: { reasoning: true, toolCall: false, attachment: true, structuredOutput: false },
126
+ },
127
+ {
128
+ id: "gemini-3.1-flash-lite-preview",
129
+ name: "Gemini 3.1 Flash Lite Preview",
130
+ provider: "google",
131
+ family: "gemini-flash-lite",
132
+ pricing: { input: 2.5e-7, output: 0.0000015, cacheRead: 2.5e-8, cacheWrite: 0.000001 },
133
+ contextWindow: 1048576,
134
+ maxOutput: 65536,
135
+ modalities: { input: ["text", "image", "video", "audio", "pdf"], output: ["text"] },
136
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
137
+ },
138
+ {
139
+ id: "gemini-live-2.5-flash",
140
+ name: "Gemini Live 2.5 Flash",
141
+ provider: "google",
142
+ family: "gemini-flash",
143
+ pricing: { input: 5e-7, output: 0.000002 },
144
+ contextWindow: 128000,
145
+ maxOutput: 8000,
146
+ modalities: { input: ["text", "image", "audio", "video"], output: ["text", "audio"] },
147
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
148
+ },
149
+ {
150
+ id: "gemini-3-flash-preview",
151
+ name: "Gemini 3 Flash Preview",
152
+ provider: "google",
153
+ family: "gemini-flash",
154
+ pricing: { input: 5e-7, output: 0.000003, cacheRead: 5e-8 },
155
+ contextWindow: 1048576,
156
+ maxOutput: 65536,
157
+ modalities: { input: ["text", "image", "video", "audio", "pdf"], output: ["text"] },
158
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
159
+ },
160
+ {
161
+ id: "gemini-live-2.5-flash-preview-native-audio",
162
+ name: "Gemini Live 2.5 Flash Preview Native Audio",
163
+ provider: "google",
164
+ family: "gemini-flash",
165
+ pricing: { input: 5e-7, output: 0.000002 },
166
+ contextWindow: 131072,
167
+ maxOutput: 65536,
168
+ modalities: { input: ["text", "audio", "video"], output: ["text", "audio"] },
169
+ capabilities: { reasoning: true, toolCall: true, attachment: false, structuredOutput: false },
170
+ },
171
+ {
172
+ id: "gemini-2.5-flash-lite",
173
+ name: "Gemini 2.5 Flash Lite",
174
+ provider: "google",
175
+ family: "gemini-flash-lite",
176
+ pricing: { input: 1e-7, output: 4e-7, cacheRead: 2.5e-8 },
177
+ contextWindow: 1048576,
178
+ maxOutput: 65536,
179
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
180
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
181
+ },
182
+ {
183
+ id: "gemini-2.5-flash-preview-tts",
184
+ name: "Gemini 2.5 Flash Preview TTS",
185
+ provider: "google",
186
+ family: "gemini-flash",
187
+ pricing: { input: 5e-7, output: 0.00001 },
188
+ contextWindow: 8000,
189
+ maxOutput: 16000,
190
+ modalities: { input: ["text"], output: ["audio"] },
191
+ capabilities: { reasoning: false, toolCall: false, attachment: false, structuredOutput: false },
192
+ },
193
+ {
194
+ id: "gemini-3.1-pro-preview",
195
+ name: "Gemini 3.1 Pro Preview",
196
+ provider: "google",
197
+ family: "gemini-pro",
198
+ pricing: { input: 0.000002, output: 0.000012, cacheRead: 2e-7 },
199
+ contextWindow: 1048576,
200
+ maxOutput: 65536,
201
+ modalities: { input: ["text", "image", "video", "audio", "pdf"], output: ["text"] },
202
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
203
+ },
204
+ {
205
+ id: "gemini-flash-latest",
206
+ name: "Gemini Flash Latest",
207
+ provider: "google",
208
+ family: "gemini-flash",
209
+ pricing: { input: 3e-7, output: 0.0000025, cacheRead: 7.5e-8 },
210
+ contextWindow: 1048576,
211
+ maxOutput: 65536,
212
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
213
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
214
+ },
215
+ {
216
+ id: "gemini-2.5-flash-lite-preview-06-17",
217
+ name: "Gemini 2.5 Flash Lite Preview 06-17",
218
+ provider: "google",
219
+ family: "gemini-flash-lite",
220
+ pricing: { input: 1e-7, output: 4e-7, cacheRead: 2.5e-8 },
221
+ contextWindow: 1048576,
222
+ maxOutput: 65536,
223
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
224
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: false },
225
+ },
226
+ {
227
+ id: "gemini-2.5-flash-image",
228
+ name: "Gemini 2.5 Flash Image",
229
+ provider: "google",
230
+ family: "gemini-flash",
231
+ pricing: { input: 3e-7, output: 0.00003, cacheRead: 7.5e-8 },
232
+ contextWindow: 32768,
233
+ maxOutput: 32768,
234
+ modalities: { input: ["text", "image"], output: ["text", "image"] },
235
+ capabilities: { reasoning: true, toolCall: false, attachment: true, structuredOutput: false },
236
+ },
237
+ {
238
+ id: "gemini-2.5-pro-preview-tts",
239
+ name: "Gemini 2.5 Pro Preview TTS",
240
+ provider: "google",
241
+ family: "gemini-flash",
242
+ pricing: { input: 0.000001, output: 0.00002 },
243
+ contextWindow: 8000,
244
+ maxOutput: 16000,
245
+ modalities: { input: ["text"], output: ["audio"] },
246
+ capabilities: { reasoning: false, toolCall: false, attachment: false, structuredOutput: false },
247
+ },
248
+ {
249
+ id: "gemini-2.5-flash-image-preview",
250
+ name: "Gemini 2.5 Flash Image (Preview)",
251
+ provider: "google",
252
+ family: "gemini-flash",
253
+ pricing: { input: 3e-7, output: 0.00003, cacheRead: 7.5e-8 },
254
+ contextWindow: 32768,
255
+ maxOutput: 32768,
256
+ modalities: { input: ["text", "image"], output: ["text", "image"] },
257
+ capabilities: { reasoning: true, toolCall: false, attachment: true, structuredOutput: false },
258
+ },
259
+ {
260
+ id: "gemini-1.5-flash-8b",
261
+ name: "Gemini 1.5 Flash-8B",
262
+ provider: "google",
263
+ family: "gemini-flash",
264
+ pricing: { input: 3.75e-8, output: 1.5e-7, cacheRead: 1e-8 },
265
+ contextWindow: 1000000,
266
+ maxOutput: 8192,
267
+ modalities: { input: ["text", "image", "audio", "video"], output: ["text"] },
268
+ capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
269
+ },
270
+ {
271
+ id: "gemini-3-pro-preview",
272
+ name: "Gemini 3 Pro Preview",
273
+ provider: "google",
274
+ family: "gemini-pro",
275
+ pricing: { input: 0.000002, output: 0.000012, cacheRead: 2e-7 },
276
+ contextWindow: 1000000,
277
+ maxOutput: 64000,
278
+ modalities: { input: ["text", "image", "video", "audio", "pdf"], output: ["text"] },
279
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
280
+ },
281
+ {
282
+ id: "gemini-2.0-flash-lite",
283
+ name: "Gemini 2.0 Flash Lite",
284
+ provider: "google",
285
+ family: "gemini-flash-lite",
286
+ pricing: { input: 7.5e-8, output: 3e-7 },
287
+ contextWindow: 1048576,
288
+ maxOutput: 8192,
289
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
290
+ capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: true },
291
+ },
292
+ {
293
+ id: "gemini-1.5-flash",
294
+ name: "Gemini 1.5 Flash",
295
+ provider: "google",
296
+ family: "gemini-flash",
297
+ pricing: { input: 7.5e-8, output: 3e-7, cacheRead: 1.875e-8 },
298
+ contextWindow: 1000000,
299
+ maxOutput: 8192,
300
+ modalities: { input: ["text", "image", "audio", "video"], output: ["text"] },
301
+ capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
302
+ },
303
+ {
304
+ id: "gemini-flash-lite-latest",
305
+ name: "Gemini Flash-Lite Latest",
306
+ provider: "google",
307
+ family: "gemini-flash-lite",
308
+ pricing: { input: 1e-7, output: 4e-7, cacheRead: 2.5e-8 },
309
+ contextWindow: 1048576,
310
+ maxOutput: 65536,
311
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
312
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
313
+ },
314
+ {
315
+ id: "gemini-2.5-pro",
316
+ name: "Gemini 2.5 Pro",
317
+ provider: "google",
318
+ family: "gemini-pro",
319
+ pricing: { input: 0.00000125, output: 0.00001, cacheRead: 3.1e-7 },
320
+ contextWindow: 1048576,
321
+ maxOutput: 65536,
322
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
323
+ capabilities: { reasoning: true, toolCall: true, attachment: true, structuredOutput: true },
324
+ },
325
+ {
326
+ id: "gemini-2.0-flash",
327
+ name: "Gemini 2.0 Flash",
328
+ provider: "google",
329
+ family: "gemini-flash",
330
+ pricing: { input: 1e-7, output: 4e-7, cacheRead: 2.5e-8 },
331
+ contextWindow: 1048576,
332
+ maxOutput: 8192,
333
+ modalities: { input: ["text", "image", "audio", "video", "pdf"], output: ["text"] },
334
+ capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: true },
335
+ },
336
+ {
337
+ id: "gemini-1.5-pro",
338
+ name: "Gemini 1.5 Pro",
339
+ provider: "google",
340
+ family: "gemini-pro",
341
+ pricing: { input: 0.00000125, output: 0.000005, cacheRead: 3.125e-7 },
342
+ contextWindow: 1000000,
343
+ maxOutput: 8192,
344
+ modalities: { input: ["text", "image", "audio", "video"], output: ["text"] },
345
+ capabilities: { reasoning: false, toolCall: true, attachment: true, structuredOutput: false },
346
+ },
347
+ ] as const satisfies readonly ModelDefinition[];