@acedatacloud/sdk 2026.811.0 → 2026.814.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acedatacloud/sdk",
3
- "version": "2026.811.0",
3
+ "version": "2026.814.0",
4
4
  "description": "Official TypeScript SDK for AceDataCloud — AI-powered data services",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -17,30 +17,36 @@ function taskId(result: Record<string, unknown>): string {
17
17
  }
18
18
 
19
19
  export interface SeedanceGenerateOptions {
20
- /** Model ID for video generation */
21
- model: "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" | "doubao-seedance-1-0-lite-i2v-250428" | "doubao-seedance-2-0-260128" | "doubao-seedance-2-0-fast-260128" | "doubao-seedance-2-0-mini-260615";
22
- /** Input content for video generation. Each entry must include one of `text`, `image_url`, `audio_url`, or `video_url` corresponding to the `type`. The meaning of other fields and whether they are required depends on the value of `type`. */
20
+ /** $t(seedance_videos_model) */
21
+ model: "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" | "doubao-seedance-1-0-lite-i2v-250428" | "doubao-seedance-2-0-260128" | "doubao-seedance-2-0-fast-260128" | "doubao-seedance-2-0-mini-260615" | "doubao-seedance-2-5-260628";
22
+ /** $t(seedance_videos) */
23
23
  content: unknown[];
24
- /** The random seed used for reproducible generation has a value range from -1 to 4294967295; -1 indicates randomness. */
25
- seed?: number;
26
- /** Aspect ratio of the generated video */
24
+ /** $t(seedance_videos_resolution) */
25
+ resolution?: "480p" | "720p" | "1080p" | "4k";
26
+ /** $t(seedance_videos_ratio) */
27
27
  ratio?: "16:9" | "4:3" | "1:1" | "3:4" | "9:16" | "21:9" | "adaptive";
28
- /** The frame count for generating a video must meet 25 + 4n (such as 29, 33, 37... 361). Either duration or frames can be specified; if both are specified, frames take priority over duration. */
29
- frames?: number;
30
- /** The duration of the generated video, in seconds. Either duration or frames can be specified; if both are specified, frames take priority over duration. The duration range varies for each model: Seedance 2.0 series is 4 to 15 seconds or -1, Seedance 1.5 Pro is 4 to 12 seconds or -1, and Seedance 1.0 series is 2 to 12 seconds. -1 indicates automatic duration. */
28
+ /** $t(seedance_videos_duration) */
31
29
  duration?: number;
32
- /** Whether to add a watermark to the generated video. */
33
- watermark?: boolean;
34
- /** Video resolution. The default value depends on the model used: most models default to 720p, while the lite model defaults to 480p. Note that the supported resolutions vary by model: `4k` is only supported by doubao-seedance-2-0 (standard version); doubao-seedance-2-0-fast and doubao-seedance-2-0-mini do not support 1080p and 4k. */
35
- resolution?: "480p" | "720p" | "1080p" | "4k";
36
- /** Is the camera position fixed during the generation process? */
30
+ /** $t(seedance_videos_frames) */
31
+ frames?: number;
32
+ /** $t(seedance_videos_seed) */
33
+ seed?: number;
34
+ /** $t(seedance_videos_camerafixed) */
37
35
  camerafixed?: boolean;
38
- /** Whether to generate audio from video. The `doubao-seedance-1-5-pro-251215` and `doubao-seedance-2-0` series models support this parameter, while other models will ignore this parameter. */
36
+ /** $t(seedance_videos_watermark) */
37
+ watermark?: boolean;
38
+ /** $t(seedance_videos_generate_audio) */
39
39
  generateAudio?: boolean;
40
- /** Whether to return the last frame of the generated video. */
40
+ /** $t(seedance_videos_return_last_frame) */
41
41
  returnLastFrame?: boolean;
42
- /** Task timeout threshold, unit in seconds */
42
+ /** $t(seedance_videos_execution_expires_after) */
43
43
  executionExpiresAfter?: number;
44
+ /** $t(seedance_videos_omni_reference_task_type) */
45
+ omniReferenceTaskType?: "auto" | "edit" | "extend";
46
+ /** $t(seedance_videos_output_format) */
47
+ outputFormat?: "mp4" | "mov";
48
+ /** $t(seedance_videos_tools) */
49
+ tools?: Array<Record<string, unknown>>;
44
50
  /** Submit asynchronously and poll. Defaults to true. */
45
51
  async?: boolean;
46
52
  /** Wait for completion before returning the handle. */
@@ -56,23 +62,26 @@ export interface SeedanceGenerateOptions {
56
62
  export class Seedance {
57
63
  constructor(private transport: Transport) {}
58
64
 
59
- /** 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 */
65
+ /** Call /seedance/videos. */
60
66
  async generate(options: SeedanceGenerateOptions): Promise<TaskHandle> {
61
67
  const body: Record<string, unknown> = {};
62
68
  body["model"] = options.model;
63
69
  body["content"] = options.content;
64
- if (options.seed !== undefined) body["seed"] = options.seed;
70
+ if (options.resolution !== undefined) body["resolution"] = options.resolution;
65
71
  body["ratio"] = options.ratio ?? "16:9";
66
- if (options.frames !== undefined) body["frames"] = options.frames;
67
72
  if (options.duration !== undefined) body["duration"] = options.duration;
68
- if (options.watermark !== undefined) body["watermark"] = options.watermark;
69
- if (options.resolution !== undefined) body["resolution"] = options.resolution;
73
+ if (options.frames !== undefined) body["frames"] = options.frames;
74
+ if (options.seed !== undefined) body["seed"] = options.seed;
70
75
  if (options.camerafixed !== undefined) body["camerafixed"] = options.camerafixed;
76
+ if (options.watermark !== undefined) body["watermark"] = options.watermark;
71
77
  body["generate_audio"] = options.generateAudio ?? false;
72
78
  body["return_last_frame"] = options.returnLastFrame ?? false;
73
79
  body["execution_expires_after"] = options.executionExpiresAfter ?? 172800;
80
+ if (options.omniReferenceTaskType !== undefined) body["omni_reference_task_type"] = options.omniReferenceTaskType;
81
+ if (options.outputFormat !== undefined) body["output_format"] = options.outputFormat;
82
+ if (options.tools !== undefined) body["tools"] = options.tools;
74
83
  for (const [key, value] of Object.entries(options)) {
75
- if (!["async", "callbackUrl", "camerafixed", "content", "duration", "executionExpiresAfter", "frames", "generateAudio", "maxWait", "model", "pollInterval", "ratio", "resolution", "returnLastFrame", "seed", "wait", "watermark"].includes(key) && value !== undefined) {
84
+ if (!["async", "callbackUrl", "camerafixed", "content", "duration", "executionExpiresAfter", "frames", "generateAudio", "maxWait", "model", "omniReferenceTaskType", "outputFormat", "pollInterval", "ratio", "resolution", "returnLastFrame", "seed", "tools", "wait", "watermark"].includes(key) && value !== undefined) {
76
85
  body[key] = value;
77
86
  }
78
87
  }