n8n-nodes-useapi
Version:
Ability to use multiple Midjourney, Riffusion, Mureka, Runway, MiniMax, InsightFaceSwap, Pika and PixVerse accounts complete with automated load balancing.
68 lines • 2.27 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.UseApiMidjourney = void 0;
class UseApiMidjourney {
constructor() {
this.name = 'useApiMidjourney';
this.displayName = 'UseAPI Midjourney Credentials';
this.documentationUrl = 'https://useapi.net/docs/start-here/setup-midjourney';
this.properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
description: 'UseAPI API Key',
},
{
displayName: 'Discord Token',
name: 'discordToken',
type: 'string',
typeOptions: { password: true },
default: '',
description: 'Discord authentication token',
},
{
displayName: 'Discord Server',
name: 'discordServer',
type: 'string',
default: '',
description: 'Discord server ID',
},
{
displayName: 'Discord Channel',
name: 'discordChannel',
type: 'string',
default: '',
description: 'Discord channel ID',
},
{
displayName: 'Max Jobs',
name: 'maxJobs',
type: 'number',
default: 3,
description: 'Maximum number of concurrent jobs (3 for Basic/Standard plans, up to 15 for Pro/Mega plans)',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
'Authorization': '=Bearer {{$credentials.apiKey}}',
'Accept': 'application/json',
},
},
};
this.test = {
request: {
baseURL: 'https://api.useapi.net/v2',
url: '/account',
method: 'GET'
}
};
}
}
exports.UseApiMidjourney = UseApiMidjourney;
//# sourceMappingURL=UseApiMidjourney.credentials.js.map
;