@acedatacloud/piece-gpt-image 0.1.7 → 0.1.9

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/README.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # GPT Image for Activepieces
2
2
 
3
- Create a GPT Image task and retrieve the **same task ID** through Ace Data Cloud. The Piece has two actions: **Create GPT Image task** and **Get GPT Image task**. Submission returns an ID; the image is ready only after the lookup reports `succeeded`.
3
+ Create a GPT Image task and retrieve the **same task ID** through Ace Data Cloud. The Piece provides **Create GPT Image task**, **Edit a GPT Image**, and **Get GPT Image task**. Submission returns an ID; the image is ready only after the lookup reports `succeeded`.
4
4
 
5
- **Distribution:** Install `@acedatacloud/piece-gpt-image` (this source targets `0.1.7`; check npm for the published version) as a custom Piece in your Activepieces instance. A public npm package does not automatically enter the shared Activepieces catalog. [中文指南](README.zh-CN.md)
5
+ **Distribution:** Install `@acedatacloud/piece-gpt-image` (this source targets `0.1.9`; check npm for the published version) as a custom Piece in your Activepieces instance. A public npm package does not automatically enter the shared Activepieces catalog. [中文指南](README.zh-CN.md)
6
6
 
7
7
  ## Install and connect
8
8
 
9
- In Activepieces 0.92.2+, open **Platform Admin → Catalogue → Pieces → Install Piece → NPM Registry**. Enter `@acedatacloud/piece-gpt-image` and the published version (this release targets `0.1.7`), then install it. Search for **GPT Image** when adding a flow action. Confirm the GPT Image icon and both actions.
9
+ In Activepieces 0.92.2+, open **Platform Admin → Catalogue → Pieces → Install Piece → NPM Registry**. Enter `@acedatacloud/piece-gpt-image` and the published version (this release targets `0.1.9`), then install it. Search for **GPT Image** when adding a flow action. Confirm the GPT Image icon and all three actions.
10
10
 
11
11
  1. Register or sign in at [Ace Data Cloud Applications](https://platform.acedata.cloud/console/applications?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen). The page prepares your **General Application** card automatically. If the card has no key, select **Create API Key** first.
12
12
  2. Use the **General Application** card and confirm your account has **GPT Image** access. A General key can access the services your account is entitled to use; a service-specific key is limited to that service.
13
- 3. Click the copy button beside **API KEY** on the application card, or choose **Manage Keys → Create** to create a separate key named `Activepieces GPT Image`. Set expiry and usage limits as needed. If you restrict **Allowed APIs**, include both `/openai/images/generations` and `/openai/tasks`, then copy the key.
13
+ 3. Click the copy button beside **API KEY** on the application card, or choose **Manage Keys → Create** to create a separate key named `Activepieces GPT Image`. Set expiry and usage limits as needed. If you restrict **Allowed APIs**, allow `/openai/images/generations` and `/openai/tasks`; to edit, also allow `/openai/images/edits`. Then copy the key.
14
14
  4. Create an Activepieces connection and enter only the API key, without `Bearer `. A `platform-...` management token is not a generation API key. Keep the key in the connection, never in a flow export. Check current [pricing](https://platform.acedata.cloud/models?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen) before generation. If the General Application balance is low, click **Top Up** on that card.
15
15
 
16
16
  ## First flow
@@ -22,17 +22,25 @@ In Activepieces 0.92.2+, open **Platform Admin → Catalogue → Pieces → Inst
22
22
 
23
23
  The [credential-free quickstart flow](https://raw.githubusercontent.com/AceDataCloud/GPTImageActivepieces/main/examples/gpt-image-quickstart.json) imports with both connections empty and the task-ID mapping intact. Add your own connection before running it. Its creation action has automatic retries disabled.
24
24
 
25
- The validation snapshot contains 24 model IDs and eight quality values; the dropdowns read the current catalog when refreshed. DALL-E 2 quality choices are limited to `standard`; DALL-E 3 to `standard` or `hd`, with image count `1`. An explicit unsupported DALL-E quality is rejected before submission. Other models have their own limits; consult the current API descriptions. Image count is 1–10 and each successful image can incur a charge. `size` accepts `auto` or `WIDTHxHEIGHT`. A task lookup does not create or bill another image.
25
+ The validation snapshot contains 24 model IDs and eight quality values; the dropdowns read the current catalog when refreshed. For generation, DALL-E 2 accepts `standard` and DALL-E 3 accepts `standard` or `hd` with image count `1`. GPT Image 1, 1.5 and 2 accept `auto`, `low`, `medium` or `high`; the 2.5 and 2.6 Flare/Sunburst series additionally accept `xhigh` and `max`. Explicit unsupported choices are rejected before submission. Other models have their own limits; consult the current API descriptions. Image count is 1–10 and each successful image can incur a charge. `size` accepts `auto` or `WIDTHxHEIGHT`. A task lookup does not create or bill another image.
26
26
 
27
- Catalog lookup is anonymous and sends no connection, prompt or API key. If metadata is unavailable, the dropdown shows an explicit error instead of a partial fallback list; refresh it to retry. Existing saved flows continue using their stored model IDs and explicit quality values without a catalog lookup during execution; an unsupported explicit DALL-E quality must be corrected or cleared. The quickstart leaves quality unset so changing its model does not carry a GPT-specific quality value. This Piece implements generation and task lookup; it does not yet expose an image-editing action.
27
+ Catalog lookup is anonymous and sends no connection, prompt or API key. If metadata is unavailable, the dropdown shows an explicit error instead of a partial fallback list; refresh it to retry. Existing saved flows continue using their stored model IDs and explicit quality values without a catalog lookup during execution; an unsupported explicit DALL-E quality must be corrected or cleared. The quickstart leaves quality unset so changing its model does not carry a GPT-specific quality value. Generation and editing read their respective public API catalogs; existing saved selections do not require a catalog request during execution.
28
28
 
29
29
  Earlier validation in an isolated Activepieces CE 0.92.2 instance accepted the build archive and ran **Get GPT Image task** against an existing completed task. The flow returned `succeeded` and one final image URL. The creation action has not been used to submit a new paid image in this validation.
30
30
 
31
+ ## Edit a reference image
32
+
33
+ Import the [credential-free edit example](examples/gpt-image-edit-quickstart.json), select your connection on both steps, and replace the placeholder with your own publicly accessible HTTPS image URL. **Edit a GPT Image** accepts one URL per line or a JSON array of 1–16 URLs; DALL-E 2 accepts one square PNG up to 4 MB. Only use material you are authorized to edit. The Piece sends URLs to the API and does not download the images.
34
+
35
+ Choose an edit model from the editing catalog and enter the desired change. Optional quality and size are omitted when left empty; an omitted size lets the API use the prompt or first image. The API validates model-specific limits and each request can incur charges. Optional background, output format and input fidelity follow the listed model restrictions. GPT Image 2.6 also supports an HTTPS PNG annotation layer containing transparent pixels, composition complexity and GIF frame controls. The annotation must match the first reference image dimensions, be at most 40 MB and cannot be combined with GIF; each of the two images is limited to 16,777,216 pixels. JPEG/WebP compression is optional.
36
+
37
+ Submit the edit once, keep **Retry on Failure** off, and map its returned task_id into **Get GPT Image task**. Repeat only that lookup until it finishes. If submission times out before a task ID is returned, inspect request history before submitting again. The current action accepts URLs through JSON; direct file upload and mask-based editing require multipart support and are not exposed by this release.
38
+
31
39
  ## Troubleshoot
32
40
 
33
41
  | Result | Action |
34
42
  | --- | --- |
35
- | 401 or 403 | Check the API key, GPT Image access, and Allowed APIs for both paths. |
43
+ | 401 or 403 | Check the API key, GPT Image access, and Allowed APIs for the paths used. |
36
44
  | 400 | Check the prompt, model, `WIDTHxHEIGHT` size, and image count. |
37
45
  | `pending` | Wait and query the same task ID. Do not rerun creation. |
38
46
  | 429 | Reduce concurrency and wait; do not automatically retry paid creation. |
@@ -41,7 +49,7 @@ Earlier validation in an isolated Activepieces CE 0.92.2 instance accepted the b
41
49
 
42
50
  The Piece sends chosen inputs and the API key only to `https://api.acedata.cloud`. It returns final media URLs and removes internal routing fields from task results. [Source](https://github.com/AceDataCloud/GPTImageActivepieces) · [Support](https://github.com/AceDataCloud/GPTImageActivepieces/issues) · dev@acedata.cloud.
43
51
 
44
- Generation and task requests verify HTTPS certificates and stay on `api.acedata.cloud`. Public catalog reads use the fixed `platform.acedata.cloud` API schema endpoint without authentication, verify certificates, and do not follow redirects. Transport failures and HTTP errors are not retried automatically; inspect request history before resubmitting a creation. The Piece does not provide its own proxy setting.
52
+ Generation, editing and task requests verify HTTPS certificates and stay on `api.acedata.cloud`. Public catalog reads use fixed `platform.acedata.cloud` API schema endpoints without authentication, verify certificates, and do not follow redirects. Transport failures and HTTP errors are not retried automatically; inspect request history before resubmitting a creation. The Piece does not provide its own proxy setting.
45
53
 
46
54
  ## Visual setup references
47
55
 
package/README.zh-CN.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # GPT Image for Activepieces
2
2
 
3
- 通过 Ace Data Cloud 创建 GPT Image 任务,并按**同一个任务 ID**查询结果。Piece 提供 **Create GPT Image task** 和 **Get GPT Image task** 两个动作。提交返回 ID 并不代表图片已完成;查询到 `succeeded` 后才可使用成品。[English](README.md)
3
+ 通过 Ace Data Cloud 创建 GPT Image 任务,并按**同一个任务 ID**查询结果。Piece 提供 **Create GPT Image task**、**Edit a GPT Image** 和 **Get GPT Image task** 三个动作。提交返回 ID 并不代表图片已完成;查询到 `succeeded` 后才可使用成品。[English](README.md)
4
4
 
5
- **分发方式:**在 Activepieces 实例中将 `@acedatacloud/piece-gpt-image`(本源码目标为 `0.1.7`,已发布版本请查看 npm) 作为自定义 Piece 安装。公开 npm 包不会自动进入 Activepieces 共享目录。
5
+ **分发方式:**在 Activepieces 实例中将 `@acedatacloud/piece-gpt-image`(本源码目标为 `0.1.9`,已发布版本请查看 npm) 作为自定义 Piece 安装。公开 npm 包不会自动进入 Activepieces 共享目录。
6
6
 
7
7
  ## 安装与连接
8
8
 
9
- Activepieces 0.92.2+ 中进入 **Platform Admin → Catalogue → Pieces → Install Piece → NPM Registry**,填写 `@acedatacloud/piece-gpt-image` 和已发布版本(本次目标为 `0.1.7`)。在流程中搜索 **GPT Image**,核对 GPT Image 图标和两个动作。
9
+ Activepieces 0.92.2+ 中进入 **Platform Admin → Catalogue → Pieces → Install Piece → NPM Registry**,填写 `@acedatacloud/piece-gpt-image` 和已发布版本(本次目标为 `0.1.9`)。在流程中搜索 **GPT Image**,核对 GPT Image 图标和三个动作。
10
10
 
11
11
  1. 在 [Ace Data Cloud Applications](https://platform.acedata.cloud/console/applications?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen) 注册或登录。页面会自动准备好**通用应用**卡片。若卡片尚无 Key,请先选择**创建 API Key**。
12
12
  2. 使用**通用应用**卡片,并确认账号具备 **GPT Image** 权限。通用 Key 可访问账号已获授权的服务;专用 Key 仅限对应服务。
13
- 3. 点击应用卡片上 **API KEY** 旁的复制按钮,或通过 **Manage Keys → Create** 创建名为 `Activepieces GPT Image` 的独立 Key,按需设置有效期与用量限制。若启用 **Allowed APIs**,应同时包含 `/openai/images/generations` 与 `/openai/tasks`,创建后复制 Key。
13
+ 3. 点击应用卡片上 **API KEY** 旁的复制按钮,或通过 **Manage Keys → Create** 创建名为 `Activepieces GPT Image` 的独立 Key,按需设置有效期与用量限制。若启用 **Allowed APIs**,需允许实际使用的 `/openai/images/generations`、`/openai/tasks`;使用编辑时还需允许 `/openai/images/edits`。
14
14
  4. 创建 Activepieces 连接,只填写 API Key 本身,不加 `Bearer `。`platform-...` 管理 Token 不是生成 API Key。Key 留在连接中,不写入流程导出。生成前查看当前[价格](https://platform.acedata.cloud/models?utm_source=opensource&utm_medium=referral&utm_campaign=evergreen)。通用应用余额不足时,点击该卡片上的**充值**。
15
15
 
16
16
  ## 首次流程
@@ -22,17 +22,25 @@ Activepieces 0.92.2+ 中进入 **Platform Admin → Catalogue → Pieces → Ins
22
22
 
23
23
  [无密钥首跑流程](https://raw.githubusercontent.com/AceDataCloud/GPTImageActivepieces/main/examples/gpt-image-quickstart.json) 导入后两个连接均为空,任务 ID 映射保留。运行前请配置自己的连接;创建动作已关闭自动重试。
24
24
 
25
- 本次校验的目录包含 24 个型号和 8 个质量选项;下拉框刷新时读取当前目录。DALL-E 2 的质量选项仅含 `standard`;DALL-E 3 仅含 `standard` 或 `hd`,图片数量固定为 `1`。明确填写了不支持的 DALL-E 质量时,会在提交前报错。其它型号的参数限制以当前接口说明为准。图片数量为 1–10,每张成功图片可能单独计费;`size` 支持 `auto` 或 `WIDTHxHEIGHT`。查询任务不会再次生成或计费。
25
+ 本次校验的目录包含 24 个型号和 8 个质量选项;下拉框刷新时读取当前目录。生成时 DALL-E 2 仅支持 `standard`,DALL-E 3 支持 `standard` 或 `hd` 且数量固定为 `1`;GPT Image 1、1.5、2 支持 `auto`、`low`、`medium`、`high`,2.5/2.6 Flare 与 Sunburst 还支持 `xhigh` 和 `max`。明确选择不支持的质量会在提交前报错。其他型号限制以当前接口说明为准。图片数量为 1–10,费用取决于所选模型;`size` 支持 `auto` 或 `WIDTHxHEIGHT`。查询任务不会再次生成或计费。
26
26
 
27
- 目录读取不携带连接、提示词或 API Key。元数据不可用时,下拉框明确显示错误,不返回缩水的备用列表;刷新字段可重试。已有保存流程继续使用其保存的模型 ID 和明确指定的质量,执行时无需查询目录;不合法的 DALL-E 质量需改为支持值或清空。首跑模板不预填质量,避免切换型号时带入 GPT 专用的质量值。本 Piece 实现图片生成与任务查询,尚未提供图片编辑动作。
27
+ 目录读取不携带连接、提示词或 API Key。元数据不可用时,下拉框明确显示错误,不返回缩水的备用列表;刷新字段可重试。已有保存流程继续使用其保存的模型 ID 和明确指定的质量,执行时无需查询目录;不合法的 DALL-E 质量需改为支持值或清空。首跑模板不预填质量,避免切换型号时带入 GPT 专用的质量值。生成和编辑分别读取各自公开 API 目录;保存的模型选择执行时不依赖目录请求。
28
28
 
29
29
  此前隔离的 Activepieces CE 0.92.2 验证已接受构建归档,并通过 **Get GPT Image task** 查询一条既有完成任务;流程返回 `succeeded` 和 1 个最终图片 URL。本轮未通过创建动作提交新的付费图片任务。
30
30
 
31
+ ## 编辑参考图
32
+
33
+ 导入[无密钥编辑示例](examples/gpt-image-edit-quickstart.json),在两个步骤选择连接,将占位地址换成自己有权使用、可公开访问的 HTTPS 图片。**Edit a GPT Image** 支持每行一个链接或 JSON 数组,共 1–16 张;DALL-E 2 仅支持一张不超过 4 MB 的正方形 PNG。Piece 只把链接发送给 API,不自行下载图片。
34
+
35
+ 选择编辑模型并填写修改要求。质量和尺寸留空时不发送;尺寸由 API 根据提示词或首张图选择。可选背景、输出格式和输入保真度受模型限制;GPT Image 2.6 还支持含透明像素的 HTTPS PNG 标注层、构图复杂度和 GIF 帧参数。标注层需与首张参考图尺寸一致、不超过 40 MB,且不能和 GIF 同用;两张图各不超过 16,777,216 像素。JPEG/WebP 可选压缩等级。请先核对当期价格。
36
+
37
+ 编辑只提交一次,关闭 **Retry on Failure**,将返回的 task_id 映射到 **Get GPT Image task**,未完成时只重复查询。若提交超时且没有 ID,先查原请求历史。当前版本通过 JSON 接受 URL,直接上传文件和遮罩编辑需要 multipart 支持,尚未提供。
38
+
31
39
  ## 排障
32
40
 
33
41
  | 现象 | 处理 |
34
42
  | --- | --- |
35
- | 401 / 403 | 核对 Key、GPT Image 权限和两个路径的 Allowed APIs。 |
43
+ | 401 / 403 | 核对 Key、GPT Image 权限和实际使用路径的 Allowed APIs。 |
36
44
  | 400 | 核对提示词、模型、`WIDTHxHEIGHT` 尺寸和图片数量。 |
37
45
  | `pending` | 等待并查询同一任务 ID,不重跑创建。 |
38
46
  | 429 | 降低并发,避免自动重试付费创建。 |
@@ -41,7 +49,7 @@ Activepieces 0.92.2+ 中进入 **Platform Admin → Catalogue → Pieces → Ins
41
49
 
42
50
  Piece 只向 `https://api.acedata.cloud` 发送所选输入和 API Key,仅在终态返回媒体 URL,并过滤内部路由字段。[源码](https://github.com/AceDataCloud/GPTImageActivepieces) · [支持](https://github.com/AceDataCloud/GPTImageActivepieces/issues) · dev@acedata.cloud。
43
51
 
44
- 生成及任务请求验证 HTTPS 证书,且仅访问 `api.acedata.cloud`。公开目录从固定的 `platform.acedata.cloud` 接口 schema 地址读取,不携带认证信息,验证 HTTPS 证书且不跟随重定向。网络失败与 HTTP 错误不自动重试;重新创建前先查请求历史。Piece 不提供独立代理设置。
52
+ 生成、编辑及任务请求验证 HTTPS 证书,且仅访问 `api.acedata.cloud`。公开目录从固定的 `platform.acedata.cloud` 接口 schema 地址读取,不携带认证信息,验证 HTTPS 证书且不跟随重定向。网络失败与 HTTP 错误不自动重试;重新创建前先查请求历史。Piece 不提供独立代理设置。
45
53
 
46
54
  ## 图文配置参考
47
55
 
package/dist/src/index.js CHANGED
@@ -3,15 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.gptImage = void 0;
4
4
  const pieces_framework_1 = require("@activepieces/pieces-framework");
5
5
  const generate_image_1 = require("./lib/actions/generate-image");
6
+ const edit_image_1 = require("./lib/actions/edit-image");
6
7
  const get_task_1 = require("./lib/actions/get-task");
7
8
  const auth_1 = require("./lib/auth");
8
9
  exports.gptImage = (0, pieces_framework_1.createPiece)({
9
10
  displayName: 'GPT Image',
10
- description: 'Create GPT Image tasks and retrieve the same task through Ace Data Cloud.',
11
+ description: 'Create or edit GPT Image tasks and retrieve the same task through Ace Data Cloud.',
11
12
  logoUrl: 'https://raw.githubusercontent.com/AceDataCloud/GPTImageDify/6916f7f1ee7fdb9531abf1c3ef1c57a34061eaf7/_assets/icon.png',
12
13
  authors: ['Ace Data Cloud'],
13
14
  minimumSupportedRelease: '0.92.2',
14
15
  auth: auth_1.gptImageAuth,
15
- actions: [generate_image_1.generateImage, get_task_1.getTask],
16
+ actions: [generate_image_1.generateImage, edit_image_1.editImage, get_task_1.getTask],
16
17
  triggers: [],
17
18
  });
@@ -0,0 +1,16 @@
1
+ export declare const editImage: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
+ imageUrls: import("@activepieces/pieces-framework").LongTextProperty<true>;
3
+ prompt: import("@activepieces/pieces-framework").LongTextProperty<true>;
4
+ model: import("@activepieces/pieces-framework").DropdownProperty<string, true, undefined>;
5
+ quality: import("@activepieces/pieces-framework").DropdownProperty<string, false, undefined>;
6
+ size: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
+ count: import("@activepieces/pieces-framework").NumberProperty<true>;
8
+ background: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
9
+ outputFormat: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
10
+ inputFidelity: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
11
+ complexity: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
12
+ markupUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
13
+ frameCount: import("@activepieces/pieces-framework").NumberProperty<false>;
14
+ frameDurationMs: import("@activepieces/pieces-framework").NumberProperty<false>;
15
+ outputCompression: import("@activepieces/pieces-framework").NumberProperty<false>;
16
+ }>;
@@ -0,0 +1,190 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.editImage = void 0;
4
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
5
+ const auth_1 = require("../auth");
6
+ const catalog_1 = require("../common/catalog");
7
+ const client_1 = require("../common/client");
8
+ function httpsUrl(value, label) {
9
+ if (typeof value !== 'string' || !value.trim() || /[\s\\]/u.test(value.trim())) {
10
+ throw new Error('Enter ' + label + ' as an HTTPS URL without embedded credentials.');
11
+ }
12
+ const text = value.trim();
13
+ try {
14
+ const url = new URL(text);
15
+ if (url.protocol !== 'https:' || !url.hostname || url.username || url.password)
16
+ throw new Error();
17
+ return text;
18
+ }
19
+ catch {
20
+ throw new Error('Enter ' + label + ' as an HTTPS URL without embedded credentials.');
21
+ }
22
+ }
23
+ function referenceImages(value) {
24
+ if (typeof value !== 'string' || !value.trim())
25
+ throw new Error('Provide at least one reference image URL.');
26
+ const text = value.trim();
27
+ let items;
28
+ if (text.startsWith('[')) {
29
+ try {
30
+ items = JSON.parse(text);
31
+ }
32
+ catch {
33
+ throw new Error('Enter reference images as a JSON array or one URL per line.');
34
+ }
35
+ }
36
+ else {
37
+ items = text.split(/\r?\n/).map((item) => item.trim()).filter(Boolean);
38
+ }
39
+ if (!Array.isArray(items) || items.length < 1 || items.length > 16) {
40
+ throw new Error('Provide 1 to 16 reference image URLs.');
41
+ }
42
+ return items.map((item) => httpsUrl(item, 'each reference image'));
43
+ }
44
+ function optionalChoice(value, values, label) {
45
+ if (value === undefined || value === null || value === '')
46
+ return undefined;
47
+ if (typeof value !== 'string' || !values.includes(value))
48
+ throw new Error('Choose a supported ' + label + '.');
49
+ return value;
50
+ }
51
+ exports.editImage = (0, pieces_framework_1.createAction)({
52
+ name: 'edit_image',
53
+ displayName: 'Edit a GPT Image',
54
+ description: 'Submit one billable edit from reference image URLs and retrieve the original task ID.',
55
+ auth: auth_1.gptImageAuth,
56
+ props: {
57
+ imageUrls: pieces_framework_1.Property.LongText({
58
+ displayName: 'Reference image URLs', required: true,
59
+ description: 'Public HTTPS URLs, one per line or a JSON array; 1–16 images. DALL-E 2 accepts one. Use only material you are authorized to edit.',
60
+ }),
61
+ prompt: pieces_framework_1.Property.LongText({ displayName: 'Edit instructions', required: true }),
62
+ model: pieces_framework_1.Property.Dropdown({
63
+ auth: undefined, displayName: 'Model', required: true, defaultValue: 'gpt-image-2', refreshers: [],
64
+ description: 'Current models from the image-editing API. Model selection affects pricing.',
65
+ options: async () => (0, catalog_1.imageCatalogOptions)('model', undefined, 'edit'),
66
+ }),
67
+ quality: pieces_framework_1.Property.Dropdown({
68
+ auth: undefined, displayName: 'Quality', required: false, refreshers: ['model'],
69
+ description: 'Optional; leave empty to use the model default.',
70
+ options: async ({ model }) => (0, catalog_1.imageCatalogOptions)('quality', model, 'edit'),
71
+ }),
72
+ size: pieces_framework_1.Property.ShortText({
73
+ displayName: 'Size', required: false,
74
+ description: 'Optional auto or WIDTHxHEIGHT. When empty the API chooses a size from the prompt or first image.',
75
+ }),
76
+ count: pieces_framework_1.Property.Number({ displayName: 'Image count', required: true, defaultValue: 1,
77
+ description: '1–10; DALL-E 3 supports one. Check current model pricing.' }),
78
+ background: pieces_framework_1.Property.StaticDropdown({ displayName: 'Background', required: false,
79
+ description: 'GPT Image models only; transparent requires PNG or WebP.',
80
+ options: { options: ['auto', 'opaque', 'transparent'].map((value) => ({ label: value, value })) } }),
81
+ outputFormat: pieces_framework_1.Property.StaticDropdown({ displayName: 'Output format', required: false,
82
+ description: 'Optional; GIF is available only for GPT Image 2.6 models.',
83
+ options: { options: ['png', 'jpeg', 'webp', 'gif'].map((value) => ({ label: value, value })) } }),
84
+ inputFidelity: pieces_framework_1.Property.StaticDropdown({ displayName: 'Input fidelity', required: false,
85
+ description: 'Optional; supported for GPT Image 1 and 1.5.',
86
+ options: { options: ['low', 'high'].map((value) => ({ label: value, value })) } }),
87
+ complexity: pieces_framework_1.Property.StaticDropdown({ displayName: 'Composition complexity', required: false,
88
+ description: 'Optional; GPT Image 2.6 only.',
89
+ options: { options: ['low', 'medium', 'high'].map((value) => ({ label: value, value })) } }),
90
+ markupUrl: pieces_framework_1.Property.ShortText({ displayName: 'Annotation PNG URL', required: false,
91
+ description: 'Optional GPT Image 2.6 transparent PNG annotation, matching the first reference image dimensions; not available for GIF.',
92
+ }),
93
+ frameCount: pieces_framework_1.Property.Number({ displayName: 'GIF frame count', required: false,
94
+ description: 'Optional 2–16; only for GIF output.' }),
95
+ frameDurationMs: pieces_framework_1.Property.Number({ displayName: 'GIF frame duration (ms)', required: false,
96
+ description: 'Optional 20–655350 ms; only for GIF output.' }),
97
+ outputCompression: pieces_framework_1.Property.Number({ displayName: 'Output compression', required: false,
98
+ description: 'Optional 0–100; only for JPEG or WebP output.' }),
99
+ },
100
+ async run(context) {
101
+ const values = context.propsValue;
102
+ const prompt = typeof values.prompt === 'string' ? values.prompt.trim() : '';
103
+ const model = typeof values.model === 'string' ? values.model.trim() : '';
104
+ if (!prompt)
105
+ throw new Error('Enter edit instructions.');
106
+ if (!model)
107
+ throw new Error('Choose an editing model explicitly.');
108
+ const promptLength = Array.from(prompt).length;
109
+ if ((model === 'dall-e-2' && promptLength > 1000) ||
110
+ (model.startsWith('gpt-image-') && promptLength > 32000)) {
111
+ throw new Error('The edit instructions exceed the selected model limit.');
112
+ }
113
+ const images = referenceImages(values.imageUrls);
114
+ if (model === 'dall-e-2' && images.length !== 1)
115
+ throw new Error('DALL-E 2 accepts one reference image.');
116
+ const count = values.count ?? 1;
117
+ if (!Number.isInteger(count) || count < 1 || count > 10 || (model === 'dall-e-3' && count !== 1)) {
118
+ throw new Error('Choose 1–10 images; DALL-E 3 supports one.');
119
+ }
120
+ const size = values.size?.trim();
121
+ if (size && !/^(auto|\d+x\d+)$/.test(size))
122
+ throw new Error('Size must use auto or WIDTHxHEIGHT.');
123
+ const quality = values.quality?.trim();
124
+ if (quality && !(0, catalog_1.supportsExplicitQuality)(model, quality, 'edit')) {
125
+ throw new Error('This quality is not supported by the selected editing model.');
126
+ }
127
+ const background = optionalChoice(values.background, ['auto', 'opaque', 'transparent'], 'background');
128
+ const format = optionalChoice(values.outputFormat, ['png', 'jpeg', 'webp', 'gif'], 'output format');
129
+ const fidelity = optionalChoice(values.inputFidelity, ['low', 'high'], 'input fidelity');
130
+ const complexity = optionalChoice(values.complexity, ['low', 'medium', 'high'], 'complexity');
131
+ const is26 = /^gpt-image-2\.6-(flare|sunburst)(?::(?:reverse|official))?$/.test(model);
132
+ if (background && !model.startsWith('gpt-image-'))
133
+ throw new Error('Background is supported for GPT Image models.');
134
+ if (background === 'transparent' && format && !['png', 'webp'].includes(format)) {
135
+ throw new Error('Transparent backgrounds require PNG or WebP output.');
136
+ }
137
+ if (fidelity && !['gpt-image-1', 'gpt-image-1.5'].includes(model)) {
138
+ throw new Error('Input fidelity is supported for GPT Image 1 and 1.5.');
139
+ }
140
+ if ((complexity || format === 'gif' || values.markupUrl) && !is26) {
141
+ throw new Error('Complexity, GIF and annotation are supported for GPT Image 2.6 models.');
142
+ }
143
+ if (values.markupUrl && format === 'gif')
144
+ throw new Error('Annotation cannot be combined with GIF output.');
145
+ const markup = values.markupUrl ? httpsUrl(values.markupUrl, 'the annotation image') : undefined;
146
+ for (const [value, min, max, label] of [
147
+ [values.frameCount, 2, 16, 'GIF frame count'],
148
+ [values.frameDurationMs, 20, 655350, 'GIF frame duration'],
149
+ [values.outputCompression, 0, 100, 'output compression'],
150
+ ]) {
151
+ if (value !== undefined && value !== null && (!Number.isInteger(value) || value < min || value > max)) {
152
+ throw new Error('Choose a valid ' + label + '.');
153
+ }
154
+ }
155
+ if ((values.frameCount != null || values.frameDurationMs != null) && format !== 'gif') {
156
+ throw new Error('Frame options require GIF output.');
157
+ }
158
+ if (values.outputCompression != null && !['jpeg', 'webp'].includes(format ?? '')) {
159
+ throw new Error('Output compression requires JPEG or WebP.');
160
+ }
161
+ const body = {
162
+ image: images.length === 1 ? images[0] : images, prompt, model, n: count, async: true, response_format: 'url',
163
+ };
164
+ if (quality)
165
+ body.quality = quality;
166
+ if (size)
167
+ body.size = size;
168
+ if (background)
169
+ body.background = background;
170
+ if (format)
171
+ body.output_format = format;
172
+ if (fidelity)
173
+ body.input_fidelity = fidelity;
174
+ if (complexity)
175
+ body.complexity = complexity;
176
+ if (markup)
177
+ body.markup = markup;
178
+ if (values.frameCount != null)
179
+ body.frame_count = values.frameCount;
180
+ if (values.frameDurationMs != null)
181
+ body.frame_duration_ms = values.frameDurationMs;
182
+ if (values.outputCompression != null)
183
+ body.output_compression = values.outputCompression;
184
+ const response = await client_1.gptImageClient.post({ token: context.auth.secret_text, path: '/openai/images/edits', body });
185
+ const taskId = client_1.gptImageClient.taskIdFromSubmission(response);
186
+ if (!taskId)
187
+ throw new Error('No task ID was returned. Inspect request history before submitting again.');
188
+ return { task_id: taskId, status: 'pending', success: false };
189
+ },
190
+ });
@@ -64,6 +64,9 @@ exports.generateImage = (0, pieces_framework_1.createAction)({
64
64
  if (!Number.isInteger(count) || count < 1 || count > 10) {
65
65
  throw new Error('Image count must be a whole number from 1 to 10.');
66
66
  }
67
+ if (model === 'dall-e-3' && count !== 1) {
68
+ throw new Error('DALL-E 3 supports one image per request.');
69
+ }
67
70
  const response = await client_1.gptImageClient.post({
68
71
  token: context.auth.secret_text,
69
72
  path: '/openai/images/generations',
@@ -12,7 +12,7 @@ exports.getTask = (0, pieces_framework_1.createAction)({
12
12
  props: {
13
13
  taskId: pieces_framework_1.Property.ShortText({
14
14
  displayName: 'Task ID',
15
- description: 'Map task_id from Create GPT Image task. Query this same ID until completion.',
15
+ description: 'Map task_id from the create or edit action. Query this same ID until completion.',
16
16
  required: false,
17
17
  }),
18
18
  traceId: pieces_framework_1.Property.ShortText({
@@ -4,6 +4,6 @@ exports.gptImageAuth = void 0;
4
4
  const pieces_framework_1 = require("@activepieces/pieces-framework");
5
5
  exports.gptImageAuth = pieces_framework_1.PieceAuth.SecretText({
6
6
  displayName: 'Ace Data Cloud API key',
7
- description: 'Register or sign in at [Applications](https://platform.acedata.cloud/console/applications?utm_source=activepieces&utm_medium=referral&utm_campaign=evergreen). On the General Application card, select Create API Key first if no key appears. Then click the copy button beside API KEY. For a separate key, use Manage Keys → Create. Check service permissions, current pricing and Allowed APIs. If the General Application balance is low, click Top Up on that card. Paste only the API key without Bearer; a platform management token is not a generation key.',
7
+ description: 'Register or sign in at [Applications](https://platform.acedata.cloud/console/applications?utm_source=activepieces&utm_medium=referral&utm_campaign=evergreen). On the General Application card, select Create API Key first if no key appears. Then click the copy button beside API KEY. For a separate key, use Manage Keys → Create. Check service permissions, current pricing and Allowed APIs, including /openai/images/edits when editing. If the General Application balance is low, click Top Up on that card. Paste only the API key without Bearer; a platform management token is not an image API key.',
8
8
  required: true,
9
9
  });
@@ -1,3 +1,15 @@
1
1
  import { DropdownState } from '@activepieces/pieces-framework';
2
- export declare function supportsExplicitQuality(model: unknown, quality: string): boolean;
3
- export declare function imageCatalogOptions(field: 'model' | 'quality', model?: unknown): Promise<DropdownState<string>>;
2
+ declare const CATALOGS: {
3
+ readonly generation: {
4
+ readonly url: "https://platform.acedata.cloud/api/v1/apis/8f01fe72-8a3e-4872-8d8d-330cde179b3a/";
5
+ readonly path: "/openai/images/generations";
6
+ };
7
+ readonly edit: {
8
+ readonly url: "https://platform.acedata.cloud/api/v1/apis/fb74083e-bb68-48d5-8ba6-b5a224400cd3/";
9
+ readonly path: "/openai/images/edits";
10
+ };
11
+ };
12
+ type Operation = keyof typeof CATALOGS;
13
+ export declare function supportsExplicitQuality(model: unknown, quality: string, operation?: Operation): boolean;
14
+ export declare function imageCatalogOptions(field: 'model' | 'quality', model?: unknown, operation?: Operation): Promise<DropdownState<string>>;
15
+ export {};
@@ -36,13 +36,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.supportsExplicitQuality = supportsExplicitQuality;
37
37
  exports.imageCatalogOptions = imageCatalogOptions;
38
38
  const https = __importStar(require("node:https"));
39
- const CATALOG_URL = 'https://platform.acedata.cloud/api/v1/apis/8f01fe72-8a3e-4872-8d8d-330cde179b3a/';
40
- const GENERATION_PATH = '/openai/images/generations';
39
+ const CATALOGS = {
40
+ generation: { url: 'https://platform.acedata.cloud/api/v1/apis/8f01fe72-8a3e-4872-8d8d-330cde179b3a/', path: '/openai/images/generations' },
41
+ edit: { url: 'https://platform.acedata.cloud/api/v1/apis/fb74083e-bb68-48d5-8ba6-b5a224400cd3/', path: '/openai/images/edits' },
42
+ };
41
43
  // Public metadata uses a separate fixed destination and never receives the
42
44
  // action's connection, prompt or API key. HTTPS redirects are not followed.
43
- function readCatalog() {
45
+ function readCatalog(operation) {
44
46
  return new Promise((resolve, reject) => {
45
- const request = https.get(CATALOG_URL, {
47
+ const request = https.get(CATALOGS[operation].url, {
46
48
  rejectUnauthorized: true,
47
49
  headers: { Accept: 'application/json' },
48
50
  }, (response) => {
@@ -67,19 +69,25 @@ function readCatalog() {
67
69
  request.on('error', () => reject(new Error('Catalog network or TLS error.')));
68
70
  });
69
71
  }
70
- // The public image API documents these legacy-model quality constraints.
72
+ // The public image APIs document model-specific quality constraints.
71
73
  // Unknown models keep the service enum rather than inheriting another model's rules.
72
- function supportsExplicitQuality(model, quality) {
74
+ function supportsExplicitQuality(model, quality, operation = 'generation') {
73
75
  if (model === 'dall-e-2')
74
76
  return quality === 'standard';
75
77
  if (model === 'dall-e-3')
76
- return quality === 'standard' || quality === 'hd';
78
+ return quality === 'standard' || (operation === 'generation' && quality === 'hd');
79
+ const baseModel = typeof model === 'string' ? model.split(':', 1)[0] : '';
80
+ const common = ['auto', 'low', 'medium', 'high'];
81
+ if (['gpt-image-1', 'gpt-image-1.5', 'gpt-image-2'].includes(baseModel))
82
+ return common.includes(quality);
83
+ if (/^gpt-image-2\.[56]-(flare|sunburst)$/.test(baseModel))
84
+ return [...common, 'xhigh', 'max'].includes(quality);
77
85
  return true;
78
86
  }
79
- async function imageCatalogOptions(field, model) {
87
+ async function imageCatalogOptions(field, model, operation = 'generation') {
80
88
  try {
81
- const catalog = await readCatalog();
82
- const values = catalog.definition?.paths?.[GENERATION_PATH]?.post?.requestBody
89
+ const catalog = await readCatalog(operation);
90
+ const values = catalog.definition?.paths?.[CATALOGS[operation].path]?.post?.requestBody
83
91
  ?.content?.['application/json']?.schema?.properties?.[field]?.enum;
84
92
  if (!Array.isArray(values) || values.length === 0 ||
85
93
  !values.every((value) => typeof value === 'string' && value.trim().length > 0)) {
@@ -88,7 +96,7 @@ async function imageCatalogOptions(field, model) {
88
96
  return {
89
97
  ...(field === 'quality' ? { placeholder: 'Leave empty to use the selected model’s default.' } : {}),
90
98
  options: [...new Set(values)]
91
- .filter((value) => field !== 'quality' || supportsExplicitQuality(model, value))
99
+ .filter((value) => field !== 'quality' || supportsExplicitQuality(model, value, operation))
92
100
  .map((value) => ({ label: value, value })),
93
101
  };
94
102
  }
@@ -1,6 +1,6 @@
1
1
  declare function post({ token, path, body, }: {
2
2
  token: string;
3
- path: '/openai/images/generations' | '/openai/tasks';
3
+ path: '/openai/images/generations' | '/openai/images/edits' | '/openai/tasks';
4
4
  body: Record<string, unknown>;
5
5
  }): Promise<unknown>;
6
6
  declare function normalizeTask({ body, taskId, traceId }: {
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.gptImageClient = void 0;
4
- const pieces_common_1 = require("@activepieces/pieces-common");
5
4
  const secure_http_1 = require("../secure-http");
6
5
  async function post({ token, path, body, }) {
7
6
  const response = await secure_http_1.httpClient.sendRequest({
8
- method: pieces_common_1.HttpMethod.POST,
7
+ method: 'POST',
9
8
  url: `https://api.acedata.cloud${path}`,
10
9
  headers: {
11
10
  Authorization: `Bearer ${token}`,
@@ -23,21 +22,37 @@ function normalizeTask({ body, taskId, traceId }) {
23
22
  }
24
23
  const payload = parsePayload('response' in envelope ? envelope.response : body);
25
24
  const values = record(payload);
25
+ const returnedTaskId = stringValue(envelope.id);
26
+ const resultTaskId = stringValue(values.task_id);
27
+ if ((taskId && (!returnedTaskId || !sameTaskId(taskId, returnedTaskId))) ||
28
+ (resultTaskId && (returnedTaskId || taskId) && !sameTaskId(resultTaskId, returnedTaskId || taskId))) {
29
+ throw new Error('The response did not match the requested original task.');
30
+ }
31
+ const returnedTraceId = stringValue(envelope.trace_id);
32
+ const resultTraceId = stringValue(values.trace_id);
33
+ if ((returnedTraceId && resultTraceId && returnedTraceId !== resultTraceId) ||
34
+ (!taskId && traceId && traceId !== (returnedTraceId || resultTraceId))) {
35
+ throw new Error('The response did not match the requested original trace.');
36
+ }
26
37
  const states = collectStates(payload);
27
- const failed = states.some((state) => FAILED_STATES.has(state)) || hasFailure(payload) || Boolean(envelope.error);
28
- const unfinished = 'finished_at' in envelope && envelope.finished_at === null;
29
- const finished = !unfinished &&
30
- !failed &&
31
- ((states.length > 0 && states.every((state) => COMPLETE_STATES.has(state))) ||
32
- Boolean(envelope.finished_at && hasContent(payload)));
38
+ const envelopeState = stringValue(envelope.status) || stringValue(envelope.state);
39
+ if (envelopeState)
40
+ states.push(envelopeState.toLowerCase());
41
+ const failed = states.some((state) => FAILED_STATES.has(state)) || hasFailure(payload) ||
42
+ envelope.success === false || Boolean(envelope.error);
43
+ const hasFinish = envelope.finished_at !== undefined && envelope.finished_at !== null && envelope.finished_at !== '';
44
+ const completeStates = states.length === 0 || states.every((state) => COMPLETE_STATES.has(state));
45
+ const media = collectMediaUrls(payload);
46
+ const finished = hasFinish && !failed && completeStates && media.length > 0;
47
+ const noFinalMedia = hasFinish && !failed && completeStates && media.length === 0;
33
48
  const foundTraceId = stringValue(values.trace_id) || stringValue(envelope.trace_id) || traceId || '';
34
49
  return {
35
50
  task_id: stringValue(envelope.id) || taskId,
36
- status: failed ? 'failed' : finished ? 'succeeded' : 'pending',
51
+ status: failed || noFinalMedia ? 'failed' : finished ? 'succeeded' : 'pending',
37
52
  success: finished,
38
53
  trace_id: foundTraceId,
39
- media_urls: finished ? collectMediaUrls(payload) : [],
40
- result: sanitize(payload),
54
+ media_urls: finished ? media : [],
55
+ result: finished ? sanitize(payload) : failed ? sanitizeFailure(payload) : {},
41
56
  };
42
57
  }
43
58
  function taskIdFromSubmission(body) {
@@ -64,6 +79,10 @@ function record(value) {
64
79
  function stringValue(value) {
65
80
  return typeof value === 'string' ? value : '';
66
81
  }
82
+ function sameTaskId(a, b) {
83
+ const uuid = /^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/i;
84
+ return uuid.test(a) && uuid.test(b) ? a.toLowerCase() === b.toLowerCase() : a === b;
85
+ }
67
86
  function collectStates(value) {
68
87
  if (Array.isArray(value)) {
69
88
  return value.flatMap(collectStates);
@@ -108,9 +127,6 @@ function collectMediaUrls(value) {
108
127
  });
109
128
  return [...new Set(urls)];
110
129
  }
111
- function hasContent(value) {
112
- return Array.isArray(value) ? value.length > 0 : Object.keys(record(value)).length > 0;
113
- }
114
130
  function sanitize(value) {
115
131
  if (Array.isArray(value)) {
116
132
  return value.map(sanitize);
@@ -122,6 +138,14 @@ function sanitize(value) {
122
138
  .filter(([key]) => !SENSITIVE_KEYS.has(key.toLowerCase()) && !SENSITIVE_KEY_PATTERN.test(key))
123
139
  .map(([key, child]) => [key, key === 'error' ? 'Task failed; inspect its task or trace ID.' : sanitize(child)]));
124
140
  }
141
+ function sanitizeFailure(value) {
142
+ const item = record(value);
143
+ return {
144
+ ...(item.success === false ? { success: false } : {}),
145
+ ...(stringValue(item.task_id) ? { task_id: stringValue(item.task_id) } : {}),
146
+ ...(item.error ? { error: 'Task failed; inspect its task or trace ID.' } : {}),
147
+ };
148
+ }
125
149
  exports.gptImageClient = { post, normalizeTask, taskIdFromSubmission };
126
150
  const COMPLETE_STATES = new Set(['complete', 'completed', 'succeeded', 'succeed', 'success', 'finished']);
127
151
  const FAILED_STATES = new Set(['failed', 'error', 'cancelled', 'canceled', 'rejected']);
@@ -0,0 +1,122 @@
1
+ {
2
+ "name": "GPT Image edit quickstart",
3
+ "type": "SHARED",
4
+ "summary": "",
5
+ "description": "",
6
+ "tags": [],
7
+ "blogUrl": "",
8
+ "metadata": {
9
+ "externalId": "gpt-image-edit-quickstart"
10
+ },
11
+ "author": "Ace Data Cloud",
12
+ "categories": [],
13
+ "pieces": [
14
+ "@activepieces/piece-manual-trigger",
15
+ "@acedatacloud/piece-gpt-image"
16
+ ],
17
+ "flows": [
18
+ {
19
+ "displayName": "GPT Image edit quickstart",
20
+ "trigger": {
21
+ "name": "trigger",
22
+ "valid": true,
23
+ "displayName": "Manual Trigger",
24
+ "nextAction": {
25
+ "name": "step_1",
26
+ "skip": false,
27
+ "type": "PIECE",
28
+ "valid": false,
29
+ "settings": {
30
+ "input": {
31
+ "auth": "",
32
+ "imageUrls": "https://example.com/your-image.png",
33
+ "prompt": "Change the background to a calm mountain landscape.",
34
+ "model": "gpt-image-2",
35
+ "count": 1
36
+ },
37
+ "pieceName": "@acedatacloud/piece-gpt-image",
38
+ "actionName": "edit_image",
39
+ "sampleData": {},
40
+ "pieceVersion": "0.1.9",
41
+ "propertySettings": {
42
+ "imageUrls": {
43
+ "type": "MANUAL"
44
+ },
45
+ "prompt": {
46
+ "type": "MANUAL"
47
+ },
48
+ "model": {
49
+ "type": "MANUAL"
50
+ },
51
+ "count": {
52
+ "type": "MANUAL"
53
+ }
54
+ },
55
+ "errorHandlingOptions": {
56
+ "retryOnFailure": {
57
+ "value": false
58
+ },
59
+ "continueOnFailure": {
60
+ "value": false
61
+ }
62
+ }
63
+ },
64
+ "nextAction": {
65
+ "name": "step_2",
66
+ "skip": false,
67
+ "type": "PIECE",
68
+ "valid": false,
69
+ "settings": {
70
+ "input": {
71
+ "auth": "",
72
+ "taskId": "{{step_1['output']['task_id']}}",
73
+ "traceId": ""
74
+ },
75
+ "pieceName": "@acedatacloud/piece-gpt-image",
76
+ "actionName": "get_task",
77
+ "sampleData": {},
78
+ "pieceVersion": "0.1.9",
79
+ "propertySettings": {
80
+ "taskId": {
81
+ "type": "MANUAL"
82
+ },
83
+ "traceId": {
84
+ "type": "MANUAL"
85
+ }
86
+ },
87
+ "errorHandlingOptions": {
88
+ "retryOnFailure": {
89
+ "value": false
90
+ },
91
+ "continueOnFailure": {
92
+ "value": false
93
+ }
94
+ }
95
+ },
96
+ "displayName": "Get GPT Image task",
97
+ "lastUpdatedDate": "2026-10-11T15:59:36.284Z"
98
+ },
99
+ "displayName": "Edit a GPT Image",
100
+ "lastUpdatedDate": "2026-10-11T15:40:03.227Z"
101
+ },
102
+ "type": "PIECE_TRIGGER",
103
+ "settings": {
104
+ "propertySettings": {
105
+ "markdown": {
106
+ "type": "MANUAL"
107
+ }
108
+ },
109
+ "pieceName": "@activepieces/piece-manual-trigger",
110
+ "pieceVersion": "0.0.8",
111
+ "triggerName": "manual_trigger",
112
+ "input": {}
113
+ },
114
+ "lastUpdatedDate": "2026-10-11T15:29:17.786Z"
115
+ },
116
+ "valid": true,
117
+ "schemaVersion": "27",
118
+ "notes": []
119
+ }
120
+ ],
121
+ "status": "PUBLISHED"
122
+ }
@@ -37,7 +37,7 @@
37
37
  "pieceName": "@acedatacloud/piece-gpt-image",
38
38
  "actionName": "generate_image",
39
39
  "sampleData": {},
40
- "pieceVersion": "0.1.7",
40
+ "pieceVersion": "0.1.9",
41
41
  "propertySettings": {
42
42
  "prompt": {
43
43
  "type": "MANUAL"
@@ -75,7 +75,7 @@
75
75
  "pieceName": "@acedatacloud/piece-gpt-image",
76
76
  "actionName": "get_task",
77
77
  "sampleData": {},
78
- "pieceVersion": "0.1.7",
78
+ "pieceVersion": "0.1.9",
79
79
  "propertySettings": {
80
80
  "taskId": {
81
81
  "type": "MANUAL"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@acedatacloud/piece-gpt-image",
3
- "version": "0.1.7",
4
- "description": "GPT Image generation and task lookup through Ace Data Cloud for Activepieces",
3
+ "version": "0.1.9",
4
+ "description": "GPT Image generation, editing and task lookup through Ace Data Cloud for Activepieces",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/src/index.js",
7
7
  "types": "./dist/src/index.d.ts",
@@ -24,7 +24,6 @@
24
24
  "bugs": "https://github.com/AceDataCloud/GPTImageActivepieces/issues",
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
- "@activepieces/pieces-common": "0.12.5",
28
27
  "@activepieces/pieces-framework": "0.32.0"
29
28
  },
30
29
  "devDependencies": {