@acedatacloud/sdk 2026.1105.1 → 2026.1106.1

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
@@ -224,7 +224,7 @@ image; 2.6 uses the same official rates as 2.5. Check current account pricing an
224
224
  usage records for final charges.
225
225
 
226
226
  Both 2.6 models use the existing raster parameters: `outputFormat` is `png`,
227
- `jpeg`, or `webp` (not SVG/GIF), and `size` is `auto` or `WIDTHxHEIGHT`.
227
+ `jpeg`, or `webp` (plus GIF for GPT Image 2.6; SVG is not supported), and `size` is `auto` or `WIDTHxHEIGHT`.
228
228
  Explicit dimensions must be multiples of 16, with a longest side of at most
229
229
  3840, 655,360–8,294,400 total pixels, and an aspect ratio of at most 3:1.
230
230
  Editing uses image URLs through the SDK's JSON interface; Backend multipart
@@ -488,3 +488,11 @@ 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 all `gpt-image-2.6-sunburst` variants. 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.
497
+
498
+ GPT Image 2.6 supports `complexity="low"|"medium"|"high"` (omitted: model default high). Static edits accept `markup`: a PNG with transparent pixels, matching the first reference after orientation, up to 16,777,216 pixels per image and 40MB for the annotation. JSON accepts an HTTPS URL, PNG data URL or an object containing only `image_url`; multipart accepts an annotation file. Do not combine markup with mask, GIF or prompt_rewriter. GIF frame count is 2–16; frame duration is 20–655350ms, rounded to 10ms. GIF rejects masks, custom compression and partial streaming. Pricing is unchanged.
package/dist/index.d.mts CHANGED
@@ -468,9 +468,12 @@ 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;
476
+ complexity?: 'low' | 'medium' | 'high';
474
477
  responseFormat?: string;
475
478
  style?: string;
476
479
  callbackUrl?: string;
@@ -485,10 +488,16 @@ declare class Images {
485
488
  background?: string;
486
489
  inputFidelity?: string;
487
490
  mask?: string;
491
+ markup?: string | {
492
+ image_url: string;
493
+ };
488
494
  outputFormat?: string;
495
+ frameCount?: number;
496
+ frameDurationMs?: number;
489
497
  outputCompression?: number;
490
498
  partialImages?: number;
491
499
  quality?: string;
500
+ complexity?: 'low' | 'medium' | 'high';
492
501
  size?: string;
493
502
  responseFormat?: string;
494
503
  callbackUrl?: string;
package/dist/index.d.ts CHANGED
@@ -468,9 +468,12 @@ 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;
476
+ complexity?: 'low' | 'medium' | 'high';
474
477
  responseFormat?: string;
475
478
  style?: string;
476
479
  callbackUrl?: string;
@@ -485,10 +488,16 @@ declare class Images {
485
488
  background?: string;
486
489
  inputFidelity?: string;
487
490
  mask?: string;
491
+ markup?: string | {
492
+ image_url: string;
493
+ };
488
494
  outputFormat?: string;
495
+ frameCount?: number;
496
+ frameDurationMs?: number;
489
497
  outputCompression?: number;
490
498
  partialImages?: number;
491
499
  quality?: string;
500
+ complexity?: 'low' | 'medium' | 'high';
492
501
  size?: string;
493
502
  responseFormat?: string;
494
503
  callbackUrl?: 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;