@ai-sdk/prodia 2.0.52 → 2.0.54
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 +18 -0
- package/dist/index.d.ts +75 -68
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +776 -1021
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @ai-sdk/prodia
|
|
2
2
|
|
|
3
|
+
## 2.0.54
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [8c65988]
|
|
8
|
+
- Updated dependencies [527a163]
|
|
9
|
+
- @ai-sdk/provider@4.0.21
|
|
10
|
+
- @ai-sdk/provider-utils@5.0.53
|
|
11
|
+
|
|
12
|
+
## 2.0.53
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- ede5b89: chore: migrate package builds from tsup to tsdown
|
|
17
|
+
- Updated dependencies [ede5b89]
|
|
18
|
+
- @ai-sdk/provider@4.0.20
|
|
19
|
+
- @ai-sdk/provider-utils@5.0.52
|
|
20
|
+
|
|
3
21
|
## 2.0.52
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,90 +1,97 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
progressive?: boolean | undefined;
|
|
1
|
+
import { Experimental_VideoModelV4, ImageModelV4, LanguageModelV4, ProviderV4 } from "@ai-sdk/provider";
|
|
2
|
+
import { FetchFunction, InferSchema } from "@ai-sdk/provider-utils";
|
|
3
|
+
//#region src/prodia-image-model-options.d.ts
|
|
4
|
+
declare const prodiaImageModelOptionsSchema: import("@ai-sdk/provider-utils").LazySchema<{
|
|
5
|
+
steps?: number | undefined;
|
|
6
|
+
width?: number | undefined;
|
|
7
|
+
height?: number | undefined;
|
|
8
|
+
stylePreset?: "3d-model" | "analog-film" | "anime" | "cinematic" | "comic-book" | "digital-art" | "enhance" | "fantasy-art" | "isometric" | "line-art" | "low-poly" | "neon-punk" | "origami" | "photographic" | "pixel-art" | "texture" | "craft-clay" | undefined;
|
|
9
|
+
loras?: string[] | undefined;
|
|
10
|
+
progressive?: boolean | undefined;
|
|
12
11
|
}>;
|
|
13
12
|
type ProdiaImageModelOptions = InferSchema<typeof prodiaImageModelOptionsSchema>;
|
|
14
|
-
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/prodia-image-settings.d.ts
|
|
15
15
|
/**
|
|
16
16
|
* Prodia job types for image generation.
|
|
17
17
|
*/
|
|
18
18
|
type ProdiaImageModelId = 'inference.flux-fast.schnell.txt2img.v2' | 'inference.flux.schnell.txt2img.v2' | (string & {});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/prodia-language-model-options.d.ts
|
|
21
|
+
declare const prodiaLanguageModelOptionsSchema: import("@ai-sdk/provider-utils").LazySchema<{
|
|
22
|
+
aspectRatio?: "1:1" | "2:3" | "3:2" | "4:5" | "5:4" | "4:7" | "7:4" | "9:16" | "16:9" | "9:21" | "21:9" | undefined;
|
|
22
23
|
}>;
|
|
23
24
|
type ProdiaLanguageModelOptions = InferSchema<typeof prodiaLanguageModelOptionsSchema>;
|
|
24
|
-
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/prodia-language-model-settings.d.ts
|
|
25
27
|
/**
|
|
26
28
|
* Prodia job types for language model (multimodal img2img).
|
|
27
29
|
*/
|
|
28
30
|
type ProdiaLanguageModelId = 'inference.nano-banana.img2img.v2' | (string & {});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/prodia-video-model-options.d.ts
|
|
33
|
+
declare const prodiaVideoModelOptionsSchema: import("@ai-sdk/provider-utils").LazySchema<{
|
|
34
|
+
resolution?: string | undefined;
|
|
32
35
|
}>;
|
|
33
36
|
type ProdiaVideoModelOptions = InferSchema<typeof prodiaVideoModelOptionsSchema>;
|
|
34
|
-
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/prodia-video-model-settings.d.ts
|
|
35
39
|
/**
|
|
36
40
|
* Prodia job types for video generation.
|
|
37
41
|
*/
|
|
38
42
|
type ProdiaVideoModelId = 'inference.wan2-2.lightning.txt2vid.v0' | 'inference.wan2-2.lightning.img2vid.v0' | (string & {});
|
|
39
|
-
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/prodia-provider.d.ts
|
|
40
45
|
interface ProdiaProviderSettings {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Prodia API key. Default value is taken from the `PRODIA_TOKEN` environment variable.
|
|
48
|
+
*/
|
|
49
|
+
apiKey?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Base URL for the API calls. Defaults to `https://inference.prodia.com/v2`.
|
|
52
|
+
*/
|
|
53
|
+
baseURL?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Custom headers to include in the requests.
|
|
56
|
+
*/
|
|
57
|
+
headers?: Record<string, string>;
|
|
58
|
+
/**
|
|
59
|
+
* Custom fetch implementation. You can use it as a middleware to intercept
|
|
60
|
+
* requests, or to provide a custom fetch implementation for e.g. testing.
|
|
61
|
+
*/
|
|
62
|
+
fetch?: FetchFunction;
|
|
58
63
|
}
|
|
59
64
|
interface ProdiaProvider extends ProviderV4 {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
65
|
+
/**
|
|
66
|
+
* Creates a language model for multimodal generation (img2img with text+image output).
|
|
67
|
+
*/
|
|
68
|
+
languageModel(modelId: ProdiaLanguageModelId): LanguageModelV4;
|
|
69
|
+
/**
|
|
70
|
+
* Creates a model for image generation.
|
|
71
|
+
*/
|
|
72
|
+
image(modelId: ProdiaImageModelId): ImageModelV4;
|
|
73
|
+
/**
|
|
74
|
+
* Creates a model for image generation.
|
|
75
|
+
*/
|
|
76
|
+
imageModel(modelId: ProdiaImageModelId): ImageModelV4;
|
|
77
|
+
/**
|
|
78
|
+
* Creates a model for video generation.
|
|
79
|
+
*/
|
|
80
|
+
video(modelId: ProdiaVideoModelId): Experimental_VideoModelV4;
|
|
81
|
+
/**
|
|
82
|
+
* Creates a model for video generation.
|
|
83
|
+
*/
|
|
84
|
+
videoModel(modelId: ProdiaVideoModelId): Experimental_VideoModelV4;
|
|
85
|
+
/**
|
|
86
|
+
* @deprecated Use `embeddingModel` instead.
|
|
87
|
+
*/
|
|
88
|
+
textEmbeddingModel(modelId: string): never;
|
|
84
89
|
}
|
|
85
|
-
declare function createProdia(options?: ProdiaProviderSettings): ProdiaProvider;
|
|
86
|
-
declare const prodia: ProdiaProvider;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
export declare function createProdia(options?: ProdiaProviderSettings): ProdiaProvider;
|
|
91
|
+
export declare const prodia: ProdiaProvider;
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/version.d.ts
|
|
94
|
+
export declare const VERSION: string;
|
|
95
|
+
//#endregion
|
|
96
|
+
export type { ProdiaImageModelId, ProdiaImageModelOptions, ProdiaImageModelOptions as ProdiaImageProviderOptions, ProdiaLanguageModelId, ProdiaLanguageModelOptions, ProdiaProvider, ProdiaProviderSettings, ProdiaVideoModelId, ProdiaVideoModelOptions };
|
|
97
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/prodia-image-model-options.ts","../src/prodia-image-settings.ts","../src/prodia-language-model-options.ts","../src/prodia-language-model-settings.ts","../src/prodia-video-model-options.ts","../src/prodia-video-model-settings.ts","../src/prodia-provider.ts","../src/version.ts"],"mappings":";;;cA2Ba,gEAA6B;;;;;;;;KA+B9B,0BAA0B,mBAC7B;;;;;;KCxDG;;;cCIC,mEAAgC;EAAA;;KAyBjC,6BAA6B,mBAChC;;;;;;KC9BG;;;cCIC,gEAA6B;EAAA;;KAW9B,0BAA0B,mBAC7B;;;;;;KChBG;;;UCkBK;;;;EAIf;;;;EAKA;;;;EAKA,UAAU;;;;;EAMV,QAAQ;;UAGO,uBAAuB;;;;EAItC,cAAc,SAAS,wBAAwB;;;;EAK/C,MAAM,SAAS,qBAAqB;;;;EAKpC,WAAW,SAAS,qBAAqB;;;;EAKzC,MAAM,SAAS,qBAAqB;;;;EAKpC,WAAW,SAAS,qBAAqB;;;;EAKzC,mBAAmB;;wBAKL,aACd,UAAS,yBACR;qBA0DU,QAAM;;;qBCxIN"}
|