n8n-nodes-deapi 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 +21 -0
- package/README.md +90 -0
- package/dist/credentials/DeApi.credentials.d.ts +10 -0
- package/dist/credentials/DeApi.credentials.js +50 -0
- package/dist/credentials/DeApi.credentials.js.map +1 -0
- package/dist/credentials/deapi.svg +16 -0
- package/dist/nodes/Deapi/Deapi.node.d.ts +6 -0
- package/dist/nodes/Deapi/Deapi.node.js +166 -0
- package/dist/nodes/Deapi/Deapi.node.js.map +1 -0
- package/dist/nodes/Deapi/Deapi.node.json +18 -0
- package/dist/nodes/Deapi/DeapiTrigger.node.d.ts +12 -0
- package/dist/nodes/Deapi/DeapiTrigger.node.js +154 -0
- package/dist/nodes/Deapi/DeapiTrigger.node.js.map +1 -0
- package/dist/nodes/Deapi/DeapiTrigger.node.json +18 -0
- package/dist/nodes/Deapi/actions/audio/index.d.ts +4 -0
- package/dist/nodes/Deapi/actions/audio/index.js +62 -0
- package/dist/nodes/Deapi/actions/audio/index.js.map +1 -0
- package/dist/nodes/Deapi/actions/audio/transcribe.operation.d.ts +28 -0
- package/dist/nodes/Deapi/actions/audio/transcribe.operation.js +89 -0
- package/dist/nodes/Deapi/actions/audio/transcribe.operation.js.map +1 -0
- package/dist/nodes/Deapi/actions/image/generate.operation.d.ts +28 -0
- package/dist/nodes/Deapi/actions/image/generate.operation.js +484 -0
- package/dist/nodes/Deapi/actions/image/generate.operation.js.map +1 -0
- package/dist/nodes/Deapi/actions/image/index.d.ts +6 -0
- package/dist/nodes/Deapi/actions/image/index.js +80 -0
- package/dist/nodes/Deapi/actions/image/index.js.map +1 -0
- package/dist/nodes/Deapi/actions/image/removeBackground.operation.d.ts +28 -0
- package/dist/nodes/Deapi/actions/image/removeBackground.operation.js +79 -0
- package/dist/nodes/Deapi/actions/image/removeBackground.operation.js.map +1 -0
- package/dist/nodes/Deapi/actions/image/upscale.operation.d.ts +28 -0
- package/dist/nodes/Deapi/actions/image/upscale.operation.js +79 -0
- package/dist/nodes/Deapi/actions/image/upscale.operation.js.map +1 -0
- package/dist/nodes/Deapi/actions/node.type.d.ts +9 -0
- package/dist/nodes/Deapi/actions/node.type.js +3 -0
- package/dist/nodes/Deapi/actions/node.type.js.map +1 -0
- package/dist/nodes/Deapi/actions/prompt/imagePromptBooster.operation.d.ts +28 -0
- package/dist/nodes/Deapi/actions/prompt/imagePromptBooster.operation.js +68 -0
- package/dist/nodes/Deapi/actions/prompt/imagePromptBooster.operation.js.map +1 -0
- package/dist/nodes/Deapi/actions/prompt/index.d.ts +5 -0
- package/dist/nodes/Deapi/actions/prompt/index.js +71 -0
- package/dist/nodes/Deapi/actions/prompt/index.js.map +1 -0
- package/dist/nodes/Deapi/actions/prompt/videoPromptBooster.operation.d.ts +28 -0
- package/dist/nodes/Deapi/actions/prompt/videoPromptBooster.operation.js +93 -0
- package/dist/nodes/Deapi/actions/prompt/videoPromptBooster.operation.js.map +1 -0
- package/dist/nodes/Deapi/actions/router.d.ts +2 -0
- package/dist/nodes/Deapi/actions/router.js +102 -0
- package/dist/nodes/Deapi/actions/router.js.map +1 -0
- package/dist/nodes/Deapi/actions/video/generate.operation.d.ts +28 -0
- package/dist/nodes/Deapi/actions/video/generate.operation.js +477 -0
- package/dist/nodes/Deapi/actions/video/generate.operation.js.map +1 -0
- package/dist/nodes/Deapi/actions/video/index.d.ts +5 -0
- package/dist/nodes/Deapi/actions/video/index.js +71 -0
- package/dist/nodes/Deapi/actions/video/index.js.map +1 -0
- package/dist/nodes/Deapi/actions/video/transcribe.operation.d.ts +28 -0
- package/dist/nodes/Deapi/actions/video/transcribe.operation.js +141 -0
- package/dist/nodes/Deapi/actions/video/transcribe.operation.js.map +1 -0
- package/dist/nodes/Deapi/deapi.svg +16 -0
- package/dist/nodes/Deapi/helpers/binary-data.d.ts +7 -0
- package/dist/nodes/Deapi/helpers/binary-data.js +38 -0
- package/dist/nodes/Deapi/helpers/binary-data.js.map +1 -0
- package/dist/nodes/Deapi/helpers/formdata.d.ts +8 -0
- package/dist/nodes/Deapi/helpers/formdata.js +23 -0
- package/dist/nodes/Deapi/helpers/formdata.js.map +1 -0
- package/dist/nodes/Deapi/helpers/interfaces.d.ts +81 -0
- package/dist/nodes/Deapi/helpers/interfaces.js +3 -0
- package/dist/nodes/Deapi/helpers/interfaces.js.map +1 -0
- package/dist/nodes/Deapi/helpers/webhook-verification.d.ts +1 -0
- package/dist/nodes/Deapi/helpers/webhook-verification.js +58 -0
- package/dist/nodes/Deapi/helpers/webhook-verification.js.map +1 -0
- package/dist/nodes/Deapi/transport/index.d.ts +9 -0
- package/dist/nodes/Deapi/transport/index.js +29 -0
- package/dist/nodes/Deapi/transport/index.js.map +1 -0
- package/dist/package.json +82 -0
- package/package.json +80 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.router = router;
|
|
37
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
38
|
+
const image = __importStar(require("./image"));
|
|
39
|
+
const video = __importStar(require("./video"));
|
|
40
|
+
const audio = __importStar(require("./audio"));
|
|
41
|
+
const prompt = __importStar(require("./prompt"));
|
|
42
|
+
async function router() {
|
|
43
|
+
const returnData = [];
|
|
44
|
+
const items = this.getInputData();
|
|
45
|
+
const resource = this.getNodeParameter('resource', 0);
|
|
46
|
+
const operation = this.getNodeParameter('operation', 0);
|
|
47
|
+
const deApiTypeData = {
|
|
48
|
+
resource,
|
|
49
|
+
operation,
|
|
50
|
+
};
|
|
51
|
+
let execute;
|
|
52
|
+
switch (deApiTypeData.resource) {
|
|
53
|
+
case 'image':
|
|
54
|
+
execute = image[deApiTypeData.operation].execute;
|
|
55
|
+
break;
|
|
56
|
+
case 'video':
|
|
57
|
+
execute = video[deApiTypeData.operation].execute;
|
|
58
|
+
break;
|
|
59
|
+
case 'audio':
|
|
60
|
+
execute = audio[deApiTypeData.operation].execute;
|
|
61
|
+
break;
|
|
62
|
+
case 'prompt':
|
|
63
|
+
execute = prompt[deApiTypeData.operation].execute;
|
|
64
|
+
break;
|
|
65
|
+
default:
|
|
66
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not supported!`);
|
|
67
|
+
}
|
|
68
|
+
const waitingOperations = new Set([
|
|
69
|
+
'image:generate',
|
|
70
|
+
'image:removeBackground',
|
|
71
|
+
'image:upscale',
|
|
72
|
+
'video:generate',
|
|
73
|
+
'video:transcribe',
|
|
74
|
+
'audio:transcribe',
|
|
75
|
+
]);
|
|
76
|
+
const isWaiting = waitingOperations.has(`${resource}:${operation}`);
|
|
77
|
+
const itemCount = isWaiting ? 1 : items.length;
|
|
78
|
+
for (let i = 0; i < itemCount; i++) {
|
|
79
|
+
try {
|
|
80
|
+
const responseData = await execute.call(this, i);
|
|
81
|
+
returnData.push(...responseData);
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
if (this.continueOnFail()) {
|
|
85
|
+
returnData.push({ json: { error: error.message }, pairedItem: { item: i } });
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
if (error.context) {
|
|
90
|
+
error.context.itemIndex = i;
|
|
91
|
+
throw error;
|
|
92
|
+
}
|
|
93
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, {
|
|
94
|
+
itemIndex: i,
|
|
95
|
+
description: error.description,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return [returnData];
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=router.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.js","sourceRoot":"","sources":["../../../../nodes/Deapi/actions/router.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAsEC;AA9ED,+CAAyF;AAGzF,+CAAiC;AACjC,+CAAiC;AACjC,+CAAiC;AACjC,iDAAmC;AAE5B,KAAK,UAAU,MAAM;IAC3B,MAAM,UAAU,GAAyB,EAAE,CAAC;IAE5C,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAClC,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AAI,CAAC;YACJ,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YACjD,UAAU,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,CAAC;QAClC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;gBAC3B,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;gBAC7E,SAAS;YACV,CAAC;iBAAM,CAAC;gBAEP,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;oBACnB,KAAK,CAAC,OAAO,CAAC,SAAS,GAAG,CAAC,CAAC;oBAC5B,MAAM,KAAK,CAAC;gBACb,CAAC;gBAED,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE;oBACnD,SAAS,EAAE,CAAC;oBACZ,WAAW,EAAE,KAAK,CAAC,WAAW;iBAC9B,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;IACF,CAAC;IAED,OAAO,CAAC,UAAU,CAAC,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const description: {
|
|
3
|
+
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
4
|
+
displayName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: import("n8n-workflow").NodePropertyTypes;
|
|
7
|
+
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
|
|
8
|
+
default: import("n8n-workflow").NodeParameterValueType;
|
|
9
|
+
description?: string;
|
|
10
|
+
hint?: string;
|
|
11
|
+
disabledOptions?: import("n8n-workflow").IDisplayOptions;
|
|
12
|
+
options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
isNodeSetting?: boolean;
|
|
15
|
+
noDataExpression?: boolean;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
routing?: import("n8n-workflow").INodePropertyRouting;
|
|
18
|
+
credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
|
|
19
|
+
extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
|
|
20
|
+
modes?: import("n8n-workflow").INodePropertyMode[];
|
|
21
|
+
requiresDataPath?: "single" | "multiple";
|
|
22
|
+
doNotInherit?: boolean;
|
|
23
|
+
validateType?: import("n8n-workflow").FieldType;
|
|
24
|
+
ignoreValidationDuringExecution?: boolean;
|
|
25
|
+
allowArbitraryValues?: boolean;
|
|
26
|
+
resolvableField?: boolean;
|
|
27
|
+
}[];
|
|
28
|
+
export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
|
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
+
const transport_1 = require("../../transport");
|
|
7
|
+
const binary_data_1 = require("../../helpers/binary-data");
|
|
8
|
+
const formdata_1 = require("../../helpers/formdata");
|
|
9
|
+
const properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Source',
|
|
12
|
+
name: 'source',
|
|
13
|
+
type: 'options',
|
|
14
|
+
required: true,
|
|
15
|
+
description: 'Generate video from text prompt only or from image(s)',
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Text Prompt',
|
|
19
|
+
value: 'text',
|
|
20
|
+
description: 'Generate a video from a text description only',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Image(s)',
|
|
24
|
+
value: 'image',
|
|
25
|
+
description: 'Generate a video using first frame image (and optionally last frame)',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
default: 'text',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Prompt',
|
|
32
|
+
name: 'prompt',
|
|
33
|
+
type: 'string',
|
|
34
|
+
required: true,
|
|
35
|
+
placeholder: 'e.g. A beautiful sunset over mountains',
|
|
36
|
+
description: 'A text description of the desired video',
|
|
37
|
+
default: '',
|
|
38
|
+
typeOptions: {
|
|
39
|
+
rows: 2,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Binary Field Name For The First Frame',
|
|
44
|
+
name: 'firstFrame',
|
|
45
|
+
type: 'string',
|
|
46
|
+
default: 'data',
|
|
47
|
+
required: true,
|
|
48
|
+
placeholder: 'e.g. data',
|
|
49
|
+
description: 'The name of the binary field containing the first frame',
|
|
50
|
+
displayOptions: {
|
|
51
|
+
show: {
|
|
52
|
+
source: ['image'],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Model',
|
|
58
|
+
name: 'model',
|
|
59
|
+
type: 'options',
|
|
60
|
+
description: 'The model to use for video generation',
|
|
61
|
+
default: 'Ltx2_19B_Dist_FP8',
|
|
62
|
+
required: true,
|
|
63
|
+
options: [
|
|
64
|
+
{
|
|
65
|
+
name: 'LTX-Video-0.9.8 13B',
|
|
66
|
+
value: 'Ltxv_13B_0_9_8_Distilled_FP8',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'LTX-2 19B Distilled FP8',
|
|
70
|
+
value: 'Ltx2_19B_Dist_FP8',
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
displayName: 'Ratio',
|
|
76
|
+
name: 'ratio',
|
|
77
|
+
type: 'options',
|
|
78
|
+
description: 'Aspect ratio of the generated video',
|
|
79
|
+
required: true,
|
|
80
|
+
options: [
|
|
81
|
+
{
|
|
82
|
+
name: 'Square',
|
|
83
|
+
value: 'square',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'Landscape',
|
|
87
|
+
value: 'landscape',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'Portrait',
|
|
91
|
+
value: 'portrait',
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
default: 'square',
|
|
95
|
+
noDataExpression: true,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
displayName: 'Options',
|
|
99
|
+
name: 'options',
|
|
100
|
+
placeholder: 'Add Option',
|
|
101
|
+
type: 'collection',
|
|
102
|
+
default: {},
|
|
103
|
+
options: [
|
|
104
|
+
{
|
|
105
|
+
displayName: 'Binary Field Name For The Last Frame',
|
|
106
|
+
name: 'lastFrame',
|
|
107
|
+
type: 'string',
|
|
108
|
+
default: 'data1',
|
|
109
|
+
placeholder: 'e.g. data',
|
|
110
|
+
description: 'The name of the binary field containing the last frame',
|
|
111
|
+
displayOptions: {
|
|
112
|
+
show: {
|
|
113
|
+
'/source': ['image'],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
displayName: 'Frames',
|
|
119
|
+
name: 'Ltx1Frames',
|
|
120
|
+
type: 'number',
|
|
121
|
+
description: 'Number of video frames to generate',
|
|
122
|
+
typeOptions: {
|
|
123
|
+
maxValue: 120,
|
|
124
|
+
minValue: 30,
|
|
125
|
+
numberPrecision: 0,
|
|
126
|
+
},
|
|
127
|
+
displayOptions: {
|
|
128
|
+
show: {
|
|
129
|
+
'/model': ['Ltxv_13B_0_9_8_Distilled_FP8'],
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
default: 120,
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
displayName: 'Frames',
|
|
136
|
+
name: 'Ltx2Frames',
|
|
137
|
+
type: 'number',
|
|
138
|
+
description: 'Number of video frames to generate',
|
|
139
|
+
typeOptions: {
|
|
140
|
+
maxValue: 241,
|
|
141
|
+
minValue: 49,
|
|
142
|
+
numberPrecision: 0,
|
|
143
|
+
},
|
|
144
|
+
displayOptions: {
|
|
145
|
+
show: {
|
|
146
|
+
'/model': ['Ltx2_19B_Dist_FP8'],
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
default: 120,
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
displayName: 'Negative Prompt',
|
|
153
|
+
name: 'negativePrompt',
|
|
154
|
+
type: 'string',
|
|
155
|
+
placeholder: 'e.g. blur, darkness, noise',
|
|
156
|
+
description: 'Elements to avoid in the generated video',
|
|
157
|
+
default: '',
|
|
158
|
+
typeOptions: {
|
|
159
|
+
rows: 1,
|
|
160
|
+
},
|
|
161
|
+
displayOptions: {
|
|
162
|
+
show: {
|
|
163
|
+
'/model': ['Ltxv_13B_0_9_8_Distilled_FP8'],
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
displayName: 'Resolution',
|
|
169
|
+
name: 'Ltx1LandscapeSize',
|
|
170
|
+
type: 'options',
|
|
171
|
+
description: 'Width and height of the generated video in pixels',
|
|
172
|
+
options: [
|
|
173
|
+
{
|
|
174
|
+
name: '768x432',
|
|
175
|
+
value: '768x432',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: '640x360',
|
|
179
|
+
value: '640x360',
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: '512x288',
|
|
183
|
+
value: '512x288',
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
displayOptions: {
|
|
187
|
+
show: {
|
|
188
|
+
'/model': ['Ltxv_13B_0_9_8_Distilled_FP8'],
|
|
189
|
+
'/ratio': ['landscape'],
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
default: '512x288',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
displayName: 'Resolution',
|
|
196
|
+
name: 'Ltx1PortraitSize',
|
|
197
|
+
type: 'options',
|
|
198
|
+
description: 'Width and height of the generated video in pixels',
|
|
199
|
+
options: [
|
|
200
|
+
{
|
|
201
|
+
name: '614x768',
|
|
202
|
+
value: '614x768',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: '512x640',
|
|
206
|
+
value: '512x640',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: '410x512',
|
|
210
|
+
value: '410x512',
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
displayOptions: {
|
|
214
|
+
show: {
|
|
215
|
+
'/model': ['Ltxv_13B_0_9_8_Distilled_FP8'],
|
|
216
|
+
'/ratio': ['portrait'],
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
default: '410x512',
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
displayName: 'Resolution',
|
|
223
|
+
name: 'Ltx1SquareSize',
|
|
224
|
+
type: 'options',
|
|
225
|
+
description: 'Width and height of the generated video in pixels',
|
|
226
|
+
options: [
|
|
227
|
+
{
|
|
228
|
+
name: '768x768',
|
|
229
|
+
value: '768x768',
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: '512x512',
|
|
233
|
+
value: '512x512',
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
name: '256x256',
|
|
237
|
+
value: '256x256',
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
displayOptions: {
|
|
241
|
+
show: {
|
|
242
|
+
'/model': ['Ltxv_13B_0_9_8_Distilled_FP8'],
|
|
243
|
+
'/ratio': ['square'],
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
default: '512x512',
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
displayName: 'Resolution',
|
|
250
|
+
name: 'Ltx2LandscapeSize',
|
|
251
|
+
type: 'options',
|
|
252
|
+
description: 'Width and height of the generated video in pixels',
|
|
253
|
+
options: [
|
|
254
|
+
{
|
|
255
|
+
name: '1024x576',
|
|
256
|
+
value: '1024x576',
|
|
257
|
+
},
|
|
258
|
+
],
|
|
259
|
+
displayOptions: {
|
|
260
|
+
show: {
|
|
261
|
+
'/model': ['Ltx2_19B_Dist_FP8'],
|
|
262
|
+
'/ratio': ['landscape'],
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
default: '1024x576',
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
displayName: 'Resolution',
|
|
269
|
+
name: 'Ltx2PortraitSize',
|
|
270
|
+
type: 'options',
|
|
271
|
+
description: 'Width and height of the generated video in pixels',
|
|
272
|
+
options: [
|
|
273
|
+
{
|
|
274
|
+
name: '720x900',
|
|
275
|
+
value: '720x900',
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: '819x1024',
|
|
279
|
+
value: '819x1024',
|
|
280
|
+
},
|
|
281
|
+
],
|
|
282
|
+
displayOptions: {
|
|
283
|
+
show: {
|
|
284
|
+
'/model': ['Ltx2_19B_Dist_FP8'],
|
|
285
|
+
'/ratio': ['portrait'],
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
default: '720x900',
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
displayName: 'Resolution',
|
|
292
|
+
name: 'Ltx2SquareSize',
|
|
293
|
+
type: 'options',
|
|
294
|
+
description: 'Width and height of the generated video in pixels',
|
|
295
|
+
options: [
|
|
296
|
+
{
|
|
297
|
+
name: '768x768',
|
|
298
|
+
value: '768x768',
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
name: '512x512',
|
|
302
|
+
value: '512x512',
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
name: '1024x1024',
|
|
306
|
+
value: '1024x1024',
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
displayOptions: {
|
|
310
|
+
show: {
|
|
311
|
+
'/model': ['Ltx2_19B_Dist_FP8'],
|
|
312
|
+
'/ratio': ['square'],
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
default: '768x768',
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
displayName: 'Seed',
|
|
319
|
+
name: 'seed',
|
|
320
|
+
type: 'number',
|
|
321
|
+
description: 'Random seed for generation. By default seed is random.',
|
|
322
|
+
typeOptions: {
|
|
323
|
+
maxValue: 4294967295,
|
|
324
|
+
minValue: -1,
|
|
325
|
+
numberPrecision: 0,
|
|
326
|
+
},
|
|
327
|
+
default: -1,
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
displayName: 'Wait Timeout',
|
|
331
|
+
name: 'waitTimeout',
|
|
332
|
+
type: 'number',
|
|
333
|
+
description: 'Maximum time to wait for completion in seconds',
|
|
334
|
+
default: 60,
|
|
335
|
+
typeOptions: {
|
|
336
|
+
minValue: 30,
|
|
337
|
+
maxValue: 240,
|
|
338
|
+
numberPrecision: 0,
|
|
339
|
+
},
|
|
340
|
+
},
|
|
341
|
+
],
|
|
342
|
+
},
|
|
343
|
+
];
|
|
344
|
+
const displayOptions = {
|
|
345
|
+
show: {
|
|
346
|
+
operation: ['generate'],
|
|
347
|
+
resource: ['video'],
|
|
348
|
+
},
|
|
349
|
+
};
|
|
350
|
+
exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
|
|
351
|
+
async function execute(i) {
|
|
352
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
353
|
+
const source = this.getNodeParameter('source', i);
|
|
354
|
+
const prompt = this.getNodeParameter('prompt', i);
|
|
355
|
+
const model = this.getNodeParameter('model', i);
|
|
356
|
+
const ratio = this.getNodeParameter('ratio', i);
|
|
357
|
+
const options = this.getNodeParameter('options', i);
|
|
358
|
+
const frames = ((_a = options.Ltx1Frames) !== null && _a !== void 0 ? _a : options.Ltx2Frames);
|
|
359
|
+
let fps, steps, guidance;
|
|
360
|
+
if (model === 'Ltx2_19B_Dist_FP8') {
|
|
361
|
+
fps = 24;
|
|
362
|
+
steps = 8;
|
|
363
|
+
guidance = 1.0;
|
|
364
|
+
}
|
|
365
|
+
else {
|
|
366
|
+
fps = 30;
|
|
367
|
+
steps = 1;
|
|
368
|
+
guidance = 0.0;
|
|
369
|
+
}
|
|
370
|
+
const size = ((_f = (_e = (_d = (_c = (_b = options.Ltx2SquareSize) !== null && _b !== void 0 ? _b : options.Ltx2LandscapeSize) !== null && _c !== void 0 ? _c : options.Ltx2PortraitSize) !== null && _d !== void 0 ? _d : options.Ltx1SquareSize) !== null && _e !== void 0 ? _e : options.Ltx1LandscapeSize) !== null && _f !== void 0 ? _f : options.Ltx1PortraitSize);
|
|
371
|
+
let width, height;
|
|
372
|
+
if (size == null) {
|
|
373
|
+
switch (`${model}-${ratio}`) {
|
|
374
|
+
case 'Ltx2_19B_Dist_FP8-square':
|
|
375
|
+
width = 768;
|
|
376
|
+
height = 768;
|
|
377
|
+
break;
|
|
378
|
+
case 'Ltx2_19B_Dist_FP8-landscape':
|
|
379
|
+
width = 1024;
|
|
380
|
+
height = 576;
|
|
381
|
+
break;
|
|
382
|
+
case 'Ltx2_19B_Dist_FP8-portrait':
|
|
383
|
+
width = 720;
|
|
384
|
+
height = 900;
|
|
385
|
+
break;
|
|
386
|
+
case 'Ltxv_13B_0_9_8_Distilled_FP8-square':
|
|
387
|
+
width = 512;
|
|
388
|
+
height = 512;
|
|
389
|
+
break;
|
|
390
|
+
case 'Ltxv_13B_0_9_8_Distilled_FP8-landscape':
|
|
391
|
+
width = 512;
|
|
392
|
+
height = 288;
|
|
393
|
+
break;
|
|
394
|
+
case 'Ltxv_13B_0_9_8_Distilled_FP8-portrait':
|
|
395
|
+
default:
|
|
396
|
+
width = 288;
|
|
397
|
+
height = 512;
|
|
398
|
+
break;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
else {
|
|
402
|
+
const parts = size.split('x').map(Number);
|
|
403
|
+
width = parts[0];
|
|
404
|
+
height = parts[1];
|
|
405
|
+
if (parts.length !== 2 || !Number.isFinite(width) || !Number.isFinite(height)) {
|
|
406
|
+
throw new Error(`Invalid resolution format: "${size}". Expected "WIDTHxHEIGHT".`);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
const negativePrompt = options.negativePrompt;
|
|
410
|
+
let seed = options.seed;
|
|
411
|
+
if (seed == null || seed === -1) {
|
|
412
|
+
seed = Math.floor(Math.random() * 4294967296);
|
|
413
|
+
}
|
|
414
|
+
const waitTimeout = (_g = options.waitTimeout) !== null && _g !== void 0 ? _g : 60;
|
|
415
|
+
const waitTill = new Date(Date.now() + waitTimeout * 1000);
|
|
416
|
+
await this.putExecutionToWait(waitTill);
|
|
417
|
+
const webhookUrl = this.evaluateExpression('{{ $execution.resumeUrl }}', i);
|
|
418
|
+
if (source === 'text') {
|
|
419
|
+
const body = {
|
|
420
|
+
prompt: prompt,
|
|
421
|
+
model: model,
|
|
422
|
+
frames: frames !== null && frames !== void 0 ? frames : 120,
|
|
423
|
+
width: width,
|
|
424
|
+
height: height,
|
|
425
|
+
negative_prompt: negativePrompt,
|
|
426
|
+
seed: seed,
|
|
427
|
+
steps: steps,
|
|
428
|
+
guidance: guidance,
|
|
429
|
+
fps: fps,
|
|
430
|
+
webhook_url: webhookUrl,
|
|
431
|
+
};
|
|
432
|
+
await transport_1.apiRequest.call(this, 'POST', '/txt2video', { body });
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
const firstFrame = this.getNodeParameter('firstFrame', i);
|
|
436
|
+
const { fileContent, contentType, filename } = await (0, binary_data_1.getBinaryDataFile)(this, i, firstFrame);
|
|
437
|
+
const ff = {
|
|
438
|
+
filename: filename || 'file',
|
|
439
|
+
contentType,
|
|
440
|
+
content: fileContent,
|
|
441
|
+
};
|
|
442
|
+
const lastFrame = options.lastFrame;
|
|
443
|
+
let lf = null;
|
|
444
|
+
if (lastFrame) {
|
|
445
|
+
const { fileContent, contentType, filename } = await (0, binary_data_1.getBinaryDataFile)(this, i, lastFrame);
|
|
446
|
+
lf = { filename: filename || 'file', contentType, content: fileContent };
|
|
447
|
+
}
|
|
448
|
+
const request = {
|
|
449
|
+
prompt: prompt,
|
|
450
|
+
model: model,
|
|
451
|
+
first_frame_image: ff,
|
|
452
|
+
frames: frames !== null && frames !== void 0 ? frames : 120,
|
|
453
|
+
width: width,
|
|
454
|
+
height: height,
|
|
455
|
+
last_frame_image: lf,
|
|
456
|
+
negative_prompt: negativePrompt !== null && negativePrompt !== void 0 ? negativePrompt : null,
|
|
457
|
+
seed: seed,
|
|
458
|
+
steps: steps,
|
|
459
|
+
guidance: guidance,
|
|
460
|
+
fps: fps,
|
|
461
|
+
webhook_url: webhookUrl,
|
|
462
|
+
};
|
|
463
|
+
const boundary = `----n8nFormBoundary${Date.now()}`;
|
|
464
|
+
const body = (0, formdata_1.generateFormdataBody)(boundary, request);
|
|
465
|
+
await transport_1.apiRequest.call(this, 'POST', '/img2video', {
|
|
466
|
+
headers: {
|
|
467
|
+
'Content-Type': `multipart/form-data; boundary=${boundary}`,
|
|
468
|
+
},
|
|
469
|
+
option: {
|
|
470
|
+
body,
|
|
471
|
+
json: false,
|
|
472
|
+
},
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
return [this.getInputData()[i]];
|
|
476
|
+
}
|
|
477
|
+
//# sourceMappingURL=generate.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.operation.js","sourceRoot":"","sources":["../../../../../nodes/Deapi/actions/video/generate.operation.ts"],"names":[],"mappings":";;;AAsWA,0BAiKC;AAvgBD,+CAKsB;AAGtB,+CAA6C;AAC7C,2DAA8D;AAC9D,qDAA8D;AAE9D,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,uDAAuD;QACpE,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,aAAa;g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