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

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,223 @@
1
1
  # @ai-sdk/prodia
2
2
 
3
+ ## 2.0.0-beta.30
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [2e98477]
8
+ - @ai-sdk/provider-utils@5.0.0-beta.26
9
+
10
+ ## 2.0.0-beta.29
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [eea8d98]
15
+ - @ai-sdk/provider-utils@5.0.0-beta.25
16
+
17
+ ## 2.0.0-beta.28
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [f807e45]
22
+ - @ai-sdk/provider-utils@5.0.0-beta.24
23
+
24
+ ## 2.0.0-beta.27
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [350ea38]
29
+ - @ai-sdk/provider-utils@5.0.0-beta.23
30
+
31
+ ## 2.0.0-beta.26
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [083947b]
36
+ - @ai-sdk/provider-utils@5.0.0-beta.22
37
+
38
+ ## 2.0.0-beta.25
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [add1126]
43
+ - @ai-sdk/provider-utils@5.0.0-beta.21
44
+
45
+ ## 2.0.0-beta.24
46
+
47
+ ### Patch Changes
48
+
49
+ - b3976a2: Add workflow serialization support to all provider models.
50
+
51
+ **`@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.
52
+
53
+ **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.
54
+
55
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
56
+
57
+ - Updated dependencies [b3976a2]
58
+ - Updated dependencies [ff5eba1]
59
+ - @ai-sdk/provider-utils@5.0.0-beta.20
60
+ - @ai-sdk/provider@4.0.0-beta.12
61
+
62
+ ## 2.0.0-beta.23
63
+
64
+ ### Major Changes
65
+
66
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [ef992f8]
71
+ - @ai-sdk/provider@4.0.0-beta.11
72
+ - @ai-sdk/provider-utils@5.0.0-beta.19
73
+
74
+ ## 2.0.0-beta.22
75
+
76
+ ### Patch Changes
77
+
78
+ - Updated dependencies [90e2d8a]
79
+ - @ai-sdk/provider-utils@5.0.0-beta.18
80
+
81
+ ## 2.0.0-beta.21
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies [3ae1786]
86
+ - @ai-sdk/provider-utils@5.0.0-beta.17
87
+
88
+ ## 2.0.0-beta.20
89
+
90
+ ### Patch Changes
91
+
92
+ - Updated dependencies [176466a]
93
+ - @ai-sdk/provider@4.0.0-beta.10
94
+ - @ai-sdk/provider-utils@5.0.0-beta.16
95
+
96
+ ## 2.0.0-beta.19
97
+
98
+ ### Patch Changes
99
+
100
+ - Updated dependencies [e311194]
101
+ - @ai-sdk/provider@4.0.0-beta.9
102
+ - @ai-sdk/provider-utils@5.0.0-beta.15
103
+
104
+ ## 2.0.0-beta.18
105
+
106
+ ### Patch Changes
107
+
108
+ - Updated dependencies [34bd95d]
109
+ - Updated dependencies [008271d]
110
+ - @ai-sdk/provider@4.0.0-beta.8
111
+ - @ai-sdk/provider-utils@5.0.0-beta.14
112
+
113
+ ## 2.0.0-beta.17
114
+
115
+ ### Patch Changes
116
+
117
+ - Updated dependencies [b0c2869]
118
+ - Updated dependencies [7e26e81]
119
+ - @ai-sdk/provider-utils@5.0.0-beta.13
120
+
121
+ ## 2.0.0-beta.16
122
+
123
+ ### Patch Changes
124
+
125
+ - Updated dependencies [46d1149]
126
+ - @ai-sdk/provider-utils@5.0.0-beta.12
127
+
128
+ ## 2.0.0-beta.15
129
+
130
+ ### Patch Changes
131
+
132
+ - Updated dependencies [6fd51c0]
133
+ - @ai-sdk/provider-utils@5.0.0-beta.11
134
+ - @ai-sdk/provider@4.0.0-beta.7
135
+
136
+ ## 2.0.0-beta.14
137
+
138
+ ### Patch Changes
139
+
140
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
141
+ - Updated dependencies [c29a26f]
142
+ - @ai-sdk/provider-utils@5.0.0-beta.10
143
+ - @ai-sdk/provider@4.0.0-beta.6
144
+
145
+ ## 2.0.0-beta.13
146
+
147
+ ### Patch Changes
148
+
149
+ - 38fc777: Add AI Gateway hint to provider READMEs
150
+
151
+ ## 2.0.0-beta.12
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies [2e17091]
156
+ - @ai-sdk/provider-utils@5.0.0-beta.9
157
+
158
+ ## 2.0.0-beta.11
159
+
160
+ ### Patch Changes
161
+
162
+ - Updated dependencies [986c6fd]
163
+ - Updated dependencies [493295c]
164
+ - @ai-sdk/provider-utils@5.0.0-beta.8
165
+
166
+ ## 2.0.0-beta.10
167
+
168
+ ### Patch Changes
169
+
170
+ - Updated dependencies [1f509d4]
171
+ - @ai-sdk/provider-utils@5.0.0-beta.7
172
+ - @ai-sdk/provider@4.0.0-beta.5
173
+
174
+ ## 2.0.0-beta.9
175
+
176
+ ### Patch Changes
177
+
178
+ - 5259a95: chore: add warning for providers that do not support new reasoning parameter
179
+
180
+ ## 2.0.0-beta.8
181
+
182
+ ### Patch Changes
183
+
184
+ - Updated dependencies [3887c70]
185
+ - @ai-sdk/provider-utils@5.0.0-beta.6
186
+ - @ai-sdk/provider@4.0.0-beta.4
187
+
188
+ ## 2.0.0-beta.7
189
+
190
+ ### Patch Changes
191
+
192
+ - Updated dependencies [776b617]
193
+ - @ai-sdk/provider-utils@5.0.0-beta.5
194
+ - @ai-sdk/provider@4.0.0-beta.3
195
+
196
+ ## 2.0.0-beta.6
197
+
198
+ ### Patch Changes
199
+
200
+ - Updated dependencies [61753c3]
201
+ - @ai-sdk/provider-utils@5.0.0-beta.4
202
+
203
+ ## 2.0.0-beta.5
204
+
205
+ ### Patch Changes
206
+
207
+ - e2bdcd6: feat(provider/prodia): Add LanguageModel and VideoModel support to the Prodia provider.
208
+
209
+ - **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`.
210
+ - **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.
211
+ - Extract shared multipart parsing and error handling infrastructure into `prodia-api.ts`.
212
+
213
+ ## 2.0.0-beta.4
214
+
215
+ ### Patch Changes
216
+
217
+ - Updated dependencies [f7d4f01]
218
+ - @ai-sdk/provider-utils@5.0.0-beta.3
219
+ - @ai-sdk/provider@4.0.0-beta.2
220
+
3
221
  ## 2.0.0-beta.3
4
222
 
5
223
  ### 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 };