n8n-nodes-apexapi 0.1.6 → 0.1.7
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.
|
@@ -137,7 +137,16 @@ class ApexApi {
|
|
|
137
137
|
placeholder: 'Add Option',
|
|
138
138
|
displayOptions: { show: { resource: ['image'] } },
|
|
139
139
|
default: {},
|
|
140
|
-
options: [
|
|
140
|
+
options: [
|
|
141
|
+
{ displayName: 'Number of Images', name: 'n', type: 'number', default: 1 },
|
|
142
|
+
{
|
|
143
|
+
displayName: 'Reference Image URL',
|
|
144
|
+
name: 'imageUrl',
|
|
145
|
+
type: 'string',
|
|
146
|
+
default: '',
|
|
147
|
+
description: 'Source image for image-editing / img2img models (e.g. fal flux/edit, nano-banana/edit). Ignored by text-to-image models.',
|
|
148
|
+
},
|
|
149
|
+
],
|
|
141
150
|
},
|
|
142
151
|
// ---- Video ----
|
|
143
152
|
{
|
|
@@ -291,6 +300,7 @@ class ApexApi {
|
|
|
291
300
|
prompt: this.getNodeParameter('prompt', i),
|
|
292
301
|
size,
|
|
293
302
|
n: options.n,
|
|
303
|
+
imageUrl: options.imageUrl || undefined,
|
|
294
304
|
});
|
|
295
305
|
const resp = await (0, transport_1.apexApiRequest)(ctx, 'POST', '/images/generations', body);
|
|
296
306
|
const parsed = (0, image_1.parseImageResponse)(resp);
|
package/dist/shared/image.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-apexapi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "n8n community node for ApexApi — call 14 AI providers (OpenAI, Anthropic, Google, Mistral, and more) through one OpenAI-compatible API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|