@ai-sdk/prodia 2.0.0-beta.3 → 2.0.0-beta.31

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,235 @@
1
1
  # @ai-sdk/prodia
2
2
 
3
+ ## 2.0.0-beta.31
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [785fe16]
8
+ - Updated dependencies [67df0a0]
9
+ - Updated dependencies [befb78c]
10
+ - Updated dependencies [0458559]
11
+ - Updated dependencies [5852c0a]
12
+ - Updated dependencies [fc92055]
13
+ - @ai-sdk/provider-utils@5.0.0-beta.27
14
+
15
+ ## 2.0.0-beta.30
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [2e98477]
20
+ - @ai-sdk/provider-utils@5.0.0-beta.26
21
+
22
+ ## 2.0.0-beta.29
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [eea8d98]
27
+ - @ai-sdk/provider-utils@5.0.0-beta.25
28
+
29
+ ## 2.0.0-beta.28
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [f807e45]
34
+ - @ai-sdk/provider-utils@5.0.0-beta.24
35
+
36
+ ## 2.0.0-beta.27
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [350ea38]
41
+ - @ai-sdk/provider-utils@5.0.0-beta.23
42
+
43
+ ## 2.0.0-beta.26
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies [083947b]
48
+ - @ai-sdk/provider-utils@5.0.0-beta.22
49
+
50
+ ## 2.0.0-beta.25
51
+
52
+ ### Patch Changes
53
+
54
+ - Updated dependencies [add1126]
55
+ - @ai-sdk/provider-utils@5.0.0-beta.21
56
+
57
+ ## 2.0.0-beta.24
58
+
59
+ ### Patch Changes
60
+
61
+ - b3976a2: Add workflow serialization support to all provider models.
62
+
63
+ **`@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.
64
+
65
+ **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.
66
+
67
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
68
+
69
+ - Updated dependencies [b3976a2]
70
+ - Updated dependencies [ff5eba1]
71
+ - @ai-sdk/provider-utils@5.0.0-beta.20
72
+ - @ai-sdk/provider@4.0.0-beta.12
73
+
74
+ ## 2.0.0-beta.23
75
+
76
+ ### Major Changes
77
+
78
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [ef992f8]
83
+ - @ai-sdk/provider@4.0.0-beta.11
84
+ - @ai-sdk/provider-utils@5.0.0-beta.19
85
+
86
+ ## 2.0.0-beta.22
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies [90e2d8a]
91
+ - @ai-sdk/provider-utils@5.0.0-beta.18
92
+
93
+ ## 2.0.0-beta.21
94
+
95
+ ### Patch Changes
96
+
97
+ - Updated dependencies [3ae1786]
98
+ - @ai-sdk/provider-utils@5.0.0-beta.17
99
+
100
+ ## 2.0.0-beta.20
101
+
102
+ ### Patch Changes
103
+
104
+ - Updated dependencies [176466a]
105
+ - @ai-sdk/provider@4.0.0-beta.10
106
+ - @ai-sdk/provider-utils@5.0.0-beta.16
107
+
108
+ ## 2.0.0-beta.19
109
+
110
+ ### Patch Changes
111
+
112
+ - Updated dependencies [e311194]
113
+ - @ai-sdk/provider@4.0.0-beta.9
114
+ - @ai-sdk/provider-utils@5.0.0-beta.15
115
+
116
+ ## 2.0.0-beta.18
117
+
118
+ ### Patch Changes
119
+
120
+ - Updated dependencies [34bd95d]
121
+ - Updated dependencies [008271d]
122
+ - @ai-sdk/provider@4.0.0-beta.8
123
+ - @ai-sdk/provider-utils@5.0.0-beta.14
124
+
125
+ ## 2.0.0-beta.17
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies [b0c2869]
130
+ - Updated dependencies [7e26e81]
131
+ - @ai-sdk/provider-utils@5.0.0-beta.13
132
+
133
+ ## 2.0.0-beta.16
134
+
135
+ ### Patch Changes
136
+
137
+ - Updated dependencies [46d1149]
138
+ - @ai-sdk/provider-utils@5.0.0-beta.12
139
+
140
+ ## 2.0.0-beta.15
141
+
142
+ ### Patch Changes
143
+
144
+ - Updated dependencies [6fd51c0]
145
+ - @ai-sdk/provider-utils@5.0.0-beta.11
146
+ - @ai-sdk/provider@4.0.0-beta.7
147
+
148
+ ## 2.0.0-beta.14
149
+
150
+ ### Patch Changes
151
+
152
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
153
+ - Updated dependencies [c29a26f]
154
+ - @ai-sdk/provider-utils@5.0.0-beta.10
155
+ - @ai-sdk/provider@4.0.0-beta.6
156
+
157
+ ## 2.0.0-beta.13
158
+
159
+ ### Patch Changes
160
+
161
+ - 38fc777: Add AI Gateway hint to provider READMEs
162
+
163
+ ## 2.0.0-beta.12
164
+
165
+ ### Patch Changes
166
+
167
+ - Updated dependencies [2e17091]
168
+ - @ai-sdk/provider-utils@5.0.0-beta.9
169
+
170
+ ## 2.0.0-beta.11
171
+
172
+ ### Patch Changes
173
+
174
+ - Updated dependencies [986c6fd]
175
+ - Updated dependencies [493295c]
176
+ - @ai-sdk/provider-utils@5.0.0-beta.8
177
+
178
+ ## 2.0.0-beta.10
179
+
180
+ ### Patch Changes
181
+
182
+ - Updated dependencies [1f509d4]
183
+ - @ai-sdk/provider-utils@5.0.0-beta.7
184
+ - @ai-sdk/provider@4.0.0-beta.5
185
+
186
+ ## 2.0.0-beta.9
187
+
188
+ ### Patch Changes
189
+
190
+ - 5259a95: chore: add warning for providers that do not support new reasoning parameter
191
+
192
+ ## 2.0.0-beta.8
193
+
194
+ ### Patch Changes
195
+
196
+ - Updated dependencies [3887c70]
197
+ - @ai-sdk/provider-utils@5.0.0-beta.6
198
+ - @ai-sdk/provider@4.0.0-beta.4
199
+
200
+ ## 2.0.0-beta.7
201
+
202
+ ### Patch Changes
203
+
204
+ - Updated dependencies [776b617]
205
+ - @ai-sdk/provider-utils@5.0.0-beta.5
206
+ - @ai-sdk/provider@4.0.0-beta.3
207
+
208
+ ## 2.0.0-beta.6
209
+
210
+ ### Patch Changes
211
+
212
+ - Updated dependencies [61753c3]
213
+ - @ai-sdk/provider-utils@5.0.0-beta.4
214
+
215
+ ## 2.0.0-beta.5
216
+
217
+ ### Patch Changes
218
+
219
+ - e2bdcd6: feat(provider/prodia): Add LanguageModel and VideoModel support to the Prodia provider.
220
+
221
+ - **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`.
222
+ - **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.
223
+ - Extract shared multipart parsing and error handling infrastructure into `prodia-api.ts`.
224
+
225
+ ## 2.0.0-beta.4
226
+
227
+ ### Patch Changes
228
+
229
+ - Updated dependencies [f7d4f01]
230
+ - @ai-sdk/provider-utils@5.0.0-beta.3
231
+ - @ai-sdk/provider@4.0.0-beta.2
232
+
3
233
  ## 2.0.0-beta.3
4
234
 
5
235
  ### Patch Changes
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
@@ -1,6 +1,6 @@
1
1
  import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
2
2
  import { InferSchema, FetchFunction } from '@ai-sdk/provider-utils';
3
- import { ProviderV4, ImageModelV4 } from '@ai-sdk/provider';
3
+ import { ProviderV4, LanguageModelV4, ImageModelV4, Experimental_VideoModelV4 } from '@ai-sdk/provider';
4
4
 
5
5
  /**
6
6
  * Prodia job types for image generation.
@@ -17,6 +17,26 @@ declare const prodiaImageModelOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
17
17
  }>;
18
18
  type ProdiaImageModelOptions = InferSchema<typeof prodiaImageModelOptionsSchema>;
19
19
 
20
+ /**
21
+ * Prodia job types for language model (multimodal img2img).
22
+ */
23
+ type ProdiaLanguageModelId = 'inference.nano-banana.img2img.v2' | (string & {});
24
+
25
+ declare const prodiaLanguageModelOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
26
+ aspectRatio?: "1:1" | "2:3" | "3:2" | "4:5" | "5:4" | "4:7" | "7:4" | "9:16" | "16:9" | "9:21" | "21:9" | undefined;
27
+ }>;
28
+ type ProdiaLanguageModelOptions = InferSchema<typeof prodiaLanguageModelOptionsSchema>;
29
+
30
+ /**
31
+ * Prodia job types for video generation.
32
+ */
33
+ type ProdiaVideoModelId = 'inference.wan2-2.lightning.txt2vid.v0' | 'inference.wan2-2.lightning.img2vid.v0' | (string & {});
34
+
35
+ declare const prodiaVideoModelOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
36
+ resolution?: string | undefined;
37
+ }>;
38
+ type ProdiaVideoModelOptions = InferSchema<typeof prodiaVideoModelOptionsSchema>;
39
+
20
40
  interface ProdiaProviderSettings {
21
41
  /**
22
42
  * Prodia API key. Default value is taken from the `PRODIA_TOKEN` environment variable.
@@ -37,6 +57,10 @@ interface ProdiaProviderSettings {
37
57
  fetch?: FetchFunction;
38
58
  }
39
59
  interface ProdiaProvider extends ProviderV4 {
60
+ /**
61
+ * Creates a language model for multimodal generation (img2img with text+image output).
62
+ */
63
+ languageModel(modelId: ProdiaLanguageModelId): LanguageModelV4;
40
64
  /**
41
65
  * Creates a model for image generation.
42
66
  */
@@ -45,6 +69,14 @@ interface ProdiaProvider extends ProviderV4 {
45
69
  * Creates a model for image generation.
46
70
  */
47
71
  imageModel(modelId: ProdiaImageModelId): ImageModelV4;
72
+ /**
73
+ * Creates a model for video generation.
74
+ */
75
+ video(modelId: ProdiaVideoModelId): Experimental_VideoModelV4;
76
+ /**
77
+ * Creates a model for video generation.
78
+ */
79
+ videoModel(modelId: ProdiaVideoModelId): Experimental_VideoModelV4;
48
80
  /**
49
81
  * @deprecated Use `embeddingModel` instead.
50
82
  */
@@ -55,4 +87,4 @@ declare const prodia: ProdiaProvider;
55
87
 
56
88
  declare const VERSION: string;
57
89
 
58
- export { type ProdiaImageModelId, type ProdiaImageModelOptions, type ProdiaImageModelOptions as ProdiaImageProviderOptions, type ProdiaProvider, type ProdiaProviderSettings, VERSION, createProdia, prodia };
90
+ export { type ProdiaImageModelId, type ProdiaImageModelOptions, type ProdiaImageModelOptions as ProdiaImageProviderOptions, type ProdiaLanguageModelId, type ProdiaLanguageModelOptions, type ProdiaProvider, type ProdiaProviderSettings, type ProdiaVideoModelId, type ProdiaVideoModelOptions, VERSION, createProdia, prodia };