UNPKG

n8n-nodes-ksc-comfyui

Version:

n8n node to integrate with ComfyUI stable diffusion workflows for image transformations

43 lines 1.41 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ComfyUIApi = void 0; class ComfyUIApi { constructor() { this.name = 'comfyUIApi'; this.displayName = 'ComfyUI API'; this.documentationUrl = 'https://github.com/comfyanonymous/ComfyUI'; this.properties = [ { displayName: 'API URL', name: 'apiUrl', type: 'string', default: 'http://127.0.0.1:8188', required: true, description: 'The URL of your ComfyUI instance', }, { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true, }, default: '', required: false, description: 'API Key if authentication is enabled', }, ]; this.test = { request: { baseURL: '={{$credentials?.apiUrl}}', url: '/system_stats', method: 'GET', headers: { 'Authorization': '={{$credentials?.apiKey ? `Bearer ${$credentials.apiKey}` : undefined}}', }, }, }; } } exports.ComfyUIApi = ComfyUIApi; //# sourceMappingURL=ComfyUIApi.credentials.js.map