@ai-sdk/klingai 4.0.0-beta.4 → 4.0.0-beta.51

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,382 @@
1
1
  # @ai-sdk/klingai
2
2
 
3
+ ## 4.0.0-beta.51
4
+
5
+ ### Patch Changes
6
+
7
+ - b8396f0: trigger initial beta release
8
+ - Updated dependencies [b8396f0]
9
+ - @ai-sdk/provider-utils@5.0.0-beta.49
10
+ - @ai-sdk/provider@4.0.0-beta.19
11
+
12
+ ## 4.0.0-canary.50
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [aeda373]
17
+ - Updated dependencies [375fdd7]
18
+ - Updated dependencies [b4507d5]
19
+ - @ai-sdk/provider-utils@5.0.0-canary.48
20
+
21
+ ## 4.0.0-canary.49
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [bae5e2b]
26
+ - @ai-sdk/provider-utils@5.0.0-canary.47
27
+
28
+ ## 4.0.0-canary.48
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [ce769dd]
33
+ - @ai-sdk/provider@4.0.0-canary.18
34
+ - @ai-sdk/provider-utils@5.0.0-canary.46
35
+
36
+ ## 4.0.0-canary.47
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [ee798eb]
41
+ - Updated dependencies [daf6637]
42
+ - @ai-sdk/provider-utils@5.0.0-canary.45
43
+
44
+ ## 4.0.0-canary.46
45
+
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies [6c93e36]
49
+ - Updated dependencies [f617ac2]
50
+ - @ai-sdk/provider-utils@5.0.0-canary.44
51
+
52
+ ## 4.0.0-canary.45
53
+
54
+ ### Patch Changes
55
+
56
+ - 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
57
+ - Updated dependencies [7fc6bd6]
58
+ - @ai-sdk/provider-utils@5.0.0-canary.43
59
+ - @ai-sdk/provider@4.0.0-canary.17
60
+
61
+ ## 4.0.0-canary.44
62
+
63
+ ### Patch Changes
64
+
65
+ - Updated dependencies [a6617c5]
66
+ - @ai-sdk/provider-utils@5.0.0-canary.42
67
+
68
+ ## 4.0.0-canary.43
69
+
70
+ ### Patch Changes
71
+
72
+ - Updated dependencies [28dfa06]
73
+ - Updated dependencies [e93fa91]
74
+ - @ai-sdk/provider-utils@5.0.0-canary.41
75
+
76
+ ## 4.0.0-canary.42
77
+
78
+ ### Patch Changes
79
+
80
+ - Updated dependencies [a7de9c9]
81
+ - @ai-sdk/provider-utils@5.0.0-canary.40
82
+
83
+ ## 4.0.0-canary.41
84
+
85
+ ### Patch Changes
86
+
87
+ - Updated dependencies [105f95b]
88
+ - @ai-sdk/provider-utils@5.0.0-canary.39
89
+
90
+ ## 4.0.0-canary.40
91
+
92
+ ### Patch Changes
93
+
94
+ - Updated dependencies [ca446f8]
95
+ - @ai-sdk/provider-utils@5.0.0-canary.38
96
+
97
+ ## 4.0.0-canary.39
98
+
99
+ ### Patch Changes
100
+
101
+ - Updated dependencies [d848405]
102
+ - @ai-sdk/provider-utils@5.0.0-canary.37
103
+
104
+ ## 4.0.0-canary.38
105
+
106
+ ### Patch Changes
107
+
108
+ - Updated dependencies [ca39020]
109
+ - @ai-sdk/provider-utils@5.0.0-canary.36
110
+
111
+ ## 4.0.0-canary.37
112
+
113
+ ### Patch Changes
114
+
115
+ - Updated dependencies [f634bac]
116
+ - @ai-sdk/provider-utils@5.0.0-canary.35
117
+
118
+ ## 4.0.0-canary.36
119
+
120
+ ### Patch Changes
121
+
122
+ - Updated dependencies [69254e0]
123
+ - Updated dependencies [3015fc3]
124
+ - @ai-sdk/provider-utils@5.0.0-canary.34
125
+
126
+ ## 4.0.0-canary.35
127
+
128
+ ### Patch Changes
129
+
130
+ - Updated dependencies [2427d88]
131
+ - @ai-sdk/provider-utils@5.0.0-canary.33
132
+
133
+ ## 4.0.0-canary.34
134
+
135
+ ### Patch Changes
136
+
137
+ - Updated dependencies [5463d0d]
138
+ - @ai-sdk/provider-utils@5.0.0-canary.32
139
+ - @ai-sdk/provider@4.0.0-canary.16
140
+
141
+ ## 4.0.0-canary.33
142
+
143
+ ### Patch Changes
144
+
145
+ - 0c4c275: trigger initial canary release
146
+ - Updated dependencies [0c4c275]
147
+ - @ai-sdk/provider-utils@5.0.0-canary.31
148
+ - @ai-sdk/provider@4.0.0-canary.15
149
+
150
+ ## 4.0.0-beta.32
151
+
152
+ ### Major Changes
153
+
154
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
155
+
156
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
157
+
158
+ ### Patch Changes
159
+
160
+ - Updated dependencies [08d2129]
161
+ - @ai-sdk/provider-utils@5.0.0-beta.30
162
+
163
+ ## 4.0.0-beta.31
164
+
165
+ ### Patch Changes
166
+
167
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
168
+ - Updated dependencies [9bd6512]
169
+ - Updated dependencies [258c093]
170
+ - Updated dependencies [b6783da]
171
+ - @ai-sdk/provider-utils@5.0.0-beta.29
172
+ - @ai-sdk/provider@4.0.0-beta.14
173
+
174
+ ## 4.0.0-beta.30
175
+
176
+ ### Patch Changes
177
+
178
+ - 9f0e36c: trigger release for all packages after provenance setup
179
+ - Updated dependencies [9f0e36c]
180
+ - @ai-sdk/provider@4.0.0-beta.13
181
+ - @ai-sdk/provider-utils@5.0.0-beta.28
182
+
183
+ ## 4.0.0-beta.29
184
+
185
+ ### Patch Changes
186
+
187
+ - Updated dependencies [785fe16]
188
+ - Updated dependencies [67df0a0]
189
+ - Updated dependencies [befb78c]
190
+ - Updated dependencies [0458559]
191
+ - Updated dependencies [5852c0a]
192
+ - Updated dependencies [fc92055]
193
+ - @ai-sdk/provider-utils@5.0.0-beta.27
194
+
195
+ ## 4.0.0-beta.28
196
+
197
+ ### Patch Changes
198
+
199
+ - Updated dependencies [2e98477]
200
+ - @ai-sdk/provider-utils@5.0.0-beta.26
201
+
202
+ ## 4.0.0-beta.27
203
+
204
+ ### Patch Changes
205
+
206
+ - Updated dependencies [eea8d98]
207
+ - @ai-sdk/provider-utils@5.0.0-beta.25
208
+
209
+ ## 4.0.0-beta.26
210
+
211
+ ### Patch Changes
212
+
213
+ - Updated dependencies [f807e45]
214
+ - @ai-sdk/provider-utils@5.0.0-beta.24
215
+
216
+ ## 4.0.0-beta.25
217
+
218
+ ### Patch Changes
219
+
220
+ - Updated dependencies [350ea38]
221
+ - @ai-sdk/provider-utils@5.0.0-beta.23
222
+
223
+ ## 4.0.0-beta.24
224
+
225
+ ### Patch Changes
226
+
227
+ - Updated dependencies [083947b]
228
+ - @ai-sdk/provider-utils@5.0.0-beta.22
229
+
230
+ ## 4.0.0-beta.23
231
+
232
+ ### Patch Changes
233
+
234
+ - Updated dependencies [add1126]
235
+ - @ai-sdk/provider-utils@5.0.0-beta.21
236
+
237
+ ## 4.0.0-beta.22
238
+
239
+ ### Patch Changes
240
+
241
+ - Updated dependencies [b3976a2]
242
+ - Updated dependencies [ff5eba1]
243
+ - @ai-sdk/provider-utils@5.0.0-beta.20
244
+ - @ai-sdk/provider@4.0.0-beta.12
245
+
246
+ ## 4.0.0-beta.21
247
+
248
+ ### Major Changes
249
+
250
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
251
+
252
+ ### Patch Changes
253
+
254
+ - Updated dependencies [ef992f8]
255
+ - @ai-sdk/provider@4.0.0-beta.11
256
+ - @ai-sdk/provider-utils@5.0.0-beta.19
257
+
258
+ ## 4.0.0-beta.20
259
+
260
+ ### Patch Changes
261
+
262
+ - Updated dependencies [90e2d8a]
263
+ - @ai-sdk/provider-utils@5.0.0-beta.18
264
+
265
+ ## 4.0.0-beta.19
266
+
267
+ ### Patch Changes
268
+
269
+ - Updated dependencies [3ae1786]
270
+ - @ai-sdk/provider-utils@5.0.0-beta.17
271
+
272
+ ## 4.0.0-beta.18
273
+
274
+ ### Patch Changes
275
+
276
+ - Updated dependencies [176466a]
277
+ - @ai-sdk/provider@4.0.0-beta.10
278
+ - @ai-sdk/provider-utils@5.0.0-beta.16
279
+
280
+ ## 4.0.0-beta.17
281
+
282
+ ### Patch Changes
283
+
284
+ - Updated dependencies [e311194]
285
+ - @ai-sdk/provider@4.0.0-beta.9
286
+ - @ai-sdk/provider-utils@5.0.0-beta.15
287
+
288
+ ## 4.0.0-beta.16
289
+
290
+ ### Patch Changes
291
+
292
+ - Updated dependencies [34bd95d]
293
+ - Updated dependencies [008271d]
294
+ - @ai-sdk/provider@4.0.0-beta.8
295
+ - @ai-sdk/provider-utils@5.0.0-beta.14
296
+
297
+ ## 4.0.0-beta.15
298
+
299
+ ### Patch Changes
300
+
301
+ - Updated dependencies [b0c2869]
302
+ - Updated dependencies [7e26e81]
303
+ - @ai-sdk/provider-utils@5.0.0-beta.13
304
+
305
+ ## 4.0.0-beta.14
306
+
307
+ ### Patch Changes
308
+
309
+ - Updated dependencies [46d1149]
310
+ - @ai-sdk/provider-utils@5.0.0-beta.12
311
+
312
+ ## 4.0.0-beta.13
313
+
314
+ ### Patch Changes
315
+
316
+ - Updated dependencies [6fd51c0]
317
+ - @ai-sdk/provider-utils@5.0.0-beta.11
318
+ - @ai-sdk/provider@4.0.0-beta.7
319
+
320
+ ## 4.0.0-beta.12
321
+
322
+ ### Patch Changes
323
+
324
+ - Updated dependencies [c29a26f]
325
+ - @ai-sdk/provider-utils@5.0.0-beta.10
326
+ - @ai-sdk/provider@4.0.0-beta.6
327
+
328
+ ## 4.0.0-beta.11
329
+
330
+ ### Patch Changes
331
+
332
+ - 38fc777: Add AI Gateway hint to provider READMEs
333
+
334
+ ## 4.0.0-beta.10
335
+
336
+ ### Patch Changes
337
+
338
+ - Updated dependencies [2e17091]
339
+ - @ai-sdk/provider-utils@5.0.0-beta.9
340
+
341
+ ## 4.0.0-beta.9
342
+
343
+ ### Patch Changes
344
+
345
+ - Updated dependencies [986c6fd]
346
+ - Updated dependencies [493295c]
347
+ - @ai-sdk/provider-utils@5.0.0-beta.8
348
+
349
+ ## 4.0.0-beta.8
350
+
351
+ ### Patch Changes
352
+
353
+ - Updated dependencies [1f509d4]
354
+ - @ai-sdk/provider-utils@5.0.0-beta.7
355
+ - @ai-sdk/provider@4.0.0-beta.5
356
+
357
+ ## 4.0.0-beta.7
358
+
359
+ ### Patch Changes
360
+
361
+ - Updated dependencies [3887c70]
362
+ - @ai-sdk/provider-utils@5.0.0-beta.6
363
+ - @ai-sdk/provider@4.0.0-beta.4
364
+
365
+ ## 4.0.0-beta.6
366
+
367
+ ### Patch Changes
368
+
369
+ - Updated dependencies [776b617]
370
+ - @ai-sdk/provider-utils@5.0.0-beta.5
371
+ - @ai-sdk/provider@4.0.0-beta.3
372
+
373
+ ## 4.0.0-beta.5
374
+
375
+ ### Patch Changes
376
+
377
+ - Updated dependencies [61753c3]
378
+ - @ai-sdk/provider-utils@5.0.0-beta.4
379
+
3
380
  ## 4.0.0-beta.4
4
381
 
5
382
  ### Patch Changes
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  The **Kling AI provider** for the [AI SDK](https://ai-sdk.dev/docs) contains video model support for the [Kling AI API](https://app.klingai.com/global/dev/document-api/quickStart/productIntroduction/overview).
4
4
 
5
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access Kling AI (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).
6
+
5
7
  ## Setup
6
8
 
7
9
  The Kling AI provider is available in the `@ai-sdk/klingai` module. You can install it with:
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ProviderV3, Experimental_VideoModelV3 } from '@ai-sdk/provider';
1
+ import { ProviderV4, Experimental_VideoModelV4 } from '@ai-sdk/provider';
2
2
  import { FetchFunction } from '@ai-sdk/provider-utils';
3
3
 
4
4
  type KlingAIVideoModelId = 'kling-v1-t2v' | 'kling-v1.6-t2v' | 'kling-v2-master-t2v' | 'kling-v2.1-master-t2v' | 'kling-v2.5-turbo-t2v' | 'kling-v2.6-t2v' | 'kling-v3.0-t2v' | 'kling-v1-i2v' | 'kling-v1.5-i2v' | 'kling-v1.6-i2v' | 'kling-v2-master-i2v' | 'kling-v2.1-i2v' | 'kling-v2.1-master-i2v' | 'kling-v2.5-turbo-i2v' | 'kling-v2.6-i2v' | 'kling-v3.0-i2v' | 'kling-v2.6-motion-control' | 'kling-v3.0-motion-control' | (string & {});
@@ -28,15 +28,15 @@ interface KlingAIProviderSettings {
28
28
  */
29
29
  fetch?: FetchFunction;
30
30
  }
31
- interface KlingAIProvider extends ProviderV3 {
31
+ interface KlingAIProvider extends ProviderV4 {
32
32
  /**
33
33
  * Creates a model for video generation.
34
34
  */
35
- video(modelId: KlingAIVideoModelId): Experimental_VideoModelV3;
35
+ video(modelId: KlingAIVideoModelId): Experimental_VideoModelV4;
36
36
  /**
37
37
  * Creates a model for video generation.
38
38
  */
39
- videoModel(modelId: KlingAIVideoModelId): Experimental_VideoModelV3;
39
+ videoModel(modelId: KlingAIVideoModelId): Experimental_VideoModelV4;
40
40
  }
41
41
  /**
42
42
  * Create a KlingAI provider instance.
@@ -208,4 +208,6 @@ type KlingAIVideoModelOptions = {
208
208
  [key: string]: unknown;
209
209
  };
210
210
 
211
- export { type KlingAIProvider, type KlingAIProviderSettings, type KlingAIVideoModelId, type KlingAIVideoModelOptions, type KlingAIVideoModelOptions as KlingAIVideoProviderOptions, createKlingAI, klingai };
211
+ declare const VERSION: string;
212
+
213
+ export { type KlingAIProvider, type KlingAIProviderSettings, type KlingAIVideoModelId, type KlingAIVideoModelOptions, type KlingAIVideoModelOptions as KlingAIVideoProviderOptions, VERSION, createKlingAI, klingai };