@runwayml/sdk 3.22.0 → 3.23.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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/image-to-video.d.mts +88 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +88 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +88 -1
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +88 -1
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +76 -1
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +76 -1
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/resources/image-to-video.ts +125 -0
- package/src/resources/text-to-video.ts +135 -0
- package/src/resources/video-to-video.ts +112 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.23.0 (2026-06-04)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.22.0...v3.23.0](https://github.com/runwayml/sdk-node/compare/v3.22.0...v3.23.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** SD2, HH1 ([02c1d41](https://github.com/runwayml/sdk-node/commit/02c1d41630f75806c050cc650379076e9f994b0e))
|
|
10
|
+
|
|
3
11
|
## 3.22.0 (2026-06-02)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v3.21.1...v3.22.0](https://github.com/runwayml/sdk-node/compare/v3.21.1...v3.22.0)
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@ export interface ImageToVideoCreateResponse {
|
|
|
25
25
|
*/
|
|
26
26
|
id: string;
|
|
27
27
|
}
|
|
28
|
-
export type ImageToVideoCreateParams = ImageToVideoCreateParams.Gen4_5 | ImageToVideoCreateParams.Gen4Turbo | ImageToVideoCreateParams.Veo3_1 | ImageToVideoCreateParams.Gen3aTurbo | ImageToVideoCreateParams.Veo3_1Fast | ImageToVideoCreateParams.Veo3;
|
|
28
|
+
export type ImageToVideoCreateParams = ImageToVideoCreateParams.Gen4_5 | ImageToVideoCreateParams.Gen4Turbo | ImageToVideoCreateParams.Veo3_1 | ImageToVideoCreateParams.Gen3aTurbo | ImageToVideoCreateParams.Veo3_1Fast | ImageToVideoCreateParams.Happyhorse1_0 | ImageToVideoCreateParams.Seedance2 | ImageToVideoCreateParams.Veo3;
|
|
29
29
|
export declare namespace ImageToVideoCreateParams {
|
|
30
30
|
interface Gen4_5 {
|
|
31
31
|
/**
|
|
@@ -268,6 +268,93 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
268
268
|
uri: string;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
+
interface Happyhorse1_0 {
|
|
272
|
+
model: 'happyhorse_1_0';
|
|
273
|
+
/**
|
|
274
|
+
* A HTTPS URL.
|
|
275
|
+
*/
|
|
276
|
+
promptImage: string | Array<Happyhorse1_0.PromptImage>;
|
|
277
|
+
/**
|
|
278
|
+
* The number of seconds of duration for the output video.
|
|
279
|
+
*/
|
|
280
|
+
duration?: number;
|
|
281
|
+
/**
|
|
282
|
+
* A string up to 2500 characters (measured in UTF-16 code units) describing motion
|
|
283
|
+
* or changes in the output video.
|
|
284
|
+
*/
|
|
285
|
+
promptText?: string;
|
|
286
|
+
/**
|
|
287
|
+
* Output quality tier. Output aspect ratio follows the input image.
|
|
288
|
+
*/
|
|
289
|
+
resolution?: '720P' | '1080P';
|
|
290
|
+
}
|
|
291
|
+
namespace Happyhorse1_0 {
|
|
292
|
+
interface PromptImage {
|
|
293
|
+
/**
|
|
294
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
295
|
+
* first frame of the video.
|
|
296
|
+
*/
|
|
297
|
+
position: 'first';
|
|
298
|
+
/**
|
|
299
|
+
* A HTTPS URL.
|
|
300
|
+
*/
|
|
301
|
+
uri: string;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
interface Seedance2 {
|
|
305
|
+
model: 'seedance2';
|
|
306
|
+
/**
|
|
307
|
+
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
308
|
+
* omit position for reference images. The two modes cannot be mixed.
|
|
309
|
+
*/
|
|
310
|
+
promptImage: string | Array<Seedance2.PromptImage>;
|
|
311
|
+
/**
|
|
312
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
313
|
+
*/
|
|
314
|
+
audio?: boolean;
|
|
315
|
+
/**
|
|
316
|
+
* The number of seconds of duration for the output video.
|
|
317
|
+
*/
|
|
318
|
+
duration?: number;
|
|
319
|
+
/**
|
|
320
|
+
* An optional text prompt up to 3500 characters (measured in UTF-16 code units).
|
|
321
|
+
* This should describe in detail what should appear in the output.
|
|
322
|
+
*/
|
|
323
|
+
promptText?: string;
|
|
324
|
+
/**
|
|
325
|
+
* The resolution of the output video.
|
|
326
|
+
*/
|
|
327
|
+
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280' | '2206:946' | '1920:1080' | '1664:1248' | '1440:1440' | '1248:1664' | '1080:1920';
|
|
328
|
+
/**
|
|
329
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
330
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
331
|
+
*/
|
|
332
|
+
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
333
|
+
}
|
|
334
|
+
namespace Seedance2 {
|
|
335
|
+
interface PromptImage {
|
|
336
|
+
/**
|
|
337
|
+
* A HTTPS URL.
|
|
338
|
+
*/
|
|
339
|
+
uri: string;
|
|
340
|
+
/**
|
|
341
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
342
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
343
|
+
*/
|
|
344
|
+
position?: 'first' | 'last';
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
348
|
+
* the output.
|
|
349
|
+
*/
|
|
350
|
+
interface ReferenceAudio {
|
|
351
|
+
type: 'audio';
|
|
352
|
+
/**
|
|
353
|
+
* A HTTPS URL.
|
|
354
|
+
*/
|
|
355
|
+
uri: string;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
271
358
|
interface Veo3 {
|
|
272
359
|
/**
|
|
273
360
|
* The number of seconds of duration for the output video.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-to-video.d.mts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,2BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,wBAAwB,GAChC,wBAAwB,CAAC,MAAM,GAC/B,wBAAwB,CAAC,SAAS,GAClC,wBAAwB,CAAC,MAAM,GAC/B,wBAAwB,CAAC,UAAU,GACnC,wBAAwB,CAAC,UAAU,GACnC,wBAAwB,CAAC,IAAI,CAAC;AAElC,MAAM,CAAC,OAAO,WAAW,wBAAwB,CAAC;IAChD,UAAiB,MAAM;QACrB;;;WAGG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB,KAAK,EAAE,QAAQ,CAAC;QAEhB;;WAEG;QACH,WAAW,EAAE,MAAM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IAED,UAAiB,SAAS,CAAC;QACzB,UAAiB,WAAW;YAC1B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ;;;eAGG;YACH,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;SAC7B;QAED;;;WAGG;QACH,UAAiB,cAAc;YAC7B,IAAI,EAAE,OAAO,CAAC;YAEd;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;IAED,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC;QAEZ,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAE9C;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,WAAW;YAC1B;;;eAGG;YACH,QAAQ,EAAE,OAAO,CAAC;YAElB;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -25,7 +25,7 @@ export interface ImageToVideoCreateResponse {
|
|
|
25
25
|
*/
|
|
26
26
|
id: string;
|
|
27
27
|
}
|
|
28
|
-
export type ImageToVideoCreateParams = ImageToVideoCreateParams.Gen4_5 | ImageToVideoCreateParams.Gen4Turbo | ImageToVideoCreateParams.Veo3_1 | ImageToVideoCreateParams.Gen3aTurbo | ImageToVideoCreateParams.Veo3_1Fast | ImageToVideoCreateParams.Veo3;
|
|
28
|
+
export type ImageToVideoCreateParams = ImageToVideoCreateParams.Gen4_5 | ImageToVideoCreateParams.Gen4Turbo | ImageToVideoCreateParams.Veo3_1 | ImageToVideoCreateParams.Gen3aTurbo | ImageToVideoCreateParams.Veo3_1Fast | ImageToVideoCreateParams.Happyhorse1_0 | ImageToVideoCreateParams.Seedance2 | ImageToVideoCreateParams.Veo3;
|
|
29
29
|
export declare namespace ImageToVideoCreateParams {
|
|
30
30
|
interface Gen4_5 {
|
|
31
31
|
/**
|
|
@@ -268,6 +268,93 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
268
268
|
uri: string;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
+
interface Happyhorse1_0 {
|
|
272
|
+
model: 'happyhorse_1_0';
|
|
273
|
+
/**
|
|
274
|
+
* A HTTPS URL.
|
|
275
|
+
*/
|
|
276
|
+
promptImage: string | Array<Happyhorse1_0.PromptImage>;
|
|
277
|
+
/**
|
|
278
|
+
* The number of seconds of duration for the output video.
|
|
279
|
+
*/
|
|
280
|
+
duration?: number;
|
|
281
|
+
/**
|
|
282
|
+
* A string up to 2500 characters (measured in UTF-16 code units) describing motion
|
|
283
|
+
* or changes in the output video.
|
|
284
|
+
*/
|
|
285
|
+
promptText?: string;
|
|
286
|
+
/**
|
|
287
|
+
* Output quality tier. Output aspect ratio follows the input image.
|
|
288
|
+
*/
|
|
289
|
+
resolution?: '720P' | '1080P';
|
|
290
|
+
}
|
|
291
|
+
namespace Happyhorse1_0 {
|
|
292
|
+
interface PromptImage {
|
|
293
|
+
/**
|
|
294
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
295
|
+
* first frame of the video.
|
|
296
|
+
*/
|
|
297
|
+
position: 'first';
|
|
298
|
+
/**
|
|
299
|
+
* A HTTPS URL.
|
|
300
|
+
*/
|
|
301
|
+
uri: string;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
interface Seedance2 {
|
|
305
|
+
model: 'seedance2';
|
|
306
|
+
/**
|
|
307
|
+
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
308
|
+
* omit position for reference images. The two modes cannot be mixed.
|
|
309
|
+
*/
|
|
310
|
+
promptImage: string | Array<Seedance2.PromptImage>;
|
|
311
|
+
/**
|
|
312
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
313
|
+
*/
|
|
314
|
+
audio?: boolean;
|
|
315
|
+
/**
|
|
316
|
+
* The number of seconds of duration for the output video.
|
|
317
|
+
*/
|
|
318
|
+
duration?: number;
|
|
319
|
+
/**
|
|
320
|
+
* An optional text prompt up to 3500 characters (measured in UTF-16 code units).
|
|
321
|
+
* This should describe in detail what should appear in the output.
|
|
322
|
+
*/
|
|
323
|
+
promptText?: string;
|
|
324
|
+
/**
|
|
325
|
+
* The resolution of the output video.
|
|
326
|
+
*/
|
|
327
|
+
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280' | '2206:946' | '1920:1080' | '1664:1248' | '1440:1440' | '1248:1664' | '1080:1920';
|
|
328
|
+
/**
|
|
329
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
330
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
331
|
+
*/
|
|
332
|
+
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
333
|
+
}
|
|
334
|
+
namespace Seedance2 {
|
|
335
|
+
interface PromptImage {
|
|
336
|
+
/**
|
|
337
|
+
* A HTTPS URL.
|
|
338
|
+
*/
|
|
339
|
+
uri: string;
|
|
340
|
+
/**
|
|
341
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
342
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
343
|
+
*/
|
|
344
|
+
position?: 'first' | 'last';
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
348
|
+
* the output.
|
|
349
|
+
*/
|
|
350
|
+
interface ReferenceAudio {
|
|
351
|
+
type: 'audio';
|
|
352
|
+
/**
|
|
353
|
+
* A HTTPS URL.
|
|
354
|
+
*/
|
|
355
|
+
uri: string;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
271
358
|
interface Veo3 {
|
|
272
359
|
/**
|
|
273
360
|
* The number of seconds of duration for the output video.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-to-video.d.ts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,wBAAwB,GAChC,wBAAwB,CAAC,MAAM,GAC/B,wBAAwB,CAAC,SAAS,GAClC,wBAAwB,CAAC,MAAM,GAC/B,wBAAwB,CAAC,UAAU,GACnC,wBAAwB,CAAC,UAAU,GACnC,wBAAwB,CAAC,IAAI,CAAC;AAElC,MAAM,CAAC,OAAO,WAAW,wBAAwB,CAAC;IAChD,UAAiB,MAAM;QACrB;;;WAGG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB,KAAK,EAAE,QAAQ,CAAC;QAEhB;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAEhD;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;QAElF;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,iBAAiB,C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AAC;SACb;KACF;IAED,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC;QAEZ,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAE9C;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,WAAW;YAC1B;;;eAGG;YACH,QAAQ,EAAE,OAAO,CAAC;YAElB;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -16,7 +16,7 @@ export interface TextToVideoCreateResponse {
|
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
18
|
}
|
|
19
|
-
export type TextToVideoCreateParams = TextToVideoCreateParams.Gen4_5 | TextToVideoCreateParams.Veo3_1 | TextToVideoCreateParams.Veo3_1Fast | TextToVideoCreateParams.Veo3;
|
|
19
|
+
export type TextToVideoCreateParams = TextToVideoCreateParams.Gen4_5 | TextToVideoCreateParams.Veo3_1 | TextToVideoCreateParams.Veo3_1Fast | TextToVideoCreateParams.Happyhorse1_0 | TextToVideoCreateParams.Seedance2 | TextToVideoCreateParams.Veo3;
|
|
20
20
|
export declare namespace TextToVideoCreateParams {
|
|
21
21
|
interface Gen4_5 {
|
|
22
22
|
/**
|
|
@@ -97,6 +97,93 @@ export declare namespace TextToVideoCreateParams {
|
|
|
97
97
|
*/
|
|
98
98
|
duration?: 4 | 6 | 8;
|
|
99
99
|
}
|
|
100
|
+
interface Happyhorse1_0 {
|
|
101
|
+
model: 'happyhorse_1_0';
|
|
102
|
+
/**
|
|
103
|
+
* A non-empty string up to 2500 characters (measured in UTF-16 code units). This
|
|
104
|
+
* should describe in detail what should appear in the output.
|
|
105
|
+
*/
|
|
106
|
+
promptText: string;
|
|
107
|
+
/**
|
|
108
|
+
* The number of seconds of duration for the output video.
|
|
109
|
+
*/
|
|
110
|
+
duration?: number;
|
|
111
|
+
/**
|
|
112
|
+
* The resolution of the output video.
|
|
113
|
+
*/
|
|
114
|
+
ratio?: '1280:720' | '720:1280' | '960:960' | '1108:832' | '832:1108' | '1920:1080' | '1080:1920' | '1440:1440' | '1662:1248' | '1248:1662';
|
|
115
|
+
}
|
|
116
|
+
interface Seedance2 {
|
|
117
|
+
model: 'seedance2';
|
|
118
|
+
/**
|
|
119
|
+
* A non-empty string up to 3500 characters (measured in UTF-16 code units). This
|
|
120
|
+
* should describe in detail what should appear in the output.
|
|
121
|
+
*/
|
|
122
|
+
promptText: string;
|
|
123
|
+
/**
|
|
124
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
125
|
+
*/
|
|
126
|
+
audio?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* The number of seconds of duration for the output video.
|
|
129
|
+
*/
|
|
130
|
+
duration?: number;
|
|
131
|
+
/**
|
|
132
|
+
* The resolution of the output video.
|
|
133
|
+
*/
|
|
134
|
+
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280' | '2206:946' | '1920:1080' | '1664:1248' | '1440:1440' | '1248:1664' | '1080:1920';
|
|
135
|
+
/**
|
|
136
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
137
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
138
|
+
*/
|
|
139
|
+
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
140
|
+
/**
|
|
141
|
+
* An optional array of image references (up to 9). See
|
|
142
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
143
|
+
*/
|
|
144
|
+
references?: Array<Seedance2.Reference>;
|
|
145
|
+
/**
|
|
146
|
+
* An optional array of video references. The combined duration across all video
|
|
147
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
148
|
+
* video inputs for more information.
|
|
149
|
+
*/
|
|
150
|
+
referenceVideos?: Array<Seedance2.ReferenceVideo>;
|
|
151
|
+
}
|
|
152
|
+
namespace Seedance2 {
|
|
153
|
+
/**
|
|
154
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
155
|
+
* the output.
|
|
156
|
+
*/
|
|
157
|
+
interface ReferenceAudio {
|
|
158
|
+
type: 'audio';
|
|
159
|
+
/**
|
|
160
|
+
* A HTTPS URL.
|
|
161
|
+
*/
|
|
162
|
+
uri: string;
|
|
163
|
+
}
|
|
164
|
+
interface Reference {
|
|
165
|
+
/**
|
|
166
|
+
* A HTTPS URL.
|
|
167
|
+
*/
|
|
168
|
+
uri: string;
|
|
169
|
+
/**
|
|
170
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
171
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
172
|
+
*/
|
|
173
|
+
position?: 'first' | 'last';
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* A video reference allows the model to use the video as additional context for
|
|
177
|
+
* the output.
|
|
178
|
+
*/
|
|
179
|
+
interface ReferenceVideo {
|
|
180
|
+
type: 'video';
|
|
181
|
+
/**
|
|
182
|
+
* A HTTPS URL.
|
|
183
|
+
*/
|
|
184
|
+
uri: string;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
100
187
|
interface Veo3 {
|
|
101
188
|
/**
|
|
102
189
|
* The number of seconds of duration for the output video.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-video.d.mts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,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;YAC7B,IAAI,EAAE,OAAO,CAAC;YAEd;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;IAED,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC;QAEZ,KAAK,EAAE,MAAM,CAAC;QAEd;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;KAC5D;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -16,7 +16,7 @@ export interface TextToVideoCreateResponse {
|
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
18
|
}
|
|
19
|
-
export type TextToVideoCreateParams = TextToVideoCreateParams.Gen4_5 | TextToVideoCreateParams.Veo3_1 | TextToVideoCreateParams.Veo3_1Fast | TextToVideoCreateParams.Veo3;
|
|
19
|
+
export type TextToVideoCreateParams = TextToVideoCreateParams.Gen4_5 | TextToVideoCreateParams.Veo3_1 | TextToVideoCreateParams.Veo3_1Fast | TextToVideoCreateParams.Happyhorse1_0 | TextToVideoCreateParams.Seedance2 | TextToVideoCreateParams.Veo3;
|
|
20
20
|
export declare namespace TextToVideoCreateParams {
|
|
21
21
|
interface Gen4_5 {
|
|
22
22
|
/**
|
|
@@ -97,6 +97,93 @@ export declare namespace TextToVideoCreateParams {
|
|
|
97
97
|
*/
|
|
98
98
|
duration?: 4 | 6 | 8;
|
|
99
99
|
}
|
|
100
|
+
interface Happyhorse1_0 {
|
|
101
|
+
model: 'happyhorse_1_0';
|
|
102
|
+
/**
|
|
103
|
+
* A non-empty string up to 2500 characters (measured in UTF-16 code units). This
|
|
104
|
+
* should describe in detail what should appear in the output.
|
|
105
|
+
*/
|
|
106
|
+
promptText: string;
|
|
107
|
+
/**
|
|
108
|
+
* The number of seconds of duration for the output video.
|
|
109
|
+
*/
|
|
110
|
+
duration?: number;
|
|
111
|
+
/**
|
|
112
|
+
* The resolution of the output video.
|
|
113
|
+
*/
|
|
114
|
+
ratio?: '1280:720' | '720:1280' | '960:960' | '1108:832' | '832:1108' | '1920:1080' | '1080:1920' | '1440:1440' | '1662:1248' | '1248:1662';
|
|
115
|
+
}
|
|
116
|
+
interface Seedance2 {
|
|
117
|
+
model: 'seedance2';
|
|
118
|
+
/**
|
|
119
|
+
* A non-empty string up to 3500 characters (measured in UTF-16 code units). This
|
|
120
|
+
* should describe in detail what should appear in the output.
|
|
121
|
+
*/
|
|
122
|
+
promptText: string;
|
|
123
|
+
/**
|
|
124
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
125
|
+
*/
|
|
126
|
+
audio?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* The number of seconds of duration for the output video.
|
|
129
|
+
*/
|
|
130
|
+
duration?: number;
|
|
131
|
+
/**
|
|
132
|
+
* The resolution of the output video.
|
|
133
|
+
*/
|
|
134
|
+
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280' | '2206:946' | '1920:1080' | '1664:1248' | '1440:1440' | '1248:1664' | '1080:1920';
|
|
135
|
+
/**
|
|
136
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
137
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
138
|
+
*/
|
|
139
|
+
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
140
|
+
/**
|
|
141
|
+
* An optional array of image references (up to 9). See
|
|
142
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
143
|
+
*/
|
|
144
|
+
references?: Array<Seedance2.Reference>;
|
|
145
|
+
/**
|
|
146
|
+
* An optional array of video references. The combined duration across all video
|
|
147
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
148
|
+
* video inputs for more information.
|
|
149
|
+
*/
|
|
150
|
+
referenceVideos?: Array<Seedance2.ReferenceVideo>;
|
|
151
|
+
}
|
|
152
|
+
namespace Seedance2 {
|
|
153
|
+
/**
|
|
154
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
155
|
+
* the output.
|
|
156
|
+
*/
|
|
157
|
+
interface ReferenceAudio {
|
|
158
|
+
type: 'audio';
|
|
159
|
+
/**
|
|
160
|
+
* A HTTPS URL.
|
|
161
|
+
*/
|
|
162
|
+
uri: string;
|
|
163
|
+
}
|
|
164
|
+
interface Reference {
|
|
165
|
+
/**
|
|
166
|
+
* A HTTPS URL.
|
|
167
|
+
*/
|
|
168
|
+
uri: string;
|
|
169
|
+
/**
|
|
170
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
171
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
172
|
+
*/
|
|
173
|
+
position?: 'first' | 'last';
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* A video reference allows the model to use the video as additional context for
|
|
177
|
+
* the output.
|
|
178
|
+
*/
|
|
179
|
+
interface ReferenceVideo {
|
|
180
|
+
type: 'video';
|
|
181
|
+
/**
|
|
182
|
+
* A HTTPS URL.
|
|
183
|
+
*/
|
|
184
|
+
uri: string;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
100
187
|
interface Veo3 {
|
|
101
188
|
/**
|
|
102
189
|
* The number of seconds of duration for the output video.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-video.d.ts","sourceRoot":"","sources":["../src/resources/text-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EA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E,MAAM,CAAC;QAEd;;;WAGG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;KAC5D;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -25,7 +25,7 @@ export interface VideoToVideoCreateResponse {
|
|
|
25
25
|
*/
|
|
26
26
|
id: string;
|
|
27
27
|
}
|
|
28
|
-
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Gen4Aleph | VideoToVideoCreateParams.Aleph2;
|
|
28
|
+
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Gen4Aleph | VideoToVideoCreateParams.Aleph2 | VideoToVideoCreateParams.Seedance2;
|
|
29
29
|
export declare namespace VideoToVideoCreateParams {
|
|
30
30
|
interface Gen4Aleph {
|
|
31
31
|
model: 'gen4_aleph';
|
|
@@ -176,6 +176,81 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
+
interface Seedance2 {
|
|
180
|
+
model: 'seedance2';
|
|
181
|
+
/**
|
|
182
|
+
* A HTTPS URL.
|
|
183
|
+
*/
|
|
184
|
+
promptVideo: string;
|
|
185
|
+
/**
|
|
186
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
187
|
+
*/
|
|
188
|
+
audio?: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* The number of seconds of duration for the output video.
|
|
191
|
+
*/
|
|
192
|
+
duration?: number;
|
|
193
|
+
/**
|
|
194
|
+
* An optional text prompt up to 3500 characters describing what should appear in
|
|
195
|
+
* the output video.
|
|
196
|
+
*/
|
|
197
|
+
promptText?: string;
|
|
198
|
+
/**
|
|
199
|
+
* The resolution of the output video.
|
|
200
|
+
*/
|
|
201
|
+
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280' | '2206:946' | '1920:1080' | '1664:1248' | '1440:1440' | '1248:1664' | '1080:1920';
|
|
202
|
+
/**
|
|
203
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
204
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
205
|
+
*/
|
|
206
|
+
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
207
|
+
/**
|
|
208
|
+
* An optional array of image references (up to 9). See
|
|
209
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
210
|
+
*/
|
|
211
|
+
references?: Array<Seedance2.Reference>;
|
|
212
|
+
/**
|
|
213
|
+
* An optional array of video references. The combined duration across all video
|
|
214
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
215
|
+
* video inputs for more information.
|
|
216
|
+
*/
|
|
217
|
+
referenceVideos?: Array<Seedance2.ReferenceVideo>;
|
|
218
|
+
}
|
|
219
|
+
namespace Seedance2 {
|
|
220
|
+
/**
|
|
221
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
222
|
+
* the output.
|
|
223
|
+
*/
|
|
224
|
+
interface ReferenceAudio {
|
|
225
|
+
type: 'audio';
|
|
226
|
+
/**
|
|
227
|
+
* A HTTPS URL.
|
|
228
|
+
*/
|
|
229
|
+
uri: string;
|
|
230
|
+
}
|
|
231
|
+
interface Reference {
|
|
232
|
+
/**
|
|
233
|
+
* A HTTPS URL.
|
|
234
|
+
*/
|
|
235
|
+
uri: string;
|
|
236
|
+
/**
|
|
237
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
238
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
239
|
+
*/
|
|
240
|
+
position?: 'first' | 'last';
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* A video reference allows the model to use the video as additional context for
|
|
244
|
+
* the output.
|
|
245
|
+
*/
|
|
246
|
+
interface ReferenceVideo {
|
|
247
|
+
type: 'video';
|
|
248
|
+
/**
|
|
249
|
+
* A HTTPS URL.
|
|
250
|
+
*/
|
|
251
|
+
uri: string;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
179
254
|
}
|
|
180
255
|
export declare namespace VideoToVideo {
|
|
181
256
|
export { type VideoToVideoCreateResponse as VideoToVideoCreateResponse, type VideoToVideoCreateParams as VideoToVideoCreateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.d.mts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,2BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"video-to-video.d.mts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,2BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IAC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,GACV,UAAU,GACV,UAAU,GACV,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,CAAC;QAEhB;;;WAGG;QACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAEjD;;;WAGG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAExC;;;;WAIG;QACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;KACnD;IAED,UAAiB,SAAS,CAAC;QACzB;;;WAGG;QACH,UAAiB,cAAc;YAC7B,IAAI,EAAE,OAAO,CAAC;YAEd;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;QAED,UAAiB,SAAS;YACxB;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;YAEZ;;;eAGG;YACH,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;SAC7B;QAED;;;WAGG;QACH,UAAiB,cAAc;YAC7B,IAAI,EAAE,OAAO,CAAC;YAEd;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -25,7 +25,7 @@ export interface VideoToVideoCreateResponse {
|
|
|
25
25
|
*/
|
|
26
26
|
id: string;
|
|
27
27
|
}
|
|
28
|
-
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Gen4Aleph | VideoToVideoCreateParams.Aleph2;
|
|
28
|
+
export type VideoToVideoCreateParams = VideoToVideoCreateParams.Gen4Aleph | VideoToVideoCreateParams.Aleph2 | VideoToVideoCreateParams.Seedance2;
|
|
29
29
|
export declare namespace VideoToVideoCreateParams {
|
|
30
30
|
interface Gen4Aleph {
|
|
31
31
|
model: 'gen4_aleph';
|
|
@@ -176,6 +176,81 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
+
interface Seedance2 {
|
|
180
|
+
model: 'seedance2';
|
|
181
|
+
/**
|
|
182
|
+
* A HTTPS URL.
|
|
183
|
+
*/
|
|
184
|
+
promptVideo: string;
|
|
185
|
+
/**
|
|
186
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
187
|
+
*/
|
|
188
|
+
audio?: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* The number of seconds of duration for the output video.
|
|
191
|
+
*/
|
|
192
|
+
duration?: number;
|
|
193
|
+
/**
|
|
194
|
+
* An optional text prompt up to 3500 characters describing what should appear in
|
|
195
|
+
* the output video.
|
|
196
|
+
*/
|
|
197
|
+
promptText?: string;
|
|
198
|
+
/**
|
|
199
|
+
* The resolution of the output video.
|
|
200
|
+
*/
|
|
201
|
+
ratio?: '992:432' | '864:496' | '752:560' | '640:640' | '560:752' | '496:864' | '1470:630' | '1280:720' | '1112:834' | '960:960' | '834:1112' | '720:1280' | '2206:946' | '1920:1080' | '1664:1248' | '1440:1440' | '1248:1664' | '1080:1920';
|
|
202
|
+
/**
|
|
203
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
204
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
205
|
+
*/
|
|
206
|
+
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
207
|
+
/**
|
|
208
|
+
* An optional array of image references (up to 9). See
|
|
209
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
210
|
+
*/
|
|
211
|
+
references?: Array<Seedance2.Reference>;
|
|
212
|
+
/**
|
|
213
|
+
* An optional array of video references. The combined duration across all video
|
|
214
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
215
|
+
* video inputs for more information.
|
|
216
|
+
*/
|
|
217
|
+
referenceVideos?: Array<Seedance2.ReferenceVideo>;
|
|
218
|
+
}
|
|
219
|
+
namespace Seedance2 {
|
|
220
|
+
/**
|
|
221
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
222
|
+
* the output.
|
|
223
|
+
*/
|
|
224
|
+
interface ReferenceAudio {
|
|
225
|
+
type: 'audio';
|
|
226
|
+
/**
|
|
227
|
+
* A HTTPS URL.
|
|
228
|
+
*/
|
|
229
|
+
uri: string;
|
|
230
|
+
}
|
|
231
|
+
interface Reference {
|
|
232
|
+
/**
|
|
233
|
+
* A HTTPS URL.
|
|
234
|
+
*/
|
|
235
|
+
uri: string;
|
|
236
|
+
/**
|
|
237
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
238
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
239
|
+
*/
|
|
240
|
+
position?: 'first' | 'last';
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* A video reference allows the model to use the video as additional context for
|
|
244
|
+
* the output.
|
|
245
|
+
*/
|
|
246
|
+
interface ReferenceVideo {
|
|
247
|
+
type: 'video';
|
|
248
|
+
/**
|
|
249
|
+
* A HTTPS URL.
|
|
250
|
+
*/
|
|
251
|
+
uri: string;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
179
254
|
}
|
|
180
255
|
export declare namespace VideoToVideo {
|
|
181
256
|
export { type VideoToVideoCreateResponse as VideoToVideoCreateResponse, type VideoToVideoCreateParams as VideoToVideoCreateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-to-video.d.ts","sourceRoot":"","sources":["../src/resources/video-to-video.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAC7D,OAAO,EAAE,2BAA2B,EAA0B,0BAAuB;AAErF;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE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MAAM,CAAC;SAC7B;QAED;;;WAGG;QACH,UAAiB,cAAc;YAC7B,IAAI,EAAE,OAAO,CAAC;YAEd;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -43,6 +43,8 @@ export type ImageToVideoCreateParams =
|
|
|
43
43
|
| ImageToVideoCreateParams.Veo3_1
|
|
44
44
|
| ImageToVideoCreateParams.Gen3aTurbo
|
|
45
45
|
| ImageToVideoCreateParams.Veo3_1Fast
|
|
46
|
+
| ImageToVideoCreateParams.Happyhorse1_0
|
|
47
|
+
| ImageToVideoCreateParams.Seedance2
|
|
46
48
|
| ImageToVideoCreateParams.Veo3;
|
|
47
49
|
|
|
48
50
|
export declare namespace ImageToVideoCreateParams {
|
|
@@ -333,6 +335,129 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
333
335
|
}
|
|
334
336
|
}
|
|
335
337
|
|
|
338
|
+
export interface Happyhorse1_0 {
|
|
339
|
+
model: 'happyhorse_1_0';
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* A HTTPS URL.
|
|
343
|
+
*/
|
|
344
|
+
promptImage: string | Array<Happyhorse1_0.PromptImage>;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* The number of seconds of duration for the output video.
|
|
348
|
+
*/
|
|
349
|
+
duration?: number;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* A string up to 2500 characters (measured in UTF-16 code units) describing motion
|
|
353
|
+
* or changes in the output video.
|
|
354
|
+
*/
|
|
355
|
+
promptText?: string;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Output quality tier. Output aspect ratio follows the input image.
|
|
359
|
+
*/
|
|
360
|
+
resolution?: '720P' | '1080P';
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export namespace Happyhorse1_0 {
|
|
364
|
+
export interface PromptImage {
|
|
365
|
+
/**
|
|
366
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
367
|
+
* first frame of the video.
|
|
368
|
+
*/
|
|
369
|
+
position: 'first';
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* A HTTPS URL.
|
|
373
|
+
*/
|
|
374
|
+
uri: string;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export interface Seedance2 {
|
|
379
|
+
model: 'seedance2';
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* An image or array of images. Use position `first`/`last` for keyframe mode, or
|
|
383
|
+
* omit position for reference images. The two modes cannot be mixed.
|
|
384
|
+
*/
|
|
385
|
+
promptImage: string | Array<Seedance2.PromptImage>;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
389
|
+
*/
|
|
390
|
+
audio?: boolean;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* The number of seconds of duration for the output video.
|
|
394
|
+
*/
|
|
395
|
+
duration?: number;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* An optional text prompt up to 3500 characters (measured in UTF-16 code units).
|
|
399
|
+
* This should describe in detail what should appear in the output.
|
|
400
|
+
*/
|
|
401
|
+
promptText?: string;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* The resolution of the output video.
|
|
405
|
+
*/
|
|
406
|
+
ratio?:
|
|
407
|
+
| '992:432'
|
|
408
|
+
| '864:496'
|
|
409
|
+
| '752:560'
|
|
410
|
+
| '640:640'
|
|
411
|
+
| '560:752'
|
|
412
|
+
| '496:864'
|
|
413
|
+
| '1470:630'
|
|
414
|
+
| '1280:720'
|
|
415
|
+
| '1112:834'
|
|
416
|
+
| '960:960'
|
|
417
|
+
| '834:1112'
|
|
418
|
+
| '720:1280'
|
|
419
|
+
| '2206:946'
|
|
420
|
+
| '1920:1080'
|
|
421
|
+
| '1664:1248'
|
|
422
|
+
| '1440:1440'
|
|
423
|
+
| '1248:1664'
|
|
424
|
+
| '1080:1920';
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
428
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
429
|
+
*/
|
|
430
|
+
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export namespace Seedance2 {
|
|
434
|
+
export interface PromptImage {
|
|
435
|
+
/**
|
|
436
|
+
* A HTTPS URL.
|
|
437
|
+
*/
|
|
438
|
+
uri: string;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
442
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
443
|
+
*/
|
|
444
|
+
position?: 'first' | 'last';
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
449
|
+
* the output.
|
|
450
|
+
*/
|
|
451
|
+
export interface ReferenceAudio {
|
|
452
|
+
type: 'audio';
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* A HTTPS URL.
|
|
456
|
+
*/
|
|
457
|
+
uri: string;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
336
461
|
export interface Veo3 {
|
|
337
462
|
/**
|
|
338
463
|
* The number of seconds of duration for the output video.
|
|
@@ -32,6 +32,8 @@ export type TextToVideoCreateParams =
|
|
|
32
32
|
| TextToVideoCreateParams.Gen4_5
|
|
33
33
|
| TextToVideoCreateParams.Veo3_1
|
|
34
34
|
| TextToVideoCreateParams.Veo3_1Fast
|
|
35
|
+
| TextToVideoCreateParams.Happyhorse1_0
|
|
36
|
+
| TextToVideoCreateParams.Seedance2
|
|
35
37
|
| TextToVideoCreateParams.Veo3;
|
|
36
38
|
|
|
37
39
|
export declare namespace TextToVideoCreateParams {
|
|
@@ -131,6 +133,139 @@ export declare namespace TextToVideoCreateParams {
|
|
|
131
133
|
duration?: 4 | 6 | 8;
|
|
132
134
|
}
|
|
133
135
|
|
|
136
|
+
export interface Happyhorse1_0 {
|
|
137
|
+
model: 'happyhorse_1_0';
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* A non-empty string up to 2500 characters (measured in UTF-16 code units). This
|
|
141
|
+
* should describe in detail what should appear in the output.
|
|
142
|
+
*/
|
|
143
|
+
promptText: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The number of seconds of duration for the output video.
|
|
147
|
+
*/
|
|
148
|
+
duration?: number;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The resolution of the output video.
|
|
152
|
+
*/
|
|
153
|
+
ratio?:
|
|
154
|
+
| '1280:720'
|
|
155
|
+
| '720:1280'
|
|
156
|
+
| '960:960'
|
|
157
|
+
| '1108:832'
|
|
158
|
+
| '832:1108'
|
|
159
|
+
| '1920:1080'
|
|
160
|
+
| '1080:1920'
|
|
161
|
+
| '1440:1440'
|
|
162
|
+
| '1662:1248'
|
|
163
|
+
| '1248:1662';
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface Seedance2 {
|
|
167
|
+
model: 'seedance2';
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* A non-empty string up to 3500 characters (measured in UTF-16 code units). This
|
|
171
|
+
* should describe in detail what should appear in the output.
|
|
172
|
+
*/
|
|
173
|
+
promptText: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
177
|
+
*/
|
|
178
|
+
audio?: boolean;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The number of seconds of duration for the output video.
|
|
182
|
+
*/
|
|
183
|
+
duration?: number;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The resolution of the output video.
|
|
187
|
+
*/
|
|
188
|
+
ratio?:
|
|
189
|
+
| '992:432'
|
|
190
|
+
| '864:496'
|
|
191
|
+
| '752:560'
|
|
192
|
+
| '640:640'
|
|
193
|
+
| '560:752'
|
|
194
|
+
| '496:864'
|
|
195
|
+
| '1470:630'
|
|
196
|
+
| '1280:720'
|
|
197
|
+
| '1112:834'
|
|
198
|
+
| '960:960'
|
|
199
|
+
| '834:1112'
|
|
200
|
+
| '720:1280'
|
|
201
|
+
| '2206:946'
|
|
202
|
+
| '1920:1080'
|
|
203
|
+
| '1664:1248'
|
|
204
|
+
| '1440:1440'
|
|
205
|
+
| '1248:1664'
|
|
206
|
+
| '1080:1920';
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
210
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
211
|
+
*/
|
|
212
|
+
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* An optional array of image references (up to 9). See
|
|
216
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
217
|
+
*/
|
|
218
|
+
references?: Array<Seedance2.Reference>;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* An optional array of video references. The combined duration across all video
|
|
222
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
223
|
+
* video inputs for more information.
|
|
224
|
+
*/
|
|
225
|
+
referenceVideos?: Array<Seedance2.ReferenceVideo>;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export namespace Seedance2 {
|
|
229
|
+
/**
|
|
230
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
231
|
+
* the output.
|
|
232
|
+
*/
|
|
233
|
+
export interface ReferenceAudio {
|
|
234
|
+
type: 'audio';
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* A HTTPS URL.
|
|
238
|
+
*/
|
|
239
|
+
uri: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export interface Reference {
|
|
243
|
+
/**
|
|
244
|
+
* A HTTPS URL.
|
|
245
|
+
*/
|
|
246
|
+
uri: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
250
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
251
|
+
*/
|
|
252
|
+
position?: 'first' | 'last';
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* A video reference allows the model to use the video as additional context for
|
|
257
|
+
* the output.
|
|
258
|
+
*/
|
|
259
|
+
export interface ReferenceVideo {
|
|
260
|
+
type: 'video';
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* A HTTPS URL.
|
|
264
|
+
*/
|
|
265
|
+
uri: string;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
134
269
|
export interface Veo3 {
|
|
135
270
|
/**
|
|
136
271
|
* The number of seconds of duration for the output video.
|
|
@@ -37,7 +37,10 @@ export interface VideoToVideoCreateResponse {
|
|
|
37
37
|
id: string;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export type VideoToVideoCreateParams =
|
|
40
|
+
export type VideoToVideoCreateParams =
|
|
41
|
+
| VideoToVideoCreateParams.Gen4Aleph
|
|
42
|
+
| VideoToVideoCreateParams.Aleph2
|
|
43
|
+
| VideoToVideoCreateParams.Seedance2;
|
|
41
44
|
|
|
42
45
|
export declare namespace VideoToVideoCreateParams {
|
|
43
46
|
export interface Gen4Aleph {
|
|
@@ -224,6 +227,114 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
224
227
|
}
|
|
225
228
|
}
|
|
226
229
|
}
|
|
230
|
+
|
|
231
|
+
export interface Seedance2 {
|
|
232
|
+
model: 'seedance2';
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* A HTTPS URL.
|
|
236
|
+
*/
|
|
237
|
+
promptVideo: string;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Whether to generate audio for the video. Audio inclusion affects pricing.
|
|
241
|
+
*/
|
|
242
|
+
audio?: boolean;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* The number of seconds of duration for the output video.
|
|
246
|
+
*/
|
|
247
|
+
duration?: number;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* An optional text prompt up to 3500 characters describing what should appear in
|
|
251
|
+
* the output video.
|
|
252
|
+
*/
|
|
253
|
+
promptText?: string;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* The resolution of the output video.
|
|
257
|
+
*/
|
|
258
|
+
ratio?:
|
|
259
|
+
| '992:432'
|
|
260
|
+
| '864:496'
|
|
261
|
+
| '752:560'
|
|
262
|
+
| '640:640'
|
|
263
|
+
| '560:752'
|
|
264
|
+
| '496:864'
|
|
265
|
+
| '1470:630'
|
|
266
|
+
| '1280:720'
|
|
267
|
+
| '1112:834'
|
|
268
|
+
| '960:960'
|
|
269
|
+
| '834:1112'
|
|
270
|
+
| '720:1280'
|
|
271
|
+
| '2206:946'
|
|
272
|
+
| '1920:1080'
|
|
273
|
+
| '1664:1248'
|
|
274
|
+
| '1440:1440'
|
|
275
|
+
| '1248:1664'
|
|
276
|
+
| '1080:1920';
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* An optional array of audio references. Audio references require a text prompt,
|
|
280
|
+
* and the total combined duration must not exceed 15 seconds.
|
|
281
|
+
*/
|
|
282
|
+
referenceAudio?: Array<Seedance2.ReferenceAudio>;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* An optional array of image references (up to 9). See
|
|
286
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
287
|
+
*/
|
|
288
|
+
references?: Array<Seedance2.Reference>;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* An optional array of video references. The combined duration across all video
|
|
292
|
+
* references must not exceed 15 seconds. See [our docs](/assets/inputs#videos) on
|
|
293
|
+
* video inputs for more information.
|
|
294
|
+
*/
|
|
295
|
+
referenceVideos?: Array<Seedance2.ReferenceVideo>;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export namespace Seedance2 {
|
|
299
|
+
/**
|
|
300
|
+
* An audio reference allows the model to use the audio as additional context for
|
|
301
|
+
* the output.
|
|
302
|
+
*/
|
|
303
|
+
export interface ReferenceAudio {
|
|
304
|
+
type: 'audio';
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* A HTTPS URL.
|
|
308
|
+
*/
|
|
309
|
+
uri: string;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export interface Reference {
|
|
313
|
+
/**
|
|
314
|
+
* A HTTPS URL.
|
|
315
|
+
*/
|
|
316
|
+
uri: string;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
320
|
+
* first frame, "last" as the last frame. Omit for a reference image.
|
|
321
|
+
*/
|
|
322
|
+
position?: 'first' | 'last';
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* A video reference allows the model to use the video as additional context for
|
|
327
|
+
* the output.
|
|
328
|
+
*/
|
|
329
|
+
export interface ReferenceVideo {
|
|
330
|
+
type: 'video';
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* A HTTPS URL.
|
|
334
|
+
*/
|
|
335
|
+
uri: string;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
227
338
|
}
|
|
228
339
|
|
|
229
340
|
export declare namespace VideoToVideo {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.23.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.23.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.23.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.23.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|