@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/dist/index.mjs CHANGED
@@ -950,21 +950,25 @@ var Images2 = class {
950
950
  }
951
951
  transport;
952
952
  async generate(opts) {
953
- const { prompt, model, outputCompression, outputFormat, partialImages, responseFormat, callbackUrl, ...rest } = opts;
953
+ const { prompt, model, outputCompression, outputFormat, frameCount, frameDurationMs, partialImages, responseFormat, callbackUrl, ...rest } = opts;
954
954
  const body = { prompt, model, ...rest };
955
955
  if (outputCompression !== void 0) body.output_compression = outputCompression;
956
956
  if (outputFormat !== void 0) body.output_format = outputFormat;
957
+ if (frameCount !== void 0) body.frame_count = frameCount;
958
+ if (frameDurationMs !== void 0) body.frame_duration_ms = frameDurationMs;
957
959
  if (partialImages !== void 0) body.partial_images = partialImages;
958
960
  if (responseFormat !== void 0) body.response_format = responseFormat;
959
961
  if (callbackUrl !== void 0) body.callback_url = callbackUrl;
960
962
  return this.transport.request("POST", "/openai/images/generations", { json: body });
961
963
  }
962
964
  async edit(opts) {
963
- const { image, prompt, inputFidelity, mask, outputFormat, outputCompression, partialImages, responseFormat, callbackUrl, ...rest } = opts;
965
+ const { image, prompt, inputFidelity, mask, outputFormat, frameCount, frameDurationMs, outputCompression, partialImages, responseFormat, callbackUrl, ...rest } = opts;
964
966
  const body = { image, prompt, ...rest };
965
967
  if (inputFidelity !== void 0) body.input_fidelity = inputFidelity;
966
968
  if (mask !== void 0) body.mask = mask;
967
969
  if (outputFormat !== void 0) body.output_format = outputFormat;
970
+ if (frameCount !== void 0) body.frame_count = frameCount;
971
+ if (frameDurationMs !== void 0) body.frame_duration_ms = frameDurationMs;
968
972
  if (outputCompression !== void 0) body.output_compression = outputCompression;
969
973
  if (partialImages !== void 0) body.partial_images = partialImages;
970
974
  if (responseFormat !== void 0) body.response_format = responseFormat;