@ai-sdk/prodia 2.0.0-beta.9 → 2.0.0-canary.36

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,239 @@
1
1
  # @ai-sdk/prodia
2
2
 
3
+ ## 2.0.0-canary.36
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [5463d0d]
8
+ - @ai-sdk/provider-utils@5.0.0-canary.32
9
+ - @ai-sdk/provider@4.0.0-canary.16
10
+
11
+ ## 2.0.0-canary.35
12
+
13
+ ### Patch Changes
14
+
15
+ - 0c4c275: trigger initial canary release
16
+ - Updated dependencies [0c4c275]
17
+ - @ai-sdk/provider-utils@5.0.0-canary.31
18
+ - @ai-sdk/provider@4.0.0-canary.15
19
+
20
+ ## 2.0.0-beta.34
21
+
22
+ ### Major Changes
23
+
24
+ - 04e9009: chore: make provider implementations code patterns more consistent, including renaming certain exported symbols
25
+
26
+ For all externally exported symbols that were renamed, the old names continue to work via deprecated aliases.
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [08d2129]
31
+ - @ai-sdk/provider-utils@5.0.0-beta.30
32
+
33
+ ## 2.0.0-beta.33
34
+
35
+ ### Patch Changes
36
+
37
+ - 9bd6512: feat(provider): change file part data property to be tagged with a type and remove the image part type
38
+ - 258c093: chore: ensure consistent import handling and avoid import duplicates or cycles
39
+ - Updated dependencies [9bd6512]
40
+ - Updated dependencies [258c093]
41
+ - Updated dependencies [b6783da]
42
+ - @ai-sdk/provider-utils@5.0.0-beta.29
43
+ - @ai-sdk/provider@4.0.0-beta.14
44
+
45
+ ## 2.0.0-beta.32
46
+
47
+ ### Patch Changes
48
+
49
+ - 9f0e36c: trigger release for all packages after provenance setup
50
+ - Updated dependencies [9f0e36c]
51
+ - @ai-sdk/provider@4.0.0-beta.13
52
+ - @ai-sdk/provider-utils@5.0.0-beta.28
53
+
54
+ ## 2.0.0-beta.31
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies [785fe16]
59
+ - Updated dependencies [67df0a0]
60
+ - Updated dependencies [befb78c]
61
+ - Updated dependencies [0458559]
62
+ - Updated dependencies [5852c0a]
63
+ - Updated dependencies [fc92055]
64
+ - @ai-sdk/provider-utils@5.0.0-beta.27
65
+
66
+ ## 2.0.0-beta.30
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [2e98477]
71
+ - @ai-sdk/provider-utils@5.0.0-beta.26
72
+
73
+ ## 2.0.0-beta.29
74
+
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies [eea8d98]
78
+ - @ai-sdk/provider-utils@5.0.0-beta.25
79
+
80
+ ## 2.0.0-beta.28
81
+
82
+ ### Patch Changes
83
+
84
+ - Updated dependencies [f807e45]
85
+ - @ai-sdk/provider-utils@5.0.0-beta.24
86
+
87
+ ## 2.0.0-beta.27
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies [350ea38]
92
+ - @ai-sdk/provider-utils@5.0.0-beta.23
93
+
94
+ ## 2.0.0-beta.26
95
+
96
+ ### Patch Changes
97
+
98
+ - Updated dependencies [083947b]
99
+ - @ai-sdk/provider-utils@5.0.0-beta.22
100
+
101
+ ## 2.0.0-beta.25
102
+
103
+ ### Patch Changes
104
+
105
+ - Updated dependencies [add1126]
106
+ - @ai-sdk/provider-utils@5.0.0-beta.21
107
+
108
+ ## 2.0.0-beta.24
109
+
110
+ ### Patch Changes
111
+
112
+ - b3976a2: Add workflow serialization support to all provider models.
113
+
114
+ **`@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.
115
+
116
+ **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.
117
+
118
+ All provider model classes now include `WORKFLOW_SERIALIZE` and `WORKFLOW_DESERIALIZE` static methods, enabling them to cross workflow step boundaries without serialization errors.
119
+
120
+ - Updated dependencies [b3976a2]
121
+ - Updated dependencies [ff5eba1]
122
+ - @ai-sdk/provider-utils@5.0.0-beta.20
123
+ - @ai-sdk/provider@4.0.0-beta.12
124
+
125
+ ## 2.0.0-beta.23
126
+
127
+ ### Major Changes
128
+
129
+ - ef992f8: Remove CommonJS exports from all packages. All packages are now ESM-only (`"type": "module"`). Consumers using `require()` must switch to ESM `import` syntax.
130
+
131
+ ### Patch Changes
132
+
133
+ - Updated dependencies [ef992f8]
134
+ - @ai-sdk/provider@4.0.0-beta.11
135
+ - @ai-sdk/provider-utils@5.0.0-beta.19
136
+
137
+ ## 2.0.0-beta.22
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies [90e2d8a]
142
+ - @ai-sdk/provider-utils@5.0.0-beta.18
143
+
144
+ ## 2.0.0-beta.21
145
+
146
+ ### Patch Changes
147
+
148
+ - Updated dependencies [3ae1786]
149
+ - @ai-sdk/provider-utils@5.0.0-beta.17
150
+
151
+ ## 2.0.0-beta.20
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies [176466a]
156
+ - @ai-sdk/provider@4.0.0-beta.10
157
+ - @ai-sdk/provider-utils@5.0.0-beta.16
158
+
159
+ ## 2.0.0-beta.19
160
+
161
+ ### Patch Changes
162
+
163
+ - Updated dependencies [e311194]
164
+ - @ai-sdk/provider@4.0.0-beta.9
165
+ - @ai-sdk/provider-utils@5.0.0-beta.15
166
+
167
+ ## 2.0.0-beta.18
168
+
169
+ ### Patch Changes
170
+
171
+ - Updated dependencies [34bd95d]
172
+ - Updated dependencies [008271d]
173
+ - @ai-sdk/provider@4.0.0-beta.8
174
+ - @ai-sdk/provider-utils@5.0.0-beta.14
175
+
176
+ ## 2.0.0-beta.17
177
+
178
+ ### Patch Changes
179
+
180
+ - Updated dependencies [b0c2869]
181
+ - Updated dependencies [7e26e81]
182
+ - @ai-sdk/provider-utils@5.0.0-beta.13
183
+
184
+ ## 2.0.0-beta.16
185
+
186
+ ### Patch Changes
187
+
188
+ - Updated dependencies [46d1149]
189
+ - @ai-sdk/provider-utils@5.0.0-beta.12
190
+
191
+ ## 2.0.0-beta.15
192
+
193
+ ### Patch Changes
194
+
195
+ - Updated dependencies [6fd51c0]
196
+ - @ai-sdk/provider-utils@5.0.0-beta.11
197
+ - @ai-sdk/provider@4.0.0-beta.7
198
+
199
+ ## 2.0.0-beta.14
200
+
201
+ ### Patch Changes
202
+
203
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
204
+ - Updated dependencies [c29a26f]
205
+ - @ai-sdk/provider-utils@5.0.0-beta.10
206
+ - @ai-sdk/provider@4.0.0-beta.6
207
+
208
+ ## 2.0.0-beta.13
209
+
210
+ ### Patch Changes
211
+
212
+ - 38fc777: Add AI Gateway hint to provider READMEs
213
+
214
+ ## 2.0.0-beta.12
215
+
216
+ ### Patch Changes
217
+
218
+ - Updated dependencies [2e17091]
219
+ - @ai-sdk/provider-utils@5.0.0-beta.9
220
+
221
+ ## 2.0.0-beta.11
222
+
223
+ ### Patch Changes
224
+
225
+ - Updated dependencies [986c6fd]
226
+ - Updated dependencies [493295c]
227
+ - @ai-sdk/provider-utils@5.0.0-beta.8
228
+
229
+ ## 2.0.0-beta.10
230
+
231
+ ### Patch Changes
232
+
233
+ - Updated dependencies [1f509d4]
234
+ - @ai-sdk/provider-utils@5.0.0-beta.7
235
+ - @ai-sdk/provider@4.0.0-beta.5
236
+
3
237
  ## 2.0.0-beta.9
4
238
 
5
239
  ### 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
@@ -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.