@acedatacloud/sdk 2026.814.0 → 2026.817.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.js CHANGED
@@ -1478,7 +1478,7 @@ var Digitalhuman = class {
1478
1478
  async generate(options) {
1479
1479
  const body = {};
1480
1480
  body["video_url"] = options.videoUrl;
1481
- body["text"] = options.text ?? "\u5927\u5BB6\u597D\uFF0C\u8FD9\u662F\u79BB\u7EBF\u751F\u6210\u7684\u6570\u5B57\u4EBA\u3002";
1481
+ if (options.text !== void 0) body["text"] = options.text;
1482
1482
  body["speed"] = options.speed ?? 1;
1483
1483
  body["steps"] = options.steps ?? 40;
1484
1484
  body["engine"] = options.engine ?? "latentsync";
@@ -1587,7 +1587,7 @@ var Fish = class {
1587
1587
  if (options.temperature !== void 0) body["temperature"] = options.temperature;
1588
1588
  if (options.chunkLength !== void 0) body["chunk_length"] = options.chunkLength;
1589
1589
  if (options.opusBitrate !== void 0) body["opus_bitrate"] = options.opusBitrate;
1590
- body["reference_id"] = options.referenceId ?? "d7900c21663f485ab63ebdb7e5905036";
1590
+ if (options.referenceId !== void 0) body["reference_id"] = options.referenceId;
1591
1591
  if (options.maxNewTokens !== void 0) body["max_new_tokens"] = options.maxNewTokens;
1592
1592
  if (options.minChunkLength !== void 0) body["min_chunk_length"] = options.minChunkLength;
1593
1593
  if (options.repetitionPenalty !== void 0) body["repetition_penalty"] = options.repetitionPenalty;
@@ -1642,9 +1642,9 @@ var Flux = class {
1642
1642
  /** Flux AI image generation API, generates 1 image per request. */
1643
1643
  async generate(options) {
1644
1644
  const body = {};
1645
+ body["size"] = options.size;
1645
1646
  body["action"] = options.action;
1646
1647
  body["prompt"] = options.prompt;
1647
- body["size"] = options.size ?? "1024x1024";
1648
1648
  if (options.count !== void 0) body["count"] = options.count;
1649
1649
  if (options.model !== void 0) body["model"] = options.model;
1650
1650
  if (options.imageUrl !== void 0) body["image_url"] = options.imageUrl;
@@ -1681,7 +1681,7 @@ var Hailuo = class {
1681
1681
  const body = {};
1682
1682
  body["action"] = options.action;
1683
1683
  if (options.model !== void 0) body["model"] = options.model;
1684
- body["prompt"] = options.prompt ?? "\u706B\u6C14";
1684
+ if (options.prompt !== void 0) body["prompt"] = options.prompt;
1685
1685
  if (options.firstImageUrl !== void 0) body["first_image_url"] = options.firstImageUrl;
1686
1686
  for (const [key, value] of Object.entries(options)) {
1687
1687
  if (!["action", "async", "callbackUrl", "firstImageUrl", "maxWait", "model", "pollInterval", "prompt", "wait"].includes(key) && value !== void 0) {
@@ -1718,10 +1718,10 @@ var Happyhorse = class {
1718
1718
  body["model"] = options.model ?? "happyhorse-1.1-t2v";
1719
1719
  body["ratio"] = options.ratio ?? "16:9";
1720
1720
  body["action"] = options.action ?? "generate";
1721
- body["prompt"] = options.prompt ?? "A cinematic white horse lifts its head, the mane moves gently in the sunrise wind, slow camera push in, warm film lighting";
1721
+ if (options.prompt !== void 0) body["prompt"] = options.prompt;
1722
1722
  body["duration"] = options.duration ?? 5;
1723
- body["image_url"] = options.imageUrl ?? "https://cdn.acedata.cloud/b1c82e4937.png";
1724
- body["video_url"] = options.videoUrl ?? "https://platform2.cdn.acedata.cloud/happyhorse/27837f92-d1c1-4db4-ad9a-4e6e81d9f6c1.mp4";
1723
+ if (options.imageUrl !== void 0) body["image_url"] = options.imageUrl;
1724
+ if (options.videoUrl !== void 0) body["video_url"] = options.videoUrl;
1725
1725
  body["watermark"] = options.watermark ?? false;
1726
1726
  if (options.imageUrls !== void 0) body["image_urls"] = options.imageUrls;
1727
1727
  body["resolution"] = options.resolution ?? "1080P";
@@ -1782,14 +1782,14 @@ var Luma = class {
1782
1782
  const body = {};
1783
1783
  body["loop"] = options.loop ?? false;
1784
1784
  body["action"] = options.action ?? "generate";
1785
- body["prompt"] = options.prompt ?? "Astronauts shuttle from space to volcano";
1785
+ if (options.prompt !== void 0) body["prompt"] = options.prompt;
1786
1786
  body["timeout"] = options.timeout ?? 300;
1787
1787
  if (options.videoId !== void 0) body["video_id"] = options.videoId;
1788
1788
  if (options.videoUrl !== void 0) body["video_url"] = options.videoUrl;
1789
1789
  body["enhancement"] = options.enhancement ?? true;
1790
1790
  if (options.aspectRatio !== void 0) body["aspect_ratio"] = options.aspectRatio;
1791
- body["end_image_url"] = options.endImageUrl ?? "https://cdn.acedata.cloud/0iad3k.png";
1792
- body["start_image_url"] = options.startImageUrl ?? "https://cdn.acedata.cloud/r9vsv9.png";
1791
+ if (options.endImageUrl !== void 0) body["end_image_url"] = options.endImageUrl;
1792
+ if (options.startImageUrl !== void 0) body["start_image_url"] = options.startImageUrl;
1793
1793
  for (const [key, value] of Object.entries(options)) {
1794
1794
  if (!["action", "aspectRatio", "async", "callbackUrl", "endImageUrl", "enhancement", "loop", "maxWait", "pollInterval", "prompt", "startImageUrl", "timeout", "videoId", "videoUrl", "wait"].includes(key) && value !== void 0) {
1795
1795
  body[key] = value;
@@ -1860,13 +1860,13 @@ var Minimax = class {
1860
1860
  this.transport = transport;
1861
1861
  }
1862
1862
  transport;
1863
- /** Minimax Videos */
1863
+ /** Call /minimax/videos. */
1864
1864
  async generate(options) {
1865
1865
  const body = {};
1866
1866
  body["model"] = options.model;
1867
1867
  body["content"] = options.content;
1868
- body["resolution"] = options.resolution;
1869
1868
  body["duration"] = options.duration;
1869
+ body["resolution"] = options.resolution;
1870
1870
  if (options.ratio !== void 0) body["ratio"] = options.ratio;
1871
1871
  for (const [key, value] of Object.entries(options)) {
1872
1872
  if (!["async", "callbackUrl", "content", "duration", "maxWait", "model", "pollInterval", "ratio", "resolution", "wait"].includes(key) && value !== void 0) {
@@ -1905,7 +1905,7 @@ var NanoBanana = class {
1905
1905
  if (options.model !== void 0) body["model"] = options.model;
1906
1906
  if (options.imageUrls !== void 0) body["image_urls"] = options.imageUrls;
1907
1907
  if (options.resolution !== void 0) body["resolution"] = options.resolution;
1908
- body["aspect_ratio"] = options.aspectRatio ?? "1:1";
1908
+ if (options.aspectRatio !== void 0) body["aspect_ratio"] = options.aspectRatio;
1909
1909
  for (const [key, value] of Object.entries(options)) {
1910
1910
  if (!["action", "aspectRatio", "async", "callbackUrl", "count", "imageUrls", "maxWait", "model", "pollInterval", "prompt", "resolution", "wait"].includes(key) && value !== void 0) {
1911
1911
  body[key] = value;
@@ -2123,16 +2123,16 @@ var Suno = class {
2123
2123
  async generate(options = {}) {
2124
2124
  const body = {};
2125
2125
  if (options.lyric !== void 0) body["lyric"] = options.lyric;
2126
- body["model"] = options.model ?? "chirp-v5-5";
2126
+ if (options.model !== void 0) body["model"] = options.model;
2127
2127
  if (options.style !== void 0) body["style"] = options.style;
2128
2128
  if (options.title !== void 0) body["title"] = options.title;
2129
- body["action"] = options.action ?? "generate";
2129
+ if (options.action !== void 0) body["action"] = options.action;
2130
2130
  if (options.custom !== void 0) body["custom"] = options.custom;
2131
- body["prompt"] = options.prompt ?? "A song for Christmas";
2131
+ if (options.prompt !== void 0) body["prompt"] = options.prompt;
2132
2132
  if (options.audioId !== void 0) body["audio_id"] = options.audioId;
2133
2133
  if (options.duration !== void 0) body["duration"] = options.duration;
2134
2134
  if (options.weirdness !== void 0) body["weirdness"] = options.weirdness;
2135
- body["audio_urls"] = options.audioUrls ?? ["https://cdn1.suno.ai/b481b17a-bf50-4e10-8adc-4d5635050893.mp3"];
2135
+ if (options.audioUrls !== void 0) body["audio_urls"] = options.audioUrls;
2136
2136
  if (options.personaId !== void 0) body["persona_id"] = options.personaId;
2137
2137
  if (options.continueAt !== void 0) body["continue_at"] = options.continueAt;
2138
2138
  if (options.samplesEnd !== void 0) body["samples_end"] = options.samplesEnd;
@@ -2152,7 +2152,7 @@ var Suno = class {
2152
2152
  if (options.underpaintingStart !== void 0) body["underpainting_start"] = options.underpaintingStart;
2153
2153
  if (options.replaceSectionStart !== void 0) body["replace_section_start"] = options.replaceSectionStart;
2154
2154
  for (const [key, value] of Object.entries(options)) {
2155
- if (!["action", "async", "audioId", "audioUrls", "audioWeight", "callbackUrl", "continueAt", "custom", "duration", "instrumental", "lyric", "lyricPrompt", "mashupAudioIds", "maxWait", "model", "overpaintingEnd", "overpaintingStart", "personaId", "pollInterval", "prompt", "replaceSectionEnd", "replaceSectionStart", "samplesEnd", "samplesStart", "style", "styleInfluence", "negativeTags", "title", "underpaintingEnd", "underpaintingStart", "variationCategory", "vocalGender", "wait", "weirdness"].includes(key) && value !== void 0) {
2155
+ if (!["action", "async", "audioId", "audioUrls", "audioWeight", "callbackUrl", "continueAt", "custom", "duration", "instrumental", "lyric", "lyricPrompt", "mashupAudioIds", "maxWait", "model", "negativeTags", "overpaintingEnd", "overpaintingStart", "personaId", "pollInterval", "prompt", "replaceSectionEnd", "replaceSectionStart", "samplesEnd", "samplesStart", "style", "styleInfluence", "title", "underpaintingEnd", "underpaintingStart", "variationCategory", "vocalGender", "wait", "weirdness"].includes(key) && value !== void 0) {
2156
2156
  body[key] = value;
2157
2157
  }
2158
2158
  }
@@ -2350,11 +2350,11 @@ var Wan = class {
2350
2350
  body["audio"] = options.audio ?? false;
2351
2351
  if (options.duration !== void 0) body["duration"] = options.duration;
2352
2352
  if (options.audioUrl !== void 0) body["audio_url"] = options.audioUrl;
2353
- body["image_url"] = options.imageUrl ?? "https://cdn.acedata.cloud/r9vsv9.png";
2353
+ if (options.imageUrl !== void 0) body["image_url"] = options.imageUrl;
2354
2354
  if (options.shotType !== void 0) body["shot_type"] = options.shotType;
2355
2355
  if (options.resolution !== void 0) body["resolution"] = options.resolution;
2356
2356
  body["prompt_extend"] = options.promptExtend ?? false;
2357
- body["negative_prompt"] = options.negativePrompt ?? "Astronauts shuttle from space to volcano";
2357
+ if (options.negativePrompt !== void 0) body["negative_prompt"] = options.negativePrompt;
2358
2358
  if (options.referenceVideoUrls !== void 0) body["reference_video_urls"] = options.referenceVideoUrls;
2359
2359
  for (const [key, value] of Object.entries(options)) {
2360
2360
  if (!["action", "async", "audio", "audioUrl", "callbackUrl", "duration", "imageUrl", "maxWait", "model", "negativePrompt", "pollInterval", "prompt", "promptExtend", "referenceVideoUrls", "resolution", "shotType", "size", "wait"].includes(key) && value !== void 0) {