@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 +29 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -26
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/resources/providers/digitalhuman.ts +1 -1
- package/src/resources/providers/fish.ts +2 -2
- package/src/resources/providers/flux.ts +3 -3
- package/src/resources/providers/hailuo.ts +1 -1
- package/src/resources/providers/happyhorse.ts +3 -3
- package/src/resources/providers/luma.ts +3 -3
- package/src/resources/providers/minimax.ts +11 -9
- package/src/resources/providers/nano-banana.ts +1 -1
- package/src/resources/providers/seedance.ts +33 -24
- package/src/resources/providers/seedream.ts +1 -1
- package/src/resources/providers/suno.ts +5 -5
- package/src/resources/providers/wan.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1430,7 +1430,7 @@ var Digitalhuman = class {
|
|
|
1430
1430
|
async generate(options) {
|
|
1431
1431
|
const body = {};
|
|
1432
1432
|
body["video_url"] = options.videoUrl;
|
|
1433
|
-
body["text"] = options.text
|
|
1433
|
+
if (options.text !== void 0) body["text"] = options.text;
|
|
1434
1434
|
body["speed"] = options.speed ?? 1;
|
|
1435
1435
|
body["steps"] = options.steps ?? 40;
|
|
1436
1436
|
body["engine"] = options.engine ?? "latentsync";
|
|
@@ -1539,7 +1539,7 @@ var Fish = class {
|
|
|
1539
1539
|
if (options.temperature !== void 0) body["temperature"] = options.temperature;
|
|
1540
1540
|
if (options.chunkLength !== void 0) body["chunk_length"] = options.chunkLength;
|
|
1541
1541
|
if (options.opusBitrate !== void 0) body["opus_bitrate"] = options.opusBitrate;
|
|
1542
|
-
body["reference_id"] = options.referenceId
|
|
1542
|
+
if (options.referenceId !== void 0) body["reference_id"] = options.referenceId;
|
|
1543
1543
|
if (options.maxNewTokens !== void 0) body["max_new_tokens"] = options.maxNewTokens;
|
|
1544
1544
|
if (options.minChunkLength !== void 0) body["min_chunk_length"] = options.minChunkLength;
|
|
1545
1545
|
if (options.repetitionPenalty !== void 0) body["repetition_penalty"] = options.repetitionPenalty;
|
|
@@ -1594,9 +1594,9 @@ var Flux = class {
|
|
|
1594
1594
|
/** Flux AI image generation API, generates 1 image per request. */
|
|
1595
1595
|
async generate(options) {
|
|
1596
1596
|
const body = {};
|
|
1597
|
+
body["size"] = options.size;
|
|
1597
1598
|
body["action"] = options.action;
|
|
1598
1599
|
body["prompt"] = options.prompt;
|
|
1599
|
-
body["size"] = options.size ?? "1024x1024";
|
|
1600
1600
|
if (options.count !== void 0) body["count"] = options.count;
|
|
1601
1601
|
if (options.model !== void 0) body["model"] = options.model;
|
|
1602
1602
|
if (options.imageUrl !== void 0) body["image_url"] = options.imageUrl;
|
|
@@ -1633,7 +1633,7 @@ var Hailuo = class {
|
|
|
1633
1633
|
const body = {};
|
|
1634
1634
|
body["action"] = options.action;
|
|
1635
1635
|
if (options.model !== void 0) body["model"] = options.model;
|
|
1636
|
-
body["prompt"] = options.prompt
|
|
1636
|
+
if (options.prompt !== void 0) body["prompt"] = options.prompt;
|
|
1637
1637
|
if (options.firstImageUrl !== void 0) body["first_image_url"] = options.firstImageUrl;
|
|
1638
1638
|
for (const [key, value] of Object.entries(options)) {
|
|
1639
1639
|
if (!["action", "async", "callbackUrl", "firstImageUrl", "maxWait", "model", "pollInterval", "prompt", "wait"].includes(key) && value !== void 0) {
|
|
@@ -1670,10 +1670,10 @@ var Happyhorse = class {
|
|
|
1670
1670
|
body["model"] = options.model ?? "happyhorse-1.1-t2v";
|
|
1671
1671
|
body["ratio"] = options.ratio ?? "16:9";
|
|
1672
1672
|
body["action"] = options.action ?? "generate";
|
|
1673
|
-
body["prompt"] = options.prompt
|
|
1673
|
+
if (options.prompt !== void 0) body["prompt"] = options.prompt;
|
|
1674
1674
|
body["duration"] = options.duration ?? 5;
|
|
1675
|
-
body["image_url"] = options.imageUrl
|
|
1676
|
-
body["video_url"] = options.videoUrl
|
|
1675
|
+
if (options.imageUrl !== void 0) body["image_url"] = options.imageUrl;
|
|
1676
|
+
if (options.videoUrl !== void 0) body["video_url"] = options.videoUrl;
|
|
1677
1677
|
body["watermark"] = options.watermark ?? false;
|
|
1678
1678
|
if (options.imageUrls !== void 0) body["image_urls"] = options.imageUrls;
|
|
1679
1679
|
body["resolution"] = options.resolution ?? "1080P";
|
|
@@ -1734,14 +1734,14 @@ var Luma = class {
|
|
|
1734
1734
|
const body = {};
|
|
1735
1735
|
body["loop"] = options.loop ?? false;
|
|
1736
1736
|
body["action"] = options.action ?? "generate";
|
|
1737
|
-
body["prompt"] = options.prompt
|
|
1737
|
+
if (options.prompt !== void 0) body["prompt"] = options.prompt;
|
|
1738
1738
|
body["timeout"] = options.timeout ?? 300;
|
|
1739
1739
|
if (options.videoId !== void 0) body["video_id"] = options.videoId;
|
|
1740
1740
|
if (options.videoUrl !== void 0) body["video_url"] = options.videoUrl;
|
|
1741
1741
|
body["enhancement"] = options.enhancement ?? true;
|
|
1742
1742
|
if (options.aspectRatio !== void 0) body["aspect_ratio"] = options.aspectRatio;
|
|
1743
|
-
body["end_image_url"] = options.endImageUrl
|
|
1744
|
-
body["start_image_url"] = options.startImageUrl
|
|
1743
|
+
if (options.endImageUrl !== void 0) body["end_image_url"] = options.endImageUrl;
|
|
1744
|
+
if (options.startImageUrl !== void 0) body["start_image_url"] = options.startImageUrl;
|
|
1745
1745
|
for (const [key, value] of Object.entries(options)) {
|
|
1746
1746
|
if (!["action", "aspectRatio", "async", "callbackUrl", "endImageUrl", "enhancement", "loop", "maxWait", "pollInterval", "prompt", "startImageUrl", "timeout", "videoId", "videoUrl", "wait"].includes(key) && value !== void 0) {
|
|
1747
1747
|
body[key] = value;
|
|
@@ -1812,13 +1812,13 @@ var Minimax = class {
|
|
|
1812
1812
|
this.transport = transport;
|
|
1813
1813
|
}
|
|
1814
1814
|
transport;
|
|
1815
|
-
/**
|
|
1815
|
+
/** Call /minimax/videos. */
|
|
1816
1816
|
async generate(options) {
|
|
1817
1817
|
const body = {};
|
|
1818
1818
|
body["model"] = options.model;
|
|
1819
1819
|
body["content"] = options.content;
|
|
1820
|
-
body["resolution"] = options.resolution;
|
|
1821
1820
|
body["duration"] = options.duration;
|
|
1821
|
+
body["resolution"] = options.resolution;
|
|
1822
1822
|
if (options.ratio !== void 0) body["ratio"] = options.ratio;
|
|
1823
1823
|
for (const [key, value] of Object.entries(options)) {
|
|
1824
1824
|
if (!["async", "callbackUrl", "content", "duration", "maxWait", "model", "pollInterval", "ratio", "resolution", "wait"].includes(key) && value !== void 0) {
|
|
@@ -1857,7 +1857,7 @@ var NanoBanana = class {
|
|
|
1857
1857
|
if (options.model !== void 0) body["model"] = options.model;
|
|
1858
1858
|
if (options.imageUrls !== void 0) body["image_urls"] = options.imageUrls;
|
|
1859
1859
|
if (options.resolution !== void 0) body["resolution"] = options.resolution;
|
|
1860
|
-
body["aspect_ratio"] = options.aspectRatio
|
|
1860
|
+
if (options.aspectRatio !== void 0) body["aspect_ratio"] = options.aspectRatio;
|
|
1861
1861
|
for (const [key, value] of Object.entries(options)) {
|
|
1862
1862
|
if (!["action", "aspectRatio", "async", "callbackUrl", "count", "imageUrls", "maxWait", "model", "pollInterval", "prompt", "resolution", "wait"].includes(key) && value !== void 0) {
|
|
1863
1863
|
body[key] = value;
|
|
@@ -1980,23 +1980,26 @@ var Seedance = class {
|
|
|
1980
1980
|
this.transport = transport;
|
|
1981
1981
|
}
|
|
1982
1982
|
transport;
|
|
1983
|
-
/**
|
|
1983
|
+
/** Call /seedance/videos. */
|
|
1984
1984
|
async generate(options) {
|
|
1985
1985
|
const body = {};
|
|
1986
1986
|
body["model"] = options.model;
|
|
1987
1987
|
body["content"] = options.content;
|
|
1988
|
-
if (options.
|
|
1988
|
+
if (options.resolution !== void 0) body["resolution"] = options.resolution;
|
|
1989
1989
|
body["ratio"] = options.ratio ?? "16:9";
|
|
1990
|
-
if (options.frames !== void 0) body["frames"] = options.frames;
|
|
1991
1990
|
if (options.duration !== void 0) body["duration"] = options.duration;
|
|
1992
|
-
if (options.
|
|
1993
|
-
if (options.
|
|
1991
|
+
if (options.frames !== void 0) body["frames"] = options.frames;
|
|
1992
|
+
if (options.seed !== void 0) body["seed"] = options.seed;
|
|
1994
1993
|
if (options.camerafixed !== void 0) body["camerafixed"] = options.camerafixed;
|
|
1994
|
+
if (options.watermark !== void 0) body["watermark"] = options.watermark;
|
|
1995
1995
|
body["generate_audio"] = options.generateAudio ?? false;
|
|
1996
1996
|
body["return_last_frame"] = options.returnLastFrame ?? false;
|
|
1997
1997
|
body["execution_expires_after"] = options.executionExpiresAfter ?? 172800;
|
|
1998
|
+
if (options.omniReferenceTaskType !== void 0) body["omni_reference_task_type"] = options.omniReferenceTaskType;
|
|
1999
|
+
if (options.outputFormat !== void 0) body["output_format"] = options.outputFormat;
|
|
2000
|
+
if (options.tools !== void 0) body["tools"] = options.tools;
|
|
1998
2001
|
for (const [key, value] of Object.entries(options)) {
|
|
1999
|
-
if (!["async", "callbackUrl", "camerafixed", "content", "duration", "executionExpiresAfter", "frames", "generateAudio", "maxWait", "model", "pollInterval", "ratio", "resolution", "returnLastFrame", "seed", "wait", "watermark"].includes(key) && value !== void 0) {
|
|
2002
|
+
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) {
|
|
2000
2003
|
body[key] = value;
|
|
2001
2004
|
}
|
|
2002
2005
|
}
|
|
@@ -2072,16 +2075,16 @@ var Suno = class {
|
|
|
2072
2075
|
async generate(options = {}) {
|
|
2073
2076
|
const body = {};
|
|
2074
2077
|
if (options.lyric !== void 0) body["lyric"] = options.lyric;
|
|
2075
|
-
body["model"] = options.model
|
|
2078
|
+
if (options.model !== void 0) body["model"] = options.model;
|
|
2076
2079
|
if (options.style !== void 0) body["style"] = options.style;
|
|
2077
2080
|
if (options.title !== void 0) body["title"] = options.title;
|
|
2078
|
-
body["action"] = options.action
|
|
2081
|
+
if (options.action !== void 0) body["action"] = options.action;
|
|
2079
2082
|
if (options.custom !== void 0) body["custom"] = options.custom;
|
|
2080
|
-
body["prompt"] = options.prompt
|
|
2083
|
+
if (options.prompt !== void 0) body["prompt"] = options.prompt;
|
|
2081
2084
|
if (options.audioId !== void 0) body["audio_id"] = options.audioId;
|
|
2082
2085
|
if (options.duration !== void 0) body["duration"] = options.duration;
|
|
2083
2086
|
if (options.weirdness !== void 0) body["weirdness"] = options.weirdness;
|
|
2084
|
-
body["audio_urls"] = options.audioUrls
|
|
2087
|
+
if (options.audioUrls !== void 0) body["audio_urls"] = options.audioUrls;
|
|
2085
2088
|
if (options.personaId !== void 0) body["persona_id"] = options.personaId;
|
|
2086
2089
|
if (options.continueAt !== void 0) body["continue_at"] = options.continueAt;
|
|
2087
2090
|
if (options.samplesEnd !== void 0) body["samples_end"] = options.samplesEnd;
|
|
@@ -2101,7 +2104,7 @@ var Suno = class {
|
|
|
2101
2104
|
if (options.underpaintingStart !== void 0) body["underpainting_start"] = options.underpaintingStart;
|
|
2102
2105
|
if (options.replaceSectionStart !== void 0) body["replace_section_start"] = options.replaceSectionStart;
|
|
2103
2106
|
for (const [key, value] of Object.entries(options)) {
|
|
2104
|
-
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", "
|
|
2107
|
+
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) {
|
|
2105
2108
|
body[key] = value;
|
|
2106
2109
|
}
|
|
2107
2110
|
}
|
|
@@ -2299,11 +2302,11 @@ var Wan = class {
|
|
|
2299
2302
|
body["audio"] = options.audio ?? false;
|
|
2300
2303
|
if (options.duration !== void 0) body["duration"] = options.duration;
|
|
2301
2304
|
if (options.audioUrl !== void 0) body["audio_url"] = options.audioUrl;
|
|
2302
|
-
body["image_url"] = options.imageUrl
|
|
2305
|
+
if (options.imageUrl !== void 0) body["image_url"] = options.imageUrl;
|
|
2303
2306
|
if (options.shotType !== void 0) body["shot_type"] = options.shotType;
|
|
2304
2307
|
if (options.resolution !== void 0) body["resolution"] = options.resolution;
|
|
2305
2308
|
body["prompt_extend"] = options.promptExtend ?? false;
|
|
2306
|
-
body["negative_prompt"] = options.negativePrompt
|
|
2309
|
+
if (options.negativePrompt !== void 0) body["negative_prompt"] = options.negativePrompt;
|
|
2307
2310
|
if (options.referenceVideoUrls !== void 0) body["reference_video_urls"] = options.referenceVideoUrls;
|
|
2308
2311
|
for (const [key, value] of Object.entries(options)) {
|
|
2309
2312
|
if (!["action", "async", "audio", "audioUrl", "callbackUrl", "duration", "imageUrl", "maxWait", "model", "negativePrompt", "pollInterval", "prompt", "promptExtend", "referenceVideoUrls", "resolution", "shotType", "size", "wait"].includes(key) && value !== void 0) {
|