@ai-sdk/prodia 2.0.0-beta.2 → 2.0.0-beta.20

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,146 @@
1
1
  # @ai-sdk/prodia
2
2
 
3
+ ## 2.0.0-beta.20
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [176466a]
8
+ - @ai-sdk/provider@4.0.0-beta.10
9
+ - @ai-sdk/provider-utils@5.0.0-beta.16
10
+
11
+ ## 2.0.0-beta.19
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [e311194]
16
+ - @ai-sdk/provider@4.0.0-beta.9
17
+ - @ai-sdk/provider-utils@5.0.0-beta.15
18
+
19
+ ## 2.0.0-beta.18
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [34bd95d]
24
+ - Updated dependencies [008271d]
25
+ - @ai-sdk/provider@4.0.0-beta.8
26
+ - @ai-sdk/provider-utils@5.0.0-beta.14
27
+
28
+ ## 2.0.0-beta.17
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [b0c2869]
33
+ - Updated dependencies [7e26e81]
34
+ - @ai-sdk/provider-utils@5.0.0-beta.13
35
+
36
+ ## 2.0.0-beta.16
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [46d1149]
41
+ - @ai-sdk/provider-utils@5.0.0-beta.12
42
+
43
+ ## 2.0.0-beta.15
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies [6fd51c0]
48
+ - @ai-sdk/provider-utils@5.0.0-beta.11
49
+ - @ai-sdk/provider@4.0.0-beta.7
50
+
51
+ ## 2.0.0-beta.14
52
+
53
+ ### Patch Changes
54
+
55
+ - c29a26f: feat(provider): add support for provider references and uploading files as supported per provider
56
+ - Updated dependencies [c29a26f]
57
+ - @ai-sdk/provider-utils@5.0.0-beta.10
58
+ - @ai-sdk/provider@4.0.0-beta.6
59
+
60
+ ## 2.0.0-beta.13
61
+
62
+ ### Patch Changes
63
+
64
+ - 38fc777: Add AI Gateway hint to provider READMEs
65
+
66
+ ## 2.0.0-beta.12
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [2e17091]
71
+ - @ai-sdk/provider-utils@5.0.0-beta.9
72
+
73
+ ## 2.0.0-beta.11
74
+
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies [986c6fd]
78
+ - Updated dependencies [493295c]
79
+ - @ai-sdk/provider-utils@5.0.0-beta.8
80
+
81
+ ## 2.0.0-beta.10
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies [1f509d4]
86
+ - @ai-sdk/provider-utils@5.0.0-beta.7
87
+ - @ai-sdk/provider@4.0.0-beta.5
88
+
89
+ ## 2.0.0-beta.9
90
+
91
+ ### Patch Changes
92
+
93
+ - 5259a95: chore: add warning for providers that do not support new reasoning parameter
94
+
95
+ ## 2.0.0-beta.8
96
+
97
+ ### Patch Changes
98
+
99
+ - Updated dependencies [3887c70]
100
+ - @ai-sdk/provider-utils@5.0.0-beta.6
101
+ - @ai-sdk/provider@4.0.0-beta.4
102
+
103
+ ## 2.0.0-beta.7
104
+
105
+ ### Patch Changes
106
+
107
+ - Updated dependencies [776b617]
108
+ - @ai-sdk/provider-utils@5.0.0-beta.5
109
+ - @ai-sdk/provider@4.0.0-beta.3
110
+
111
+ ## 2.0.0-beta.6
112
+
113
+ ### Patch Changes
114
+
115
+ - Updated dependencies [61753c3]
116
+ - @ai-sdk/provider-utils@5.0.0-beta.4
117
+
118
+ ## 2.0.0-beta.5
119
+
120
+ ### Patch Changes
121
+
122
+ - e2bdcd6: feat(provider/prodia): Add LanguageModel and VideoModel support to the Prodia provider.
123
+
124
+ - **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`.
125
+ - **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.
126
+ - Extract shared multipart parsing and error handling infrastructure into `prodia-api.ts`.
127
+
128
+ ## 2.0.0-beta.4
129
+
130
+ ### Patch Changes
131
+
132
+ - Updated dependencies [f7d4f01]
133
+ - @ai-sdk/provider-utils@5.0.0-beta.3
134
+ - @ai-sdk/provider@4.0.0-beta.2
135
+
136
+ ## 2.0.0-beta.3
137
+
138
+ ### Patch Changes
139
+
140
+ - Updated dependencies [5c2a5a2]
141
+ - @ai-sdk/provider@4.0.0-beta.1
142
+ - @ai-sdk/provider-utils@5.0.0-beta.2
143
+
3
144
  ## 2.0.0-beta.2
4
145
 
5
146
  ### 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.mts 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 };
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 };