@ai-sdk/prodia 2.0.0-beta.5 → 2.0.0-beta.53

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,11 +1,407 @@
1
1
  # @ai-sdk/prodia
2
2
 
3
+ ## 2.0.0-beta.53
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
+ ## 2.0.0-canary.52
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
+ ## 2.0.0-canary.51
22
+
23
+ ### Patch Changes
24
+
25
+ - 6e8917f: fix(prodia): validate user-supplied image URLs before fetching (SSRF)
26
+
27
+ The Prodia video model's `resolveVideoFileData` fetched a user-supplied `image` URL directly with `fetch()`, bypassing the SDK's SSRF guard. An attacker who could supply the image URL could make the server request internal endpoints (e.g. cloud metadata) and have the response uploaded to Prodia's API. The URL is now downloaded via `downloadBlob`, which routes through `validateDownloadUrl` and rejects private/internal addresses, matching the pattern used by other providers.
28
+
29
+ - Updated dependencies [bae5e2b]
30
+ - @ai-sdk/provider-utils@5.0.0-canary.47
31
+
32
+ ## 2.0.0-canary.50
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [ce769dd]
37
+ - @ai-sdk/provider@4.0.0-canary.18
38
+ - @ai-sdk/provider-utils@5.0.0-canary.46
39
+
40
+ ## 2.0.0-canary.49
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [ee798eb]
45
+ - Updated dependencies [daf6637]
46
+ - @ai-sdk/provider-utils@5.0.0-canary.45
47
+
48
+ ## 2.0.0-canary.48
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [6c93e36]
53
+ - Updated dependencies [f617ac2]
54
+ - @ai-sdk/provider-utils@5.0.0-canary.44
55
+
56
+ ## 2.0.0-canary.47
57
+
58
+ ### Patch Changes
59
+
60
+ - 7fc6bd6: Raise minimum supported Node.js version to 22. Supported versions: 22, 24, and 26.
61
+ - Updated dependencies [7fc6bd6]
62
+ - @ai-sdk/provider-utils@5.0.0-canary.43
63
+ - @ai-sdk/provider@4.0.0-canary.17
64
+
65
+ ## 2.0.0-canary.46
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [a6617c5]
70
+ - @ai-sdk/provider-utils@5.0.0-canary.42
71
+
72
+ ## 2.0.0-canary.45
73
+
74
+ ### Patch Changes
75
+
76
+ - Updated dependencies [28dfa06]
77
+ - Updated dependencies [e93fa91]
78
+ - @ai-sdk/provider-utils@5.0.0-canary.41
79
+
80
+ ## 2.0.0-canary.44
81
+
82
+ ### Patch Changes
83
+
84
+ - Updated dependencies [a7de9c9]
85
+ - @ai-sdk/provider-utils@5.0.0-canary.40
86
+
87
+ ## 2.0.0-canary.43
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies [105f95b]
92
+ - @ai-sdk/provider-utils@5.0.0-canary.39
93
+
94
+ ## 2.0.0-canary.42
95
+
96
+ ### Patch Changes
97
+
98
+ - Updated dependencies [ca446f8]
99
+ - @ai-sdk/provider-utils@5.0.0-canary.38
100
+
101
+ ## 2.0.0-canary.41
102
+
103
+ ### Patch Changes
104
+
105
+ - Updated dependencies [d848405]
106
+ - @ai-sdk/provider-utils@5.0.0-canary.37
107
+
108
+ ## 2.0.0-canary.40
109
+
110
+ ### Patch Changes
111
+
112
+ - Updated dependencies [ca39020]
113
+ - @ai-sdk/provider-utils@5.0.0-canary.36
114
+
115
+ ## 2.0.0-canary.39
116
+
117
+ ### Patch Changes
118
+
119
+ - Updated dependencies [f634bac]
120
+ - @ai-sdk/provider-utils@5.0.0-canary.35
121
+
122
+ ## 2.0.0-canary.38
123
+
124
+ ### Patch Changes
125
+
126
+ - Updated dependencies [69254e0]
127
+ - Updated dependencies [3015fc3]
128
+ - @ai-sdk/provider-utils@5.0.0-canary.34
129
+
130
+ ## 2.0.0-canary.37
131
+
132
+ ### Patch Changes
133
+
134
+ - Updated dependencies [2427d88]
135
+ - @ai-sdk/provider-utils@5.0.0-canary.33
136
+
137
+ ## 2.0.0-canary.36
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies [5463d0d]
142
+ - @ai-sdk/provider-utils@5.0.0-canary.32
143
+ - @ai-sdk/provider@4.0.0-canary.16
144
+
145
+ ## 2.0.0-canary.35
146
+
147
+ ### Patch Changes
148
+
149
+ - 0c4c275: trigger initial canary release
150
+ - Updated dependencies [0c4c275]
151
+ - @ai-sdk/provider-utils@5.0.0-canary.31
152
+ - @ai-sdk/provider@4.0.0-canary.15
153
+
154
+ ## 2.0.0-beta.34
155
+
156
+ ### Major Changes
157
+
158
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
159
+
160
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
161
+
162
+ ### Patch Changes
163
+
164
+ - Updated dependencies [08d2129]
165
+ - @ai-sdk/provider-utils@5.0.0-beta.30
166
+
167
+ ## 2.0.0-beta.33
168
+
169
+ ### Patch Changes
170
+
171
+ - 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
172
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
173
+ - Updated dependencies [9bd6512]
174
+ - Updated dependencies [258c093]
175
+ - Updated dependencies [b6783da]
176
+ - @ai-sdk/provider-utils@5.0.0-beta.29
177
+ - @ai-sdk/provider@4.0.0-beta.14
178
+
179
+ ## 2.0.0-beta.32
180
+
181
+ ### Patch Changes
182
+
183
+ - 9f0e36c: trigger release for all packages after provenance setup
184
+ - Updated dependencies [9f0e36c]
185
+ - @ai-sdk/provider@4.0.0-beta.13
186
+ - @ai-sdk/provider-utils@5.0.0-beta.28
187
+
188
+ ## 2.0.0-beta.31
189
+
190
+ ### Patch Changes
191
+
192
+ - Updated dependencies [785fe16]
193
+ - Updated dependencies [67df0a0]
194
+ - Updated dependencies [befb78c]
195
+ - Updated dependencies [0458559]
196
+ - Updated dependencies [5852c0a]
197
+ - Updated dependencies [fc92055]
198
+ - @ai-sdk/provider-utils@5.0.0-beta.27
199
+
200
+ ## 2.0.0-beta.30
201
+
202
+ ### Patch Changes
203
+
204
+ - Updated dependencies [2e98477]
205
+ - @ai-sdk/provider-utils@5.0.0-beta.26
206
+
207
+ ## 2.0.0-beta.29
208
+
209
+ ### Patch Changes
210
+
211
+ - Updated dependencies [eea8d98]
212
+ - @ai-sdk/provider-utils@5.0.0-beta.25
213
+
214
+ ## 2.0.0-beta.28
215
+
216
+ ### Patch Changes
217
+
218
+ - Updated dependencies [f807e45]
219
+ - @ai-sdk/provider-utils@5.0.0-beta.24
220
+
221
+ ## 2.0.0-beta.27
222
+
223
+ ### Patch Changes
224
+
225
+ - Updated dependencies [350ea38]
226
+ - @ai-sdk/provider-utils@5.0.0-beta.23
227
+
228
+ ## 2.0.0-beta.26
229
+
230
+ ### Patch Changes
231
+
232
+ - Updated dependencies [083947b]
233
+ - @ai-sdk/provider-utils@5.0.0-beta.22
234
+
235
+ ## 2.0.0-beta.25
236
+
237
+ ### Patch Changes
238
+
239
+ - Updated dependencies [add1126]
240
+ - @ai-sdk/provider-utils@5.0.0-beta.21
241
+
242
+ ## 2.0.0-beta.24
243
+
244
+ ### Patch Changes
245
+
246
+ - b3976a2: Add workflow serialization support to all provider models.
247
+
248
+ **`@ai-sdk/provider-utils`:** New `serializeModel()` helper that extracts only serializable properties from a model instance, filtering out functions and objects containing functions. Third-party provider authors can use this to add workflow support to their own models.
249
+
250
+ **All providers:** `headers` is now optional in provider config types. This is non-breaking — existing code that passes `headers` continues to work. Custom provider implementations that construct model configs manually can now omit `headers`, which is useful when models are deserialized from a workflow step boundary where auth is provided separately.
251
+
252
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
253
+
254
+ - Updated dependencies [b3976a2]
255
+ - Updated dependencies [ff5eba1]
256
+ - @ai-sdk/provider-utils@5.0.0-beta.20
257
+ - @ai-sdk/provider@4.0.0-beta.12
258
+
259
+ ## 2.0.0-beta.23
260
+
261
+ ### Major Changes
262
+
263
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
264
+
265
+ ### Patch Changes
266
+
267
+ - Updated dependencies [ef992f8]
268
+ - @ai-sdk/provider@4.0.0-beta.11
269
+ - @ai-sdk/provider-utils@5.0.0-beta.19
270
+
271
+ ## 2.0.0-beta.22
272
+
273
+ ### Patch Changes
274
+
275
+ - Updated dependencies [90e2d8a]
276
+ - @ai-sdk/provider-utils@5.0.0-beta.18
277
+
278
+ ## 2.0.0-beta.21
279
+
280
+ ### Patch Changes
281
+
282
+ - Updated dependencies [3ae1786]
283
+ - @ai-sdk/provider-utils@5.0.0-beta.17
284
+
285
+ ## 2.0.0-beta.20
286
+
287
+ ### Patch Changes
288
+
289
+ - Updated dependencies [176466a]
290
+ - @ai-sdk/provider@4.0.0-beta.10
291
+ - @ai-sdk/provider-utils@5.0.0-beta.16
292
+
293
+ ## 2.0.0-beta.19
294
+
295
+ ### Patch Changes
296
+
297
+ - Updated dependencies [e311194]
298
+ - @ai-sdk/provider@4.0.0-beta.9
299
+ - @ai-sdk/provider-utils@5.0.0-beta.15
300
+
301
+ ## 2.0.0-beta.18
302
+
303
+ ### Patch Changes
304
+
305
+ - Updated dependencies [34bd95d]
306
+ - Updated dependencies [008271d]
307
+ - @ai-sdk/provider@4.0.0-beta.8
308
+ - @ai-sdk/provider-utils@5.0.0-beta.14
309
+
310
+ ## 2.0.0-beta.17
311
+
312
+ ### Patch Changes
313
+
314
+ - Updated dependencies [b0c2869]
315
+ - Updated dependencies [7e26e81]
316
+ - @ai-sdk/provider-utils@5.0.0-beta.13
317
+
318
+ ## 2.0.0-beta.16
319
+
320
+ ### Patch Changes
321
+
322
+ - Updated dependencies [46d1149]
323
+ - @ai-sdk/provider-utils@5.0.0-beta.12
324
+
325
+ ## 2.0.0-beta.15
326
+
327
+ ### Patch Changes
328
+
329
+ - Updated dependencies [6fd51c0]
330
+ - @ai-sdk/provider-utils@5.0.0-beta.11
331
+ - @ai-sdk/provider@4.0.0-beta.7
332
+
333
+ ## 2.0.0-beta.14
334
+
335
+ ### Patch Changes
336
+
337
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
338
+ - Updated dependencies [c29a26f]
339
+ - @ai-sdk/provider-utils@5.0.0-beta.10
340
+ - @ai-sdk/provider@4.0.0-beta.6
341
+
342
+ ## 2.0.0-beta.13
343
+
344
+ ### Patch Changes
345
+
346
+ - 38fc777: Add AI Gateway hint to provider READMEs
347
+
348
+ ## 2.0.0-beta.12
349
+
350
+ ### Patch Changes
351
+
352
+ - Updated dependencies [2e17091]
353
+ - @ai-sdk/provider-utils@5.0.0-beta.9
354
+
355
+ ## 2.0.0-beta.11
356
+
357
+ ### Patch Changes
358
+
359
+ - Updated dependencies [986c6fd]
360
+ - Updated dependencies [493295c]
361
+ - @ai-sdk/provider-utils@5.0.0-beta.8
362
+
363
+ ## 2.0.0-beta.10
364
+
365
+ ### Patch Changes
366
+
367
+ - Updated dependencies [1f509d4]
368
+ - @ai-sdk/provider-utils@5.0.0-beta.7
369
+ - @ai-sdk/provider@4.0.0-beta.5
370
+
371
+ ## 2.0.0-beta.9
372
+
373
+ ### Patch Changes
374
+
375
+ - 5259a95: chore: add warning for providers that do not support new reasoning parameter
376
+
377
+ ## 2.0.0-beta.8
378
+
379
+ ### Patch Changes
380
+
381
+ - Updated dependencies [3887c70]
382
+ - @ai-sdk/provider-utils@5.0.0-beta.6
383
+ - @ai-sdk/provider@4.0.0-beta.4
384
+
385
+ ## 2.0.0-beta.7
386
+
387
+ ### Patch Changes
388
+
389
+ - Updated dependencies [776b617]
390
+ - @ai-sdk/provider-utils@5.0.0-beta.5
391
+ - @ai-sdk/provider@4.0.0-beta.3
392
+
393
+ ## 2.0.0-beta.6
394
+
395
+ ### Patch Changes
396
+
397
+ - Updated dependencies [61753c3]
398
+ - @ai-sdk/provider-utils@5.0.0-beta.4
399
+
3
400
  ## 2.0.0-beta.5
4
401
 
5
402
  ### Patch Changes
6
403
 
7
404
  - e2bdcd6: feat(provider/prodia): Add LanguageModel and VideoModel support to the Prodia provider.
8
-
9
405
  - **LanguageModel**: Supports Nano Banana (`inference.nano-banana.img2img.v2`) for img2img generation with text+image output via multipart form-data requests. Implements both `doGenerate` and `doStream`.
10
406
  - **VideoModel**: Supports Wan 2.2 Lightning for text-to-video (`inference.wan2-2.lightning.txt2vid.v0`) and image-to-video (`inference.wan2-2.lightning.img2vid.v0`) generation.
11
407
  - Extract shared multipart parsing and error handling infrastructure into `prodia-api.ts`.
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  The **[Prodia provider](https://ai-sdk.dev/providers/ai-sdk-providers/prodia)** for the [AI SDK](https://ai-sdk.dev/docs) adds image model support for the [Prodia API](https://docs.prodia.com/).
4
4
 
5
+ > **Deploying to Vercel?** With Vercel's AI Gateway you can access Prodia (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 Prodia provider is available in the `@ai-sdk/prodia` module. You can install it with
package/dist/index.d.ts CHANGED
@@ -2,11 +2,6 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
2
2
  import { InferSchema, FetchFunction } from '@ai-sdk/provider-utils';
3
3
  import { ProviderV4, LanguageModelV4, ImageModelV4, Experimental_VideoModelV4 } from '@ai-sdk/provider';
4
4
 
5
- /**
6
- * Prodia job types for image generation.
7
- */
8
- type ProdiaImageModelId = 'inference.flux-fast.schnell.txt2img.v2' | 'inference.flux.schnell.txt2img.v2' | (string & {});
9
-
10
5
  declare const prodiaImageModelOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
11
6
  steps?: number | undefined;
12
7
  width?: number | undefined;
@@ -18,9 +13,9 @@ declare const prodiaImageModelOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
18
13
  type ProdiaImageModelOptions = InferSchema<typeof prodiaImageModelOptionsSchema>;
19
14
 
20
15
  /**
21
- * Prodia job types for language model (multimodal img2img).
16
+ * Prodia job types for image generation.
22
17
  */
23
- type ProdiaLanguageModelId = 'inference.nano-banana.img2img.v2' | (string & {});
18
+ type ProdiaImageModelId = 'inference.flux-fast.schnell.txt2img.v2' | 'inference.flux.schnell.txt2img.v2' | (string & {});
24
19
 
25
20
  declare const prodiaLanguageModelOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
26
21
  aspectRatio?: "1:1" | "2:3" | "3:2" | "4:5" | "5:4" | "4:7" | "7:4" | "9:16" | "16:9" | "9:21" | "21:9" | undefined;
@@ -28,15 +23,20 @@ declare const prodiaLanguageModelOptionsSchema: _ai_sdk_provider_utils.LazySchem
28
23
  type ProdiaLanguageModelOptions = InferSchema<typeof prodiaLanguageModelOptionsSchema>;
29
24
 
30
25
  /**
31
- * Prodia job types for video generation.
26
+ * Prodia job types for language model (multimodal img2img).
32
27
  */
33
- type ProdiaVideoModelId = 'inference.wan2-2.lightning.txt2vid.v0' | 'inference.wan2-2.lightning.img2vid.v0' | (string & {});
28
+ type ProdiaLanguageModelId = 'inference.nano-banana.img2img.v2' | (string & {});
34
29
 
35
30
  declare const prodiaVideoModelOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
36
31
  resolution?: string | undefined;
37
32
  }>;
38
33
  type ProdiaVideoModelOptions = InferSchema<typeof prodiaVideoModelOptionsSchema>;
39
34
 
35
+ /**
36
+ * Prodia job types for video generation.
37
+ */
38
+ type ProdiaVideoModelId = 'inference.wan2-2.lightning.txt2vid.v0' | 'inference.wan2-2.lightning.img2vid.v0' | (string & {});
39
+
40
40
  interface ProdiaProviderSettings {
41
41
  /**
42
42
  * Prodia API key. Default value is taken from the `PRODIA_TOKEN` environment variable.