@acedatacloud/sdk 2026.1105.1 → 2026.1106.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/README.md +6 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/resources/openai.ts +10 -2
package/README.md
CHANGED
|
@@ -488,3 +488,9 @@ the target chain.
|
|
|
488
488
|
## License
|
|
489
489
|
|
|
490
490
|
MIT
|
|
491
|
+
|
|
492
|
+
### GPT Image 2.6 native GIF
|
|
493
|
+
|
|
494
|
+
GIF generation and editing are available for `gpt-image-2.6-flare`, its `:reverse`/`:official` variants, and `gpt-image-2.6-sunburst:official`. Ordinary/reverse Sunburst GIF is not available. Use `output_format="gif"` in Python, `outputFormat: "gif"` in TypeScript, or `OutputFormat: "gif"` in Go. Frame controls are `frame_count`/`frame_duration_ms` (Python), `frameCount`/`frameDurationMs` (TypeScript), and `FrameCount`/`FrameDurationMS` (Go).
|
|
495
|
+
|
|
496
|
+
GIF defaults to a 512x512 preview, 9 frames and 200 ms per frame; actual dimensions may be adjusted by the model. The static 4K presets (`3840x2160`, `2160x3840`) remain supported for PNG/JPEG/WebP generation and editing on all 2.6 variants. GIF has separate size/frame constraints.
|
package/dist/index.d.mts
CHANGED
|
@@ -468,6 +468,8 @@ declare class Images {
|
|
|
468
468
|
n?: number;
|
|
469
469
|
outputCompression?: number;
|
|
470
470
|
outputFormat?: string;
|
|
471
|
+
frameCount?: number;
|
|
472
|
+
frameDurationMs?: number;
|
|
471
473
|
partialImages?: number;
|
|
472
474
|
size?: string;
|
|
473
475
|
quality?: string;
|
|
@@ -486,6 +488,8 @@ declare class Images {
|
|
|
486
488
|
inputFidelity?: string;
|
|
487
489
|
mask?: string;
|
|
488
490
|
outputFormat?: string;
|
|
491
|
+
frameCount?: number;
|
|
492
|
+
frameDurationMs?: number;
|
|
489
493
|
outputCompression?: number;
|
|
490
494
|
partialImages?: number;
|
|
491
495
|
quality?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -468,6 +468,8 @@ declare class Images {
|
|
|
468
468
|
n?: number;
|
|
469
469
|
outputCompression?: number;
|
|
470
470
|
outputFormat?: string;
|
|
471
|
+
frameCount?: number;
|
|
472
|
+
frameDurationMs?: number;
|
|
471
473
|
partialImages?: number;
|
|
472
474
|
size?: string;
|
|
473
475
|
quality?: string;
|
|
@@ -486,6 +488,8 @@ declare class Images {
|
|
|
486
488
|
inputFidelity?: string;
|
|
487
489
|
mask?: string;
|
|
488
490
|
outputFormat?: string;
|
|
491
|
+
frameCount?: number;
|
|
492
|
+
frameDurationMs?: number;
|
|
489
493
|
outputCompression?: number;
|
|
490
494
|
partialImages?: number;
|
|
491
495
|
quality?: string;
|
package/dist/index.js
CHANGED
|
@@ -998,21 +998,25 @@ var Images2 = class {
|
|
|
998
998
|
}
|
|
999
999
|
transport;
|
|
1000
1000
|
async generate(opts) {
|
|
1001
|
-
const { prompt, model, outputCompression, outputFormat, partialImages, responseFormat, callbackUrl, ...rest } = opts;
|
|
1001
|
+
const { prompt, model, outputCompression, outputFormat, frameCount, frameDurationMs, partialImages, responseFormat, callbackUrl, ...rest } = opts;
|
|
1002
1002
|
const body = { prompt, model, ...rest };
|
|
1003
1003
|
if (outputCompression !== void 0) body.output_compression = outputCompression;
|
|
1004
1004
|
if (outputFormat !== void 0) body.output_format = outputFormat;
|
|
1005
|
+
if (frameCount !== void 0) body.frame_count = frameCount;
|
|
1006
|
+
if (frameDurationMs !== void 0) body.frame_duration_ms = frameDurationMs;
|
|
1005
1007
|
if (partialImages !== void 0) body.partial_images = partialImages;
|
|
1006
1008
|
if (responseFormat !== void 0) body.response_format = responseFormat;
|
|
1007
1009
|
if (callbackUrl !== void 0) body.callback_url = callbackUrl;
|
|
1008
1010
|
return this.transport.request("POST", "/openai/images/generations", { json: body });
|
|
1009
1011
|
}
|
|
1010
1012
|
async edit(opts) {
|
|
1011
|
-
const { image, prompt, inputFidelity, mask, outputFormat, outputCompression, partialImages, responseFormat, callbackUrl, ...rest } = opts;
|
|
1013
|
+
const { image, prompt, inputFidelity, mask, outputFormat, frameCount, frameDurationMs, outputCompression, partialImages, responseFormat, callbackUrl, ...rest } = opts;
|
|
1012
1014
|
const body = { image, prompt, ...rest };
|
|
1013
1015
|
if (inputFidelity !== void 0) body.input_fidelity = inputFidelity;
|
|
1014
1016
|
if (mask !== void 0) body.mask = mask;
|
|
1015
1017
|
if (outputFormat !== void 0) body.output_format = outputFormat;
|
|
1018
|
+
if (frameCount !== void 0) body.frame_count = frameCount;
|
|
1019
|
+
if (frameDurationMs !== void 0) body.frame_duration_ms = frameDurationMs;
|
|
1016
1020
|
if (outputCompression !== void 0) body.output_compression = outputCompression;
|
|
1017
1021
|
if (partialImages !== void 0) body.partial_images = partialImages;
|
|
1018
1022
|
if (responseFormat !== void 0) body.response_format = responseFormat;
|