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

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