@acedatacloud/sdk 2026.811.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;
@@ -2028,23 +2028,26 @@ var Seedance = class {
2028
2028
  this.transport = transport;
2029
2029
  }
2030
2030
  transport;
2031
- /** ByteDance Seedance video generation API. Supports doubao-seedance-1-0-pro-250528, doubao-seedance-1-0-pro-fast-251015, doubao-seedance-1-5-pro-251215, doubao-seedance-1-0-lite-t2v-250428, and doubao-s */
2031
+ /** Call /seedance/videos. */
2032
2032
  async generate(options) {
2033
2033
  const body = {};
2034
2034
  body["model"] = options.model;
2035
2035
  body["content"] = options.content;
2036
- if (options.seed !== void 0) body["seed"] = options.seed;
2036
+ if (options.resolution !== void 0) body["resolution"] = options.resolution;
2037
2037
  body["ratio"] = options.ratio ?? "16:9";
2038
- if (options.frames !== void 0) body["frames"] = options.frames;
2039
2038
  if (options.duration !== void 0) body["duration"] = options.duration;
2040
- if (options.watermark !== void 0) body["watermark"] = options.watermark;
2041
- if (options.resolution !== void 0) body["resolution"] = options.resolution;
2039
+ if (options.frames !== void 0) body["frames"] = options.frames;
2040
+ if (options.seed !== void 0) body["seed"] = options.seed;
2042
2041
  if (options.camerafixed !== void 0) body["camerafixed"] = options.camerafixed;
2042
+ if (options.watermark !== void 0) body["watermark"] = options.watermark;
2043
2043
  body["generate_audio"] = options.generateAudio ?? false;
2044
2044
  body["return_last_frame"] = options.returnLastFrame ?? false;
2045
2045
  body["execution_expires_after"] = options.executionExpiresAfter ?? 172800;
2046
+ if (options.omniReferenceTaskType !== void 0) body["omni_reference_task_type"] = options.omniReferenceTaskType;
2047
+ if (options.outputFormat !== void 0) body["output_format"] = options.outputFormat;
2048
+ if (options.tools !== void 0) body["tools"] = options.tools;
2046
2049
  for (const [key, value] of Object.entries(options)) {
2047
- if (!["async", "callbackUrl", "camerafixed", "content", "duration", "executionExpiresAfter", "frames", "generateAudio", "maxWait", "model", "pollInterval", "ratio", "resolution", "returnLastFrame", "seed", "wait", "watermark"].includes(key) && value !== void 0) {
2050
+ if (!["async", "callbackUrl", "camerafixed", "content", "duration", "executionExpiresAfter", "frames", "generateAudio", "maxWait", "model", "omniReferenceTaskType", "outputFormat", "pollInterval", "ratio", "resolution", "returnLastFrame", "seed", "tools", "wait", "watermark"].includes(key) && value !== void 0) {
2048
2051
  body[key] = value;
2049
2052
  }
2050
2053
  }
@@ -2120,16 +2123,16 @@ var Suno = class {
2120
2123
  async generate(options = {}) {
2121
2124
  const body = {};
2122
2125
  if (options.lyric !== void 0) body["lyric"] = options.lyric;
2123
- body["model"] = options.model ?? "chirp-v5-5";
2126
+ if (options.model !== void 0) body["model"] = options.model;
2124
2127
  if (options.style !== void 0) body["style"] = options.style;
2125
2128
  if (options.title !== void 0) body["title"] = options.title;
2126
- body["action"] = options.action ?? "generate";
2129
+ if (options.action !== void 0) body["action"] = options.action;
2127
2130
  if (options.custom !== void 0) body["custom"] = options.custom;
2128
- body["prompt"] = options.prompt ?? "A song for Christmas";
2131
+ if (options.prompt !== void 0) body["prompt"] = options.prompt;
2129
2132
  if (options.audioId !== void 0) body["audio_id"] = options.audioId;
2130
2133
  if (options.duration !== void 0) body["duration"] = options.duration;
2131
2134
  if (options.weirdness !== void 0) body["weirdness"] = options.weirdness;
2132
- 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;
2133
2136
  if (options.personaId !== void 0) body["persona_id"] = options.personaId;
2134
2137
  if (options.continueAt !== void 0) body["continue_at"] = options.continueAt;
2135
2138
  if (options.samplesEnd !== void 0) body["samples_end"] = options.samplesEnd;
@@ -2149,7 +2152,7 @@ var Suno = class {
2149
2152
  if (options.underpaintingStart !== void 0) body["underpainting_start"] = options.underpaintingStart;
2150
2153
  if (options.replaceSectionStart !== void 0) body["replace_section_start"] = options.replaceSectionStart;
2151
2154
  for (const [key, value] of Object.entries(options)) {
2152
- 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) {
2153
2156
  body[key] = value;
2154
2157
  }
2155
2158
  }
@@ -2347,11 +2350,11 @@ var Wan = class {
2347
2350
  body["audio"] = options.audio ?? false;
2348
2351
  if (options.duration !== void 0) body["duration"] = options.duration;
2349
2352
  if (options.audioUrl !== void 0) body["audio_url"] = options.audioUrl;
2350
- body["image_url"] = options.imageUrl ?? "https://cdn.acedata.cloud/r9vsv9.png";
2353
+ if (options.imageUrl !== void 0) body["image_url"] = options.imageUrl;
2351
2354
  if (options.shotType !== void 0) body["shot_type"] = options.shotType;
2352
2355
  if (options.resolution !== void 0) body["resolution"] = options.resolution;
2353
2356
  body["prompt_extend"] = options.promptExtend ?? false;
2354
- body["negative_prompt"] = options.negativePrompt ?? "Astronauts shuttle from space to volcano";
2357
+ if (options.negativePrompt !== void 0) body["negative_prompt"] = options.negativePrompt;
2355
2358
  if (options.referenceVideoUrls !== void 0) body["reference_video_urls"] = options.referenceVideoUrls;
2356
2359
  for (const [key, value] of Object.entries(options)) {
2357
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) {