@acedatacloud/sdk 2026.1105.0 → 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 CHANGED
@@ -202,22 +202,33 @@ The public model ID also works with `client.openai.images.generate(...)` and
202
202
  `client.openai.images.edit(...)`; those use the OpenAI-compatible fields
203
203
  (`image` for editing) and return response objects, not task handles.
204
204
 
205
- ### GPT Image 2.5 quality
205
+ ### GPT Image 2.5 / 2.6 quality
206
206
 
207
207
  `client.openai.images.generate(...)` and `.edit(...)` pass `quality` through
208
208
  unchanged. GPT Image models accept `auto`, `low`, `medium`, and `high`;
209
- only `gpt-image-2.5-flare` and `gpt-image-2.5-sunburst` (including `:reverse`
210
- and `:official` variants) additionally accept `xhigh` and `max`.
211
-
212
- For both methods, `gpt-image-2.5-flare:reverse` and
213
- `gpt-image-2.5-sunburst:reverse` are explicit aliases of their unsuffixed names.
214
- Pass the complete model ID unchanged; the SDK does not select a fallback.
215
- The server may use GPT Image 2.5 Flare during automatic recovery for reverse
216
- models, while preserving the requested model and per-successful-image billing.
209
+ 2.5 and 2.6 Flare/Sunburst models (including `:reverse` and `:official`
210
+ variants) additionally accept `xhigh` and `max`.
211
+
212
+ For both methods, `:reverse` is an explicit alias of the corresponding
213
+ unsuffixed Flare/Sunburst model. Pass the complete model ID unchanged, such as
214
+ `gpt-image-2.6-flare` or `gpt-image-2.6-sunburst:reverse`; do not use the
215
+ incomplete `gpt-image-2.6`. The SDK does not select a fallback.
216
+ The server may use GPT Image 2.5 Flare during automatic recovery for 2.0 / 2.5
217
+ reverse models, while preserving the requested model and per-successful-image
218
+ billing; 2.6 does not configure cross-model substitution.
217
219
  `gpt-image-2`, both 2.5 models, and their `:reverse` aliases have a base price
218
- of **0.19 Credits per successful image**; check current account pricing and
219
- usage records for final charges. Official-channel requests are billed by actual
220
- token usage, not a fixed fee per image.
220
+ of **0.19 Credits per successful image**. The 2.6 Flare/Sunburst models and their
221
+ `:reverse` aliases have a base price of **0.22 Credits per successful image**.
222
+ Official-channel requests are billed by actual token usage, not a fixed fee per
223
+ image; 2.6 uses the same official rates as 2.5. Check current account pricing and
224
+ usage records for final charges.
225
+
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`.
228
+ Explicit dimensions must be multiples of 16, with a longest side of at most
229
+ 3840, 655,360–8,294,400 total pixels, and an aspect ratio of at most 3:1.
230
+ Editing uses image URLs through the SDK's JSON interface; Backend multipart
231
+ file upload support is not exposed by these helpers.
221
232
 
222
233
  ## Maestro Video Production
223
234
 
@@ -478,4 +489,8 @@ the target chain.
478
489
 
479
490
  MIT
480
491
 
481
- Image generation and edits also accept `gpt-image-2.6-flare` and `gpt-image-2.6-sunburst`, including `:reverse` and `:official` variants. Use the same raster parameters and quality options as GPT Image 2.5. Plain/reverse models bill 0.22 Credits per image; official models use actual token usage at the 2.5 rates.
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;