n8n-nodes-piapi 0.1.0
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/LICENSE.md +19 -0
- package/README.md +41 -0
- package/dist/credentials/PiAPI.credentials.d.ts +8 -0
- package/dist/credentials/PiAPI.credentials.js +46 -0
- package/dist/credentials/PiAPI.credentials.js.map +1 -0
- package/dist/nodes/PiAPI/DreamMachine/DreamMachineExtendVideo.node.d.ts +5 -0
- package/dist/nodes/PiAPI/DreamMachine/DreamMachineExtendVideo.node.js +237 -0
- package/dist/nodes/PiAPI/DreamMachine/DreamMachineExtendVideo.node.js.map +1 -0
- package/dist/nodes/PiAPI/DreamMachine/DreamMachineImageToVideo.node.d.ts +5 -0
- package/dist/nodes/PiAPI/DreamMachine/DreamMachineImageToVideo.node.js +270 -0
- package/dist/nodes/PiAPI/DreamMachine/DreamMachineImageToVideo.node.js.map +1 -0
- package/dist/nodes/PiAPI/DreamMachine/DreamMachineTextToVideo.node.d.ts +5 -0
- package/dist/nodes/PiAPI/DreamMachine/DreamMachineTextToVideo.node.js +186 -0
- package/dist/nodes/PiAPI/DreamMachine/DreamMachineTextToVideo.node.js.map +1 -0
- package/dist/nodes/PiAPI/Flux/FluxImageToImage.node.d.ts +5 -0
- package/dist/nodes/PiAPI/Flux/FluxImageToImage.node.js +359 -0
- package/dist/nodes/PiAPI/Flux/FluxImageToImage.node.js.map +1 -0
- package/dist/nodes/PiAPI/Flux/FluxTextToImage.node.d.ts +5 -0
- package/dist/nodes/PiAPI/Flux/FluxTextToImage.node.js +398 -0
- package/dist/nodes/PiAPI/Flux/FluxTextToImage.node.js.map +1 -0
- package/dist/nodes/PiAPI/Hailuo/HailuoImageToVideo.node.d.ts +5 -0
- package/dist/nodes/PiAPI/Hailuo/HailuoImageToVideo.node.js +190 -0
- package/dist/nodes/PiAPI/Hailuo/HailuoImageToVideo.node.js.map +1 -0
- package/dist/nodes/PiAPI/Hailuo/HailuoSubjectVideo.node.d.ts +5 -0
- package/dist/nodes/PiAPI/Hailuo/HailuoSubjectVideo.node.js +140 -0
- package/dist/nodes/PiAPI/Hailuo/HailuoSubjectVideo.node.js.map +1 -0
- package/dist/nodes/PiAPI/Hailuo/HailuoTextToVideo.node.d.ts +5 -0
- package/dist/nodes/PiAPI/Hailuo/HailuoTextToVideo.node.js +150 -0
- package/dist/nodes/PiAPI/Hailuo/HailuoTextToVideo.node.js.map +1 -0
- package/dist/nodes/PiAPI/Hailuo/index.d.ts +4 -0
- package/dist/nodes/PiAPI/Hailuo/index.js +10 -0
- package/dist/nodes/PiAPI/Hailuo/index.js.map +1 -0
- package/dist/nodes/PiAPI/Hunyuan/HunyuanImageToVideo.node.d.ts +5 -0
- package/dist/nodes/PiAPI/Hunyuan/HunyuanImageToVideo.node.js +227 -0
- package/dist/nodes/PiAPI/Hunyuan/HunyuanImageToVideo.node.js.map +1 -0
- package/dist/nodes/PiAPI/Hunyuan/HunyuanTextToVideo.node.d.ts +5 -0
- package/dist/nodes/PiAPI/Hunyuan/HunyuanTextToVideo.node.js +142 -0
- package/dist/nodes/PiAPI/Hunyuan/HunyuanTextToVideo.node.js.map +1 -0
- package/dist/nodes/PiAPI/Hunyuan/index.d.ts +3 -0
- package/dist/nodes/PiAPI/Hunyuan/index.js +8 -0
- package/dist/nodes/PiAPI/Hunyuan/index.js.map +1 -0
- package/dist/nodes/PiAPI/Kling/KlingEffects.node.d.ts +5 -0
- package/dist/nodes/PiAPI/Kling/KlingEffects.node.js +175 -0
- package/dist/nodes/PiAPI/Kling/KlingEffects.node.js.map +1 -0
- package/dist/nodes/PiAPI/Kling/KlingImageToVideo.node.d.ts +5 -0
- package/dist/nodes/PiAPI/Kling/KlingImageToVideo.node.js +411 -0
- package/dist/nodes/PiAPI/Kling/KlingImageToVideo.node.js.map +1 -0
- package/dist/nodes/PiAPI/Kling/KlingLipSync.node.d.ts +13 -0
- package/dist/nodes/PiAPI/Kling/KlingLipSync.node.js +276 -0
- package/dist/nodes/PiAPI/Kling/KlingLipSync.node.js.map +1 -0
- package/dist/nodes/PiAPI/Kling/KlingTextToVideo.node.d.ts +5 -0
- package/dist/nodes/PiAPI/Kling/KlingTextToVideo.node.js +206 -0
- package/dist/nodes/PiAPI/Kling/KlingTextToVideo.node.js.map +1 -0
- package/dist/nodes/PiAPI/Kling/KlingTryOn.node.d.ts +5 -0
- package/dist/nodes/PiAPI/Kling/KlingTryOn.node.js +426 -0
- package/dist/nodes/PiAPI/Kling/KlingTryOn.node.js.map +1 -0
- package/dist/nodes/PiAPI/Kling/KlingVideoExtend.node.d.ts +5 -0
- package/dist/nodes/PiAPI/Kling/KlingVideoExtend.node.js +93 -0
- package/dist/nodes/PiAPI/Kling/KlingVideoExtend.node.js.map +1 -0
- package/dist/nodes/PiAPI/Skyreels/SkytreelsImageToVideo.node.d.ts +5 -0
- package/dist/nodes/PiAPI/Skyreels/SkytreelsImageToVideo.node.js +242 -0
- package/dist/nodes/PiAPI/Skyreels/SkytreelsImageToVideo.node.js.map +1 -0
- package/dist/nodes/PiAPI/Skyreels/index.d.ts +2 -0
- package/dist/nodes/PiAPI/Skyreels/index.js +6 -0
- package/dist/nodes/PiAPI/Skyreels/index.js.map +1 -0
- package/dist/nodes/PiAPI/TaskStatus/PiAPITaskStatus.node.d.ts +5 -0
- package/dist/nodes/PiAPI/TaskStatus/PiAPITaskStatus.node.js +125 -0
- package/dist/nodes/PiAPI/TaskStatus/PiAPITaskStatus.node.js.map +1 -0
- package/dist/nodes/PiAPI/Trellis/TrellisModelGeneration.node.d.ts +5 -0
- package/dist/nodes/PiAPI/Trellis/TrellisModelGeneration.node.js +262 -0
- package/dist/nodes/PiAPI/Trellis/TrellisModelGeneration.node.js.map +1 -0
- package/dist/nodes/PiAPI/Trellis/index.d.ts +2 -0
- package/dist/nodes/PiAPI/Trellis/index.js +6 -0
- package/dist/nodes/PiAPI/Trellis/index.js.map +1 -0
- package/dist/nodes/PiAPI/WanX/WanXImageToVideo.node.d.ts +5 -0
- package/dist/nodes/PiAPI/WanX/WanXImageToVideo.node.js +227 -0
- package/dist/nodes/PiAPI/WanX/WanXImageToVideo.node.js.map +1 -0
- package/dist/nodes/PiAPI/WanX/WanXTextToVideo.node.d.ts +5 -0
- package/dist/nodes/PiAPI/WanX/WanXTextToVideo.node.js +129 -0
- package/dist/nodes/PiAPI/WanX/WanXTextToVideo.node.js.map +1 -0
- package/dist/nodes/PiAPI/piapi.svg +5 -0
- package/dist/nodes/PiAPI/shared/Constants.d.ts +30 -0
- package/dist/nodes/PiAPI/shared/Constants.js +262 -0
- package/dist/nodes/PiAPI/shared/Constants.js.map +1 -0
- package/dist/nodes/PiAPI/shared/GenericFunctions.d.ts +3 -0
- package/dist/nodes/PiAPI/shared/GenericFunctions.js +43 -0
- package/dist/nodes/PiAPI/shared/GenericFunctions.js.map +1 -0
- package/dist/nodes/PiAPI/shared/Interfaces.d.ts +102 -0
- package/dist/nodes/PiAPI/shared/Interfaces.js +3 -0
- package/dist/nodes/PiAPI/shared/Interfaces.js.map +1 -0
- package/dist/package.json +95 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/index.js +6 -0
- package/package.json +95 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"WanXTextToVideo.node.js","sourceRoot":"","sources":["../../../../nodes/PiAPI/WanX/WanXTextToVideo.node.ts"],"names":[],"mappings":";;;AAQA,iEAAiF;AACjF,mDAAkD;AAElD,MAAa,eAAe;IAA5B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,mBAAmB;YACzB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE;gBACT,IAAI,EAAE,oBAAoB;aAC1B;YACD,MAAM,EAAE,QAAyB;YACjC,OAAO,EAAE,QAAyB;YAClC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAA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AI,CAAC;oBACf,IAAI,EAAE,UAAU;iBAChB,CAAC,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC3B,UAAU,CAAC,IAAI,CAAC;wBACf,IAAI,EAAE;4BACL,KAAK,EAAE,KAAK,CAAC,OAAO;yBACpB;qBACD,CAAC,CAAC;oBACH,SAAS;gBACV,CAAC;gBACD,MAAM,KAAK,CAAC;YACb,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AA/HD,0CA+HC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="234px" height="234px" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" xmlns:xlink="http://www.w3.org/1999/xlink">
|
4
|
+
<g><path style="opacity:0.962" fill="#007dff" d="M 109.5,-0.5 C 113.5,-0.5 117.5,-0.5 121.5,-0.5C 123.475,0.646381 124.975,2.31305 126,4.5C 126.5,26.1641 126.667,47.8308 126.5,69.5C 135.65,67.007 139.984,70.3403 139.5,79.5C 151.215,80.5893 162.881,82.0893 174.5,84C 175.333,84.8333 176.167,85.6667 177,86.5C 177.5,99.8292 177.667,113.163 177.5,126.5C 183.952,126.084 190.285,126.584 196.5,128C 199.925,132.408 200.425,137.241 198,142.5C 197.25,143.126 196.416,143.626 195.5,144C 184.839,144.5 174.172,144.667 163.5,144.5C 163.302,155.66 164.135,166.66 166,177.5C 159.818,184.917 151.818,188.25 142,187.5C 139.167,187.333 136.333,187.167 133.5,187C 131.224,186.126 129.89,184.459 129.5,182C 131.203,169.572 131.869,157.072 131.5,144.5C 121.5,144.5 111.5,144.5 101.5,144.5C 101.108,157.251 101.774,169.918 103.5,182.5C 102.96,183.748 102.293,184.915 101.5,186C 89.1634,189.54 77.9967,187.373 68,179.5C 65.9402,173.413 66.2735,167.413 69,161.5C 69.4994,155.843 69.6661,150.176 69.5,144.5C 58.495,144.667 47.495,144.5 36.5,144C 35.6667,143.167 34.8333,142.333 34,141.5C 33.3333,137.5 33.3333,133.5 34,129.5C 34.5,129 35,128.5 35.5,128C 42.0764,126.623 48.7431,126.123 55.5,126.5C 55.3334,112.829 55.5001,99.1626 56,85.5C 58.2658,84.0437 60.7658,83.2104 63.5,83C 73.4887,81.668 83.4887,80.5014 93.5,79.5C 93.0162,70.3403 97.3495,67.007 106.5,69.5C 106.667,53.1633 106.5,36.8299 106,20.5C 77.1497,23.4347 54.1497,36.768 37,60.5C 14.4436,96.4158 13.7769,132.749 35,169.5C 65.3842,210.07 104.884,222.57 153.5,207C 187.642,192.187 207.476,166.353 213,129.5C 216.795,87.8165 201.295,55.6499 166.5,33C 159.729,29.8669 153.229,26.3669 147,22.5C 142.203,11.6376 145.703,6.47089 157.5,7C 202.078,26.0052 227.411,59.5052 233.5,107.5C 233.5,113.5 233.5,119.5 233.5,125.5C 227.831,172.339 203.497,205.506 160.5,225C 148.709,229.32 136.709,232.153 124.5,233.5C 119.5,233.5 114.5,233.5 109.5,233.5C 43.5658,224.899 6.89914,187.566 -0.5,121.5C -0.5,118.167 -0.5,114.833 -0.5,111.5C 5.13264,55.6941 34.7993,19.5274 88.5,3C 95.6076,1.59316 102.608,0.426492 109.5,-0.5 Z"/></g>
|
5
|
+
</svg>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
export interface AspectRatio {
|
2
|
+
name: string;
|
3
|
+
description: string;
|
4
|
+
width: number;
|
5
|
+
height: number;
|
6
|
+
}
|
7
|
+
export declare const ASPECT_RATIOS: {
|
8
|
+
[key: string]: AspectRatio[];
|
9
|
+
};
|
10
|
+
export declare const ASPECT_RATIO_OPTIONS: {
|
11
|
+
name: string;
|
12
|
+
value: string;
|
13
|
+
description: string;
|
14
|
+
}[];
|
15
|
+
export declare const CONTROLNET_TYPES: {
|
16
|
+
name: string;
|
17
|
+
value: string;
|
18
|
+
description: string;
|
19
|
+
}[];
|
20
|
+
export declare const LORA_OPTIONS: {
|
21
|
+
name: string;
|
22
|
+
value: string;
|
23
|
+
description: string;
|
24
|
+
}[];
|
25
|
+
export declare const WANX_MODELS: {
|
26
|
+
name: string;
|
27
|
+
value: string;
|
28
|
+
description: string;
|
29
|
+
price: number;
|
30
|
+
}[];
|
@@ -0,0 +1,262 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.WANX_MODELS = exports.LORA_OPTIONS = exports.CONTROLNET_TYPES = exports.ASPECT_RATIO_OPTIONS = exports.ASPECT_RATIOS = void 0;
|
4
|
+
exports.ASPECT_RATIOS = {
|
5
|
+
square: [
|
6
|
+
{
|
7
|
+
name: 'Square 1:1',
|
8
|
+
description: 'Perfect square aspect ratio',
|
9
|
+
width: 1024,
|
10
|
+
height: 1024,
|
11
|
+
},
|
12
|
+
],
|
13
|
+
landscape: [
|
14
|
+
{
|
15
|
+
name: 'Landscape 16:9',
|
16
|
+
description: 'Standard widescreen format',
|
17
|
+
width: 1280,
|
18
|
+
height: 720,
|
19
|
+
},
|
20
|
+
{
|
21
|
+
name: 'Landscape 3:2',
|
22
|
+
description: 'Common photo aspect ratio',
|
23
|
+
width: 1200,
|
24
|
+
height: 800,
|
25
|
+
},
|
26
|
+
{
|
27
|
+
name: 'Landscape 4:3',
|
28
|
+
description: 'Traditional TV/monitor aspect ratio',
|
29
|
+
width: 1024,
|
30
|
+
height: 768,
|
31
|
+
},
|
32
|
+
{
|
33
|
+
name: 'Landscape 21:9',
|
34
|
+
description: 'Ultrawide cinematic format',
|
35
|
+
width: 1344,
|
36
|
+
height: 576,
|
37
|
+
},
|
38
|
+
],
|
39
|
+
portrait: [
|
40
|
+
{
|
41
|
+
name: 'Portrait 9:16',
|
42
|
+
description: 'Vertical video format for social media',
|
43
|
+
width: 720,
|
44
|
+
height: 1280,
|
45
|
+
},
|
46
|
+
{
|
47
|
+
name: 'Portrait 2:3',
|
48
|
+
description: 'Common vertical photo ratio',
|
49
|
+
width: 800,
|
50
|
+
height: 1200,
|
51
|
+
},
|
52
|
+
{
|
53
|
+
name: 'Portrait 3:4',
|
54
|
+
description: 'Vertical version of 4:3',
|
55
|
+
width: 768,
|
56
|
+
height: 1024,
|
57
|
+
},
|
58
|
+
{
|
59
|
+
name: 'Portrait 4:5',
|
60
|
+
description: 'Instagram portrait format',
|
61
|
+
width: 864,
|
62
|
+
height: 1080,
|
63
|
+
},
|
64
|
+
],
|
65
|
+
};
|
66
|
+
exports.ASPECT_RATIO_OPTIONS = [
|
67
|
+
{
|
68
|
+
name: '-- Square --',
|
69
|
+
value: 'square_header',
|
70
|
+
description: 'Square aspect ratios',
|
71
|
+
},
|
72
|
+
...exports.ASPECT_RATIOS.square.map((ratio) => ({
|
73
|
+
name: ratio.name,
|
74
|
+
value: `${ratio.width}:${ratio.height}`,
|
75
|
+
description: ratio.description,
|
76
|
+
})),
|
77
|
+
{
|
78
|
+
name: '-- Landscape --',
|
79
|
+
value: 'landscape_header',
|
80
|
+
description: 'Landscape aspect ratios',
|
81
|
+
},
|
82
|
+
...exports.ASPECT_RATIOS.landscape.map((ratio) => ({
|
83
|
+
name: ratio.name,
|
84
|
+
value: `${ratio.width}:${ratio.height}`,
|
85
|
+
description: ratio.description,
|
86
|
+
})),
|
87
|
+
{
|
88
|
+
name: '-- Portrait --',
|
89
|
+
value: 'portrait_header',
|
90
|
+
description: 'Portrait aspect ratios',
|
91
|
+
},
|
92
|
+
...exports.ASPECT_RATIOS.portrait.map((ratio) => ({
|
93
|
+
name: ratio.name,
|
94
|
+
value: `${ratio.width}:${ratio.height}`,
|
95
|
+
description: ratio.description,
|
96
|
+
})),
|
97
|
+
{
|
98
|
+
name: 'Custom',
|
99
|
+
value: 'custom',
|
100
|
+
description: 'Set custom dimensions',
|
101
|
+
},
|
102
|
+
];
|
103
|
+
exports.CONTROLNET_TYPES = [
|
104
|
+
{
|
105
|
+
name: 'None',
|
106
|
+
value: 'none',
|
107
|
+
description: 'Don\'t use ControlNet',
|
108
|
+
},
|
109
|
+
{
|
110
|
+
name: 'Depth',
|
111
|
+
value: 'depth',
|
112
|
+
description: 'Control image generation using depth maps',
|
113
|
+
},
|
114
|
+
{
|
115
|
+
name: 'Canny',
|
116
|
+
value: 'canny',
|
117
|
+
description: 'Control image generation using edge detection',
|
118
|
+
},
|
119
|
+
{
|
120
|
+
name: 'Soft Edge',
|
121
|
+
value: 'soft_edge',
|
122
|
+
description: 'Control image generation using soft edge detection',
|
123
|
+
},
|
124
|
+
{
|
125
|
+
name: 'OpenPose',
|
126
|
+
value: 'openpose',
|
127
|
+
description: 'Control image generation using human pose estimation',
|
128
|
+
},
|
129
|
+
];
|
130
|
+
exports.LORA_OPTIONS = [
|
131
|
+
{
|
132
|
+
name: 'None',
|
133
|
+
value: 'none',
|
134
|
+
description: 'Don\'t use any LoRA model',
|
135
|
+
},
|
136
|
+
{
|
137
|
+
name: 'Anime',
|
138
|
+
value: 'anime',
|
139
|
+
description: 'Anime style LoRA',
|
140
|
+
},
|
141
|
+
{
|
142
|
+
name: 'Art',
|
143
|
+
value: 'art',
|
144
|
+
description: 'Art style LoRA',
|
145
|
+
},
|
146
|
+
{
|
147
|
+
name: 'Disney',
|
148
|
+
value: 'disney',
|
149
|
+
description: 'Disney style LoRA',
|
150
|
+
},
|
151
|
+
{
|
152
|
+
name: 'Furry',
|
153
|
+
value: 'furry',
|
154
|
+
description: 'Furry style LoRA',
|
155
|
+
},
|
156
|
+
{
|
157
|
+
name: 'MidJourney v6',
|
158
|
+
value: 'mjv6',
|
159
|
+
description: 'MidJourney v6 style LoRA',
|
160
|
+
},
|
161
|
+
{
|
162
|
+
name: 'Realism',
|
163
|
+
value: 'realism',
|
164
|
+
description: 'Photorealistic style LoRA',
|
165
|
+
},
|
166
|
+
{
|
167
|
+
name: 'Scenery',
|
168
|
+
value: 'scenery',
|
169
|
+
description: 'Landscape and scenery style LoRA',
|
170
|
+
},
|
171
|
+
{
|
172
|
+
name: 'Collage Art Style',
|
173
|
+
value: 'collage-artstyle',
|
174
|
+
description: 'Retro collage art style LoRA',
|
175
|
+
},
|
176
|
+
{
|
177
|
+
name: 'Creepycute',
|
178
|
+
value: 'creepcute',
|
179
|
+
description: 'Creepy but cute style LoRA',
|
180
|
+
},
|
181
|
+
{
|
182
|
+
name: 'Cyberpunk Anime',
|
183
|
+
value: 'cyberpunk-anime-style',
|
184
|
+
description: 'Cyberpunk anime style LoRA',
|
185
|
+
},
|
186
|
+
{
|
187
|
+
name: 'Deco Pulse',
|
188
|
+
value: 'deco-pulse',
|
189
|
+
description: 'Decorative pulse style LoRA',
|
190
|
+
},
|
191
|
+
{
|
192
|
+
name: 'Deep Sea Particle',
|
193
|
+
value: 'deep-sea-particle-enhencer',
|
194
|
+
description: 'Deep sea particle enhancement LoRA',
|
195
|
+
},
|
196
|
+
{
|
197
|
+
name: 'Faetastic Details',
|
198
|
+
value: 'faetastic-details',
|
199
|
+
description: 'Fae/fantasy detailed style LoRA',
|
200
|
+
},
|
201
|
+
{
|
202
|
+
name: 'Fractal Geometry',
|
203
|
+
value: 'fractal-geometry',
|
204
|
+
description: 'Fractal geometry style LoRA',
|
205
|
+
},
|
206
|
+
{
|
207
|
+
name: 'Galactixy Illustrations',
|
208
|
+
value: 'galactixy-illustrations-style',
|
209
|
+
description: 'Galaxy illustration style LoRA',
|
210
|
+
},
|
211
|
+
{
|
212
|
+
name: 'Geometric Woman',
|
213
|
+
value: 'geometric-woman',
|
214
|
+
description: 'Geometric woman style LoRA',
|
215
|
+
},
|
216
|
+
{
|
217
|
+
name: 'Graphic Portrait',
|
218
|
+
value: 'graphic-portrait',
|
219
|
+
description: 'Graphic portrait style LoRA',
|
220
|
+
},
|
221
|
+
{
|
222
|
+
name: 'Mat Miller Art',
|
223
|
+
value: 'mat-miller-art',
|
224
|
+
description: 'Mat Miller art style LoRA',
|
225
|
+
},
|
226
|
+
{
|
227
|
+
name: 'Moebius Style',
|
228
|
+
value: 'moebius-style',
|
229
|
+
description: 'Moebius style LoRA',
|
230
|
+
},
|
231
|
+
{
|
232
|
+
name: 'OB3D Isometric Room',
|
233
|
+
value: 'ob3d-isometric-3d-room',
|
234
|
+
description: 'Isometric 3D room style LoRA',
|
235
|
+
},
|
236
|
+
{
|
237
|
+
name: 'Paper Quilling',
|
238
|
+
value: 'paper-quilling-and-layering-style',
|
239
|
+
description: 'Paper quilling and layering style LoRA',
|
240
|
+
},
|
241
|
+
];
|
242
|
+
exports.WANX_MODELS = [
|
243
|
+
{
|
244
|
+
name: 'Lightweight (1.3B)',
|
245
|
+
value: 'txt2video-1.3b',
|
246
|
+
description: 'Lightweight text-to-video generation model ($0.12 per generation)',
|
247
|
+
price: 0.12,
|
248
|
+
},
|
249
|
+
{
|
250
|
+
name: 'Advanced (14B)',
|
251
|
+
value: 'txt2video-14b',
|
252
|
+
description: 'Advanced text-to-video generation model ($0.28 per generation)',
|
253
|
+
price: 0.28,
|
254
|
+
},
|
255
|
+
{
|
256
|
+
name: 'Image to Video (14B)',
|
257
|
+
value: 'img2video-14b',
|
258
|
+
description: 'Image-to-video transformation model ($0.28 per generation)',
|
259
|
+
price: 0.28,
|
260
|
+
},
|
261
|
+
];
|
262
|
+
//# sourceMappingURL=Constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../../../nodes/PiAPI/shared/Constants.ts"],"names":[],"mappings":";;;AAOa,QAAA,aAAa,GAAqC;IAC7D,MAAM,EAAE;QACN;YACE,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,6BAA6B;YAC1C,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,IAAI;SACb;KACF;IACD,SAAS,EAAE;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C;KAC/C;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,6BAA6B;KAC3C;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,KAAK,EAAE,+BAA+B;QACtC,WAAW,EAAE,gCAAgC;KAC9C;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,4BAA4B;KAC1C;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,6BAA6B;KAC3C;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,2BAA2B;KACzC;IACD;QACE,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,oBAAoB;KAClC;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,wBAAwB;QAC/B,WAAW,EAAE,8BAA8B;KAC5C;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,mCAAmC;QAC1C,WAAW,EAAE,wCAAwC;KACtD;CACF,CAAC;AAEW,QAAA,WAAW,GAAG;IACzB;QACE,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,mEAAmE;QAChF,KAAK,EAAE,IAAI;KACZ;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,gEAAgE;QAC7E,KAAK,EAAE,IAAI;KACZ;IACD;QACE,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,4DAA4D;QACzE,KAAK,EAAE,IAAI;KACZ;CACF,CAAC"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions, IDataObject } from 'n8n-workflow';
|
2
|
+
export declare function piApiRequest(this: IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions, method: string, resource: string, body?: IDataObject, qs?: IDataObject): Promise<any>;
|
3
|
+
export declare function waitForTaskCompletion(this: IExecuteFunctions, taskId: string, maxRetries?: number, retryInterval?: number): Promise<IDataObject>;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.piApiRequest = piApiRequest;
|
4
|
+
exports.waitForTaskCompletion = waitForTaskCompletion;
|
5
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
6
|
+
async function piApiRequest(method, resource, body = {}, qs = {}) {
|
7
|
+
const credentials = await this.getCredentials('piAPIApi');
|
8
|
+
const options = {
|
9
|
+
method,
|
10
|
+
body,
|
11
|
+
qs,
|
12
|
+
url: `https://api.piapi.ai${resource}`,
|
13
|
+
headers: {
|
14
|
+
'Content-Type': 'application/json',
|
15
|
+
'X-API-Key': credentials.apiKey,
|
16
|
+
},
|
17
|
+
json: true,
|
18
|
+
};
|
19
|
+
try {
|
20
|
+
return await this.helpers.request(options);
|
21
|
+
}
|
22
|
+
catch (error) {
|
23
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
async function waitForTaskCompletion(taskId, maxRetries = 20, retryInterval = 3000) {
|
27
|
+
var _a, _b;
|
28
|
+
let retries = 0;
|
29
|
+
while (retries < maxRetries) {
|
30
|
+
const response = await piApiRequest.call(this, 'GET', `/api/v1/task/${taskId}`);
|
31
|
+
const status = (_a = response.data) === null || _a === void 0 ? void 0 : _a.status;
|
32
|
+
if (status === 'success' || status === 'completed') {
|
33
|
+
return response.data;
|
34
|
+
}
|
35
|
+
if (status === 'failed') {
|
36
|
+
throw new Error(`Task failed: ${JSON.stringify(((_b = response.data) === null || _b === void 0 ? void 0 : _b.error) || 'Unknown error')}`);
|
37
|
+
}
|
38
|
+
await new Promise(resolve => setTimeout(resolve, retryInterval));
|
39
|
+
retries++;
|
40
|
+
}
|
41
|
+
throw new Error(`Task timed out after ${maxRetries} retries`);
|
42
|
+
}
|
43
|
+
//# sourceMappingURL=GenericFunctions.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../../nodes/PiAPI/shared/GenericFunctions.ts"],"names":[],"mappings":";;AASA,oCA0BC;AAED,sDA+BC;AApED,+CAOsB;AAEf,KAAK,UAAU,YAAY,CAEjC,MAAc,EACd,QAAgB,EAChB,OAAoB,EAAE,EACtB,KAAkB,EAAE;IAEpB,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAE1D,MAAM,OAAO,GAAgB;QAC5B,MAAM;QACN,IAAI;QACJ,EAAE;QACF,GAAG,EAAE,uBAAuB,QAAQ,EAAE;QACtC,OAAO,EAAE;YACR,cAAc,EAAE,kBAAkB;YAClC,WAAW,EAAE,WAAW,CAAC,MAAgB;SACzC;QACD,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,IAAI,CAAC;QACJ,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,OAAQ,CAAC,OAAqB,CAAC,CAAC;IAC3D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAmB,CAAC,CAAC;IAC7D,CAAC;AACF,CAAC;AAEM,KAAK,UAAU,qBAAqB,CAE1C,MAAc,EACd,UAAU,GAAG,EAAE,EACf,aAAa,GAAG,IAAI;;IAEpB,IAAI,OAAO,GAAG,CAAC,CAAC;IAEhB,OAAO,OAAO,GAAG,UAAU,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,IAAI,CACvC,IAAI,EACJ,KAAK,EACL,gBAAgB,MAAM,EAAE,CACxB,CAAC;QAEF,MAAM,MAAM,GAAG,MAAA,QAAQ,CAAC,IAAI,0CAAE,MAAM,CAAC;QAErC,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,WAAW,EAAE,CAAC;YACpD,OAAO,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC;QAED,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,gBAAgB,IAAI,CAAC,SAAS,CAAC,CAAA,MAAA,QAAQ,CAAC,IAAI,0CAAE,KAAK,KAAI,eAAe,CAAC,EAAE,CAAC,CAAC;QAC5F,CAAC;QAGD,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC;QACjE,OAAO,EAAE,CAAC;IACX,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,wBAAwB,UAAU,UAAU,CAAC,CAAC;AAC/D,CAAC"}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
import { IDataObject } from 'n8n-workflow';
|
2
|
+
export interface PiApiCredentials {
|
3
|
+
apiKey: string;
|
4
|
+
}
|
5
|
+
export interface FluxTaskResponse {
|
6
|
+
code: number;
|
7
|
+
message: string;
|
8
|
+
data: {
|
9
|
+
task_id: string;
|
10
|
+
model: string;
|
11
|
+
task_type: string;
|
12
|
+
status: string;
|
13
|
+
input: IDataObject;
|
14
|
+
output: IDataObject | null;
|
15
|
+
meta: {
|
16
|
+
created_at: string;
|
17
|
+
started_at: string;
|
18
|
+
ended_at: string;
|
19
|
+
usage?: {
|
20
|
+
type: string;
|
21
|
+
frozen: number;
|
22
|
+
consume: number;
|
23
|
+
};
|
24
|
+
is_using_private_pool?: boolean;
|
25
|
+
};
|
26
|
+
detail: null;
|
27
|
+
logs: IDataObject[];
|
28
|
+
error: {
|
29
|
+
code: number;
|
30
|
+
raw_message: string;
|
31
|
+
message: string;
|
32
|
+
detail: null;
|
33
|
+
};
|
34
|
+
};
|
35
|
+
}
|
36
|
+
export interface KlingTextToVideoParams {
|
37
|
+
prompt: string;
|
38
|
+
negative_prompt?: string;
|
39
|
+
duration: number;
|
40
|
+
aspect_ratio: string;
|
41
|
+
mode: string;
|
42
|
+
version: string;
|
43
|
+
cfg_scale: number;
|
44
|
+
}
|
45
|
+
export interface KlingImageToVideoParams extends KlingTextToVideoParams {
|
46
|
+
image_url?: string;
|
47
|
+
image_tail_url?: string;
|
48
|
+
elements?: Array<{
|
49
|
+
image_url: string;
|
50
|
+
}>;
|
51
|
+
}
|
52
|
+
export interface KlingLipSyncParams {
|
53
|
+
origin_task_id: string;
|
54
|
+
tts_text?: string;
|
55
|
+
tts_timbre?: string;
|
56
|
+
tts_speed?: number;
|
57
|
+
local_dubbing_url?: string;
|
58
|
+
tts_emotion?: string;
|
59
|
+
}
|
60
|
+
export interface KlingEffectsParams {
|
61
|
+
image_url: string;
|
62
|
+
effect: string;
|
63
|
+
}
|
64
|
+
export interface KlingTryOnParams {
|
65
|
+
model_input: string;
|
66
|
+
dress_input?: string;
|
67
|
+
upper_input?: string;
|
68
|
+
lower_input?: string;
|
69
|
+
batch_size?: number;
|
70
|
+
}
|
71
|
+
export interface HailuoBaseParams {
|
72
|
+
prompt?: string;
|
73
|
+
expand_prompt?: boolean;
|
74
|
+
model: string;
|
75
|
+
}
|
76
|
+
export interface HailuoTextToVideoParams extends HailuoBaseParams {
|
77
|
+
prompt: string;
|
78
|
+
image_url?: never;
|
79
|
+
}
|
80
|
+
export interface HailuoImageToVideoParams extends HailuoBaseParams {
|
81
|
+
image_url: string;
|
82
|
+
prompt?: string;
|
83
|
+
}
|
84
|
+
export interface HailuoSubjectVideoParams extends HailuoBaseParams {
|
85
|
+
prompt: string;
|
86
|
+
image_url: string;
|
87
|
+
}
|
88
|
+
export interface SkyreelsImageToVideoParams {
|
89
|
+
prompt: string;
|
90
|
+
negative_prompt?: string;
|
91
|
+
image: string;
|
92
|
+
aspect_ratio?: string;
|
93
|
+
guidance_scale?: number;
|
94
|
+
}
|
95
|
+
export interface Trellis3DModelParams {
|
96
|
+
image: string;
|
97
|
+
seed?: number;
|
98
|
+
ss_sampling_steps?: number;
|
99
|
+
slat_sampling_steps?: number;
|
100
|
+
ss_guidance_strength?: number;
|
101
|
+
slat_guidance_strength?: number;
|
102
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Interfaces.js","sourceRoot":"","sources":["../../../../nodes/PiAPI/shared/Interfaces.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
{
|
2
|
+
"name": "n8n-nodes-piapi",
|
3
|
+
"version": "0.1.0",
|
4
|
+
"description": "PiAPI workflow nodes",
|
5
|
+
"keywords": [
|
6
|
+
"n8n-community-node-package",
|
7
|
+
"n8n",
|
8
|
+
"piapi",
|
9
|
+
"image to image",
|
10
|
+
"image to text",
|
11
|
+
"try on",
|
12
|
+
"text to video",
|
13
|
+
"image to video",
|
14
|
+
"lip sync"
|
15
|
+
],
|
16
|
+
"license": "MIT",
|
17
|
+
"homepage": "https://piapi.ai/workspace?via=valics",
|
18
|
+
"author": {
|
19
|
+
"name": "Valics Lehel",
|
20
|
+
"email": "lvalics@gmail.com"
|
21
|
+
},
|
22
|
+
"repository": {
|
23
|
+
"type": "git",
|
24
|
+
"url": "https://github.com/lvalics/n8n-nodes-piapi.git"
|
25
|
+
},
|
26
|
+
"engines": {
|
27
|
+
"node": ">=18.10",
|
28
|
+
"pnpm": ">=9.1"
|
29
|
+
},
|
30
|
+
"packageManager": "pnpm@9.1.4",
|
31
|
+
"main": "index.js",
|
32
|
+
"scripts": {
|
33
|
+
"clean": "rm -rf dist",
|
34
|
+
"build": "npm run clean && tsc && gulp build:icons",
|
35
|
+
"dev": "tsc --watch",
|
36
|
+
"format": "prettier nodes credentials --write",
|
37
|
+
"lint": "echo 'Linting disabled temporarily'",
|
38
|
+
"lintfix": "echo 'Linting disabled temporarily'",
|
39
|
+
"prepublishOnly": "npm run build",
|
40
|
+
"runn8n": "npx nodemon -q -e js,ts,yml,yaml,json,node,graphql,env,env.sample --exec n8n start"
|
41
|
+
},
|
42
|
+
"files": [
|
43
|
+
"dist"
|
44
|
+
],
|
45
|
+
"n8n": {
|
46
|
+
"n8nNodesApiVersion": 1,
|
47
|
+
"credentials": [
|
48
|
+
"dist/credentials/PiAPI.credentials.js"
|
49
|
+
],
|
50
|
+
"nodes": [
|
51
|
+
"dist/nodes/PiAPI/Flux/FluxTextToImage.node.js",
|
52
|
+
"dist/nodes/PiAPI/Flux/FluxImageToImage.node.js",
|
53
|
+
"dist/nodes/PiAPI/TaskStatus/PiAPITaskStatus.node.js",
|
54
|
+
"dist/nodes/PiAPI/DreamMachine/DreamMachineTextToVideo.node.js",
|
55
|
+
"dist/nodes/PiAPI/DreamMachine/DreamMachineImageToVideo.node.js",
|
56
|
+
"dist/nodes/PiAPI/DreamMachine/DreamMachineExtendVideo.node.js",
|
57
|
+
"dist/nodes/PiAPI/WanX/WanXTextToVideo.node.js",
|
58
|
+
"dist/nodes/PiAPI/WanX/WanXImageToVideo.node.js"
|
59
|
+
]
|
60
|
+
},
|
61
|
+
"devDependencies": {
|
62
|
+
"@types/node": "^22.13.10",
|
63
|
+
"@typescript-eslint/parser": "~8.26.1",
|
64
|
+
"eslint": "^9.22.0",
|
65
|
+
"eslint-plugin-jsdoc": "^50.6.6",
|
66
|
+
"eslint-plugin-n8n-nodes-base": "^1.16.3",
|
67
|
+
"gulp": "^5.0.0",
|
68
|
+
"i": "^0.3.7",
|
69
|
+
"n8n-workflow": "~1.70.0",
|
70
|
+
"prettier": "^3.5.3",
|
71
|
+
"typescript": "~5.8.2"
|
72
|
+
},
|
73
|
+
"dependencies": {
|
74
|
+
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
75
|
+
"axios": "^1.8.3"
|
76
|
+
},
|
77
|
+
"pnpm": {
|
78
|
+
"overrides": {
|
79
|
+
"axios": "1.8.3"
|
80
|
+
},
|
81
|
+
"ignoredBuiltDependencies": [
|
82
|
+
"eslint-plugin-n8n-nodes-base"
|
83
|
+
],
|
84
|
+
"onlyBuiltDependencies": [
|
85
|
+
"es5-ext",
|
86
|
+
"eslint-plugin-n8n-nodes-base"
|
87
|
+
]
|
88
|
+
},
|
89
|
+
"directories": {
|
90
|
+
"doc": "docs"
|
91
|
+
},
|
92
|
+
"bugs": {
|
93
|
+
"url": "https://github.com/lvalics/n8n-nodes-piapi/issues"
|
94
|
+
}
|
95
|
+
}
|