@ai-sdk/prodia 2.0.0-beta.1 → 2.0.0-beta.10

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,74 @@
1
1
  # @ai-sdk/prodia
2
2
 
3
+ ## 2.0.0-beta.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [1f509d4]
8
+ - @ai-sdk/provider-utils@5.0.0-beta.7
9
+ - @ai-sdk/provider@4.0.0-beta.5
10
+
11
+ ## 2.0.0-beta.9
12
+
13
+ ### Patch Changes
14
+
15
+ - 5259a95: chore: add warning for providers that do not support new reasoning parameter
16
+
17
+ ## 2.0.0-beta.8
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [3887c70]
22
+ - @ai-sdk/provider-utils@5.0.0-beta.6
23
+ - @ai-sdk/provider@4.0.0-beta.4
24
+
25
+ ## 2.0.0-beta.7
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [776b617]
30
+ - @ai-sdk/provider-utils@5.0.0-beta.5
31
+ - @ai-sdk/provider@4.0.0-beta.3
32
+
33
+ ## 2.0.0-beta.6
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [61753c3]
38
+ - @ai-sdk/provider-utils@5.0.0-beta.4
39
+
40
+ ## 2.0.0-beta.5
41
+
42
+ ### Patch Changes
43
+
44
+ - e2bdcd6: feat(provider/prodia): Add LanguageModel and VideoModel support to the Prodia provider.
45
+
46
+ - **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`.
47
+ - **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.
48
+ - Extract shared multipart parsing and error handling infrastructure into `prodia-api.ts`.
49
+
50
+ ## 2.0.0-beta.4
51
+
52
+ ### Patch Changes
53
+
54
+ - Updated dependencies [f7d4f01]
55
+ - @ai-sdk/provider-utils@5.0.0-beta.3
56
+ - @ai-sdk/provider@4.0.0-beta.2
57
+
58
+ ## 2.0.0-beta.3
59
+
60
+ ### Patch Changes
61
+
62
+ - Updated dependencies [5c2a5a2]
63
+ - @ai-sdk/provider@4.0.0-beta.1
64
+ - @ai-sdk/provider-utils@5.0.0-beta.2
65
+
66
+ ## 2.0.0-beta.2
67
+
68
+ ### Patch Changes
69
+
70
+ - 77600ba: chore(provider/prodia): update provider to use v4 types
71
+
3
72
  ## 2.0.0-beta.1
4
73
 
5
74
  ### Patch Changes
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 { ProviderV3, ImageModelV3 } 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.
@@ -36,15 +56,27 @@ interface ProdiaProviderSettings {
36
56
  */
37
57
  fetch?: FetchFunction;
38
58
  }
39
- interface ProdiaProvider extends ProviderV3 {
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
  */
43
- image(modelId: ProdiaImageModelId): ImageModelV3;
67
+ image(modelId: ProdiaImageModelId): ImageModelV4;
44
68
  /**
45
69
  * Creates a model for image generation.
46
70
  */
47
- imageModel(modelId: ProdiaImageModelId): ImageModelV3;
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 { ProviderV3, ImageModelV3 } 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.
@@ -36,15 +56,27 @@ interface ProdiaProviderSettings {
36
56
  */
37
57
  fetch?: FetchFunction;
38
58
  }
39
- interface ProdiaProvider extends ProviderV3 {
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
  */
43
- image(modelId: ProdiaImageModelId): ImageModelV3;
67
+ image(modelId: ProdiaImageModelId): ImageModelV4;
44
68
  /**
45
69
  * Creates a model for image generation.
46
70
  */
47
- imageModel(modelId: ProdiaImageModelId): ImageModelV3;
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 };