magic-hour 0.51.0 → 0.53.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/README.md +1 -1
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-clothes-changer/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-clothes-changer/resource-client.js +1 -1
- package/dist/resources/v1/ai-face-editor/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-face-editor/resource-client.js +1 -1
- package/dist/resources/v1/ai-gif-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-gif-generator/resource-client.js +1 -1
- package/dist/resources/v1/ai-headshot-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-headshot-generator/resource-client.js +1 -1
- package/dist/resources/v1/ai-image-editor/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-image-editor/resource-client.js +1 -1
- package/dist/resources/v1/ai-image-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-image-generator/resource-client.js +1 -1
- package/dist/resources/v1/ai-image-upscaler/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-image-upscaler/resource-client.js +1 -1
- package/dist/resources/v1/ai-meme-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-meme-generator/resource-client.js +1 -1
- package/dist/resources/v1/ai-qr-code-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-qr-code-generator/resource-client.js +1 -1
- package/dist/resources/v1/ai-talking-photo/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-talking-photo/resource-client.js +1 -1
- package/dist/resources/v1/ai-voice-cloner/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-voice-cloner/resource-client.js +1 -1
- package/dist/resources/v1/ai-voice-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-voice-generator/resource-client.js +1 -1
- package/dist/resources/v1/animation/resource-client.d.ts +1 -1
- package/dist/resources/v1/animation/resource-client.js +1 -1
- package/dist/resources/v1/auto-subtitle-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/auto-subtitle-generator/resource-client.js +1 -1
- package/dist/resources/v1/face-swap/resource-client.d.ts +1 -1
- package/dist/resources/v1/face-swap/resource-client.js +1 -1
- package/dist/resources/v1/face-swap-photo/resource-client.d.ts +1 -1
- package/dist/resources/v1/face-swap-photo/resource-client.js +1 -1
- package/dist/resources/v1/image-background-remover/resource-client.d.ts +1 -1
- package/dist/resources/v1/image-background-remover/resource-client.js +1 -1
- package/dist/resources/v1/image-to-video/request-types.d.ts +34 -17
- package/dist/resources/v1/image-to-video/request-types.js +10 -0
- package/dist/resources/v1/image-to-video/resource-client.d.ts +1 -1
- package/dist/resources/v1/image-to-video/resource-client.js +1 -1
- package/dist/resources/v1/lip-sync/resource-client.d.ts +1 -1
- package/dist/resources/v1/lip-sync/resource-client.js +1 -1
- package/dist/resources/v1/photo-colorizer/resource-client.d.ts +1 -1
- package/dist/resources/v1/photo-colorizer/resource-client.js +1 -1
- package/dist/resources/v1/text-to-video/request-types.d.ts +41 -23
- package/dist/resources/v1/text-to-video/request-types.js +10 -0
- package/dist/resources/v1/text-to-video/resource-client.d.ts +1 -1
- package/dist/resources/v1/text-to-video/resource-client.js +1 -1
- package/dist/resources/v1/video-to-video/resource-client.d.ts +1 -1
- package/dist/resources/v1/video-to-video/resource-client.js +1 -1
- package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +5 -4
- package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +7 -6
- package/dist/types/v1-image-to-video-create-body.d.ts +34 -17
- package/dist/types/v1-image-to-video-create-body.js +10 -0
- package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +7 -6
- package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +5 -4
- package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +7 -6
- package/dist/types/v1-text-to-video-create-body.d.ts +41 -23
- package/dist/types/v1-text-to-video-create-body.js +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/environment.d.ts
CHANGED
package/dist/environment.js
CHANGED
|
@@ -4,5 +4,5 @@ exports.Environment = void 0;
|
|
|
4
4
|
var Environment;
|
|
5
5
|
(function (Environment) {
|
|
6
6
|
Environment["Environment"] = "https://api.magichour.ai";
|
|
7
|
-
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.
|
|
7
|
+
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.53.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -9,17 +9,31 @@ export type CreateRequest = {
|
|
|
9
9
|
* Provide the assets for image-to-video. Sora 2 only supports images with an aspect ratio of `9:16` or `16:9`.
|
|
10
10
|
*/
|
|
11
11
|
assets: V1ImageToVideoCreateBodyAssets;
|
|
12
|
+
/**
|
|
13
|
+
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
14
|
+
*
|
|
15
|
+
* Audio support varies by model:
|
|
16
|
+
* * **ltx-2**: Always included (cannot be disabled)
|
|
17
|
+
* * **seedance**: Not supported
|
|
18
|
+
* * **kling-2.5**: Always included (cannot be disabled)
|
|
19
|
+
* * **kling-3.0**: Toggle-able (can enable/disable)
|
|
20
|
+
* * **sora-2**: Always included (cannot be disabled)
|
|
21
|
+
* * **veo3.1**: Toggle-able (can enable/disable)
|
|
22
|
+
* * **kling-1.6**: Not supported
|
|
23
|
+
*/
|
|
24
|
+
audio?: boolean | undefined;
|
|
12
25
|
/**
|
|
13
26
|
* The total duration of the output video in seconds.
|
|
14
27
|
*
|
|
15
28
|
* Supported durations depend on the chosen model:
|
|
16
29
|
* * **Default**: 5-60 seconds (2-12 seconds for 480p).
|
|
17
|
-
* * **
|
|
18
|
-
* * **
|
|
19
|
-
* * **
|
|
20
|
-
* * **
|
|
21
|
-
* * **
|
|
22
|
-
* * **
|
|
30
|
+
* * **ltx-2**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
31
|
+
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
32
|
+
* * **kling-2.5**: 5, 10
|
|
33
|
+
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
34
|
+
* * **sora-2**: 4, 8, 12, 24, 36, 48, 60
|
|
35
|
+
* * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
36
|
+
* * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
23
37
|
*/
|
|
24
38
|
endSeconds: number;
|
|
25
39
|
/**
|
|
@@ -34,15 +48,16 @@ export type CreateRequest = {
|
|
|
34
48
|
height?: number | null | undefined;
|
|
35
49
|
/**
|
|
36
50
|
* The AI model to use for video generation.
|
|
37
|
-
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to
|
|
51
|
+
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use `default` and `end_seconds` > 10, we'll fall back to kling-1.6.
|
|
52
|
+
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
38
53
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
39
|
-
* * `kling-2.5
|
|
54
|
+
* * `kling-2.5`: Great for motion, action, and camera control
|
|
55
|
+
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
40
56
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
41
|
-
* * `veo3.1-audio`: Great for dialogue + SFX generated natively
|
|
42
57
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
43
58
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
44
59
|
*/
|
|
45
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
60
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
46
61
|
/**
|
|
47
62
|
* Give your video a custom name for easy identification.
|
|
48
63
|
*/
|
|
@@ -51,12 +66,13 @@ export type CreateRequest = {
|
|
|
51
66
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
52
67
|
*
|
|
53
68
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
54
|
-
* * **
|
|
55
|
-
* * **
|
|
56
|
-
* * **
|
|
57
|
-
* * **
|
|
58
|
-
* * **
|
|
59
|
-
* * **
|
|
69
|
+
* * **ltx-2**: Supports `480p`, `720p`, `1080p`.
|
|
70
|
+
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
71
|
+
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
72
|
+
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
73
|
+
* * **sora-2**: Supports `720p`.
|
|
74
|
+
* * **veo3.1**: Supports `720p`, `1080p`.
|
|
75
|
+
* * **kling-1.6**: Supports `720p`, `1080p`.
|
|
60
76
|
*/
|
|
61
77
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
62
78
|
/**
|
|
@@ -81,9 +97,10 @@ export type CreateRequest = {
|
|
|
81
97
|
*/
|
|
82
98
|
export type External$CreateRequest = {
|
|
83
99
|
assets: External$V1ImageToVideoCreateBodyAssets;
|
|
100
|
+
audio?: boolean | undefined;
|
|
84
101
|
end_seconds: number;
|
|
85
102
|
height?: number | null | undefined;
|
|
86
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
103
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
87
104
|
name?: string | undefined;
|
|
88
105
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
89
106
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
@@ -44,13 +44,17 @@ const v1_image_to_video_create_body_style_1 = require("../../../types/v1-image-t
|
|
|
44
44
|
const SchemaIn$CreateRequest = z
|
|
45
45
|
.object({
|
|
46
46
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.in,
|
|
47
|
+
audio: z.boolean().optional(),
|
|
47
48
|
end_seconds: z.number(),
|
|
48
49
|
height: z.number().int().nullable().optional(),
|
|
49
50
|
model: z
|
|
50
51
|
.enum([
|
|
51
52
|
"default",
|
|
52
53
|
"kling-1.6",
|
|
54
|
+
"kling-2.5",
|
|
53
55
|
"kling-2.5-audio",
|
|
56
|
+
"kling-3.0",
|
|
57
|
+
"ltx-2",
|
|
54
58
|
"seedance",
|
|
55
59
|
"sora-2",
|
|
56
60
|
"veo3.1",
|
|
@@ -65,6 +69,7 @@ const SchemaIn$CreateRequest = z
|
|
|
65
69
|
.transform((obj) => {
|
|
66
70
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
67
71
|
assets: "assets",
|
|
72
|
+
audio: "audio",
|
|
68
73
|
end_seconds: "endSeconds",
|
|
69
74
|
height: "height",
|
|
70
75
|
model: "model",
|
|
@@ -81,13 +86,17 @@ const SchemaIn$CreateRequest = z
|
|
|
81
86
|
const SchemaOut$CreateRequest = z
|
|
82
87
|
.object({
|
|
83
88
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.out,
|
|
89
|
+
audio: z.boolean().optional(),
|
|
84
90
|
endSeconds: z.number(),
|
|
85
91
|
height: z.number().int().nullable().optional(),
|
|
86
92
|
model: z
|
|
87
93
|
.enum([
|
|
88
94
|
"default",
|
|
89
95
|
"kling-1.6",
|
|
96
|
+
"kling-2.5",
|
|
90
97
|
"kling-2.5-audio",
|
|
98
|
+
"kling-3.0",
|
|
99
|
+
"ltx-2",
|
|
91
100
|
"seedance",
|
|
92
101
|
"sora-2",
|
|
93
102
|
"veo3.1",
|
|
@@ -102,6 +111,7 @@ const SchemaOut$CreateRequest = z
|
|
|
102
111
|
.transform((obj) => {
|
|
103
112
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
104
113
|
assets: "assets",
|
|
114
|
+
audio: "audio",
|
|
105
115
|
endSeconds: "end_seconds",
|
|
106
116
|
height: "height",
|
|
107
117
|
model: "model",
|
|
@@ -6,38 +6,54 @@ import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } f
|
|
|
6
6
|
export type CreateRequest = {
|
|
7
7
|
/**
|
|
8
8
|
* Determines the aspect ratio of the output video.
|
|
9
|
-
* * **
|
|
10
|
-
* * **
|
|
11
|
-
* * **
|
|
12
|
-
* * **
|
|
13
|
-
* * **
|
|
14
|
-
* * **
|
|
9
|
+
* * **ltx-2**: Supports `9:16`, `16:9`, `1:1`.
|
|
10
|
+
* * **seedance**: Supports `9:16`, `16:9`, `1:1`.
|
|
11
|
+
* * **kling-2.5**: Supports `9:16`, `16:9`, `1:1`.
|
|
12
|
+
* * **kling-3.0**: Supports `9:16`, `16:9`, `1:1`.
|
|
13
|
+
* * **sora-2**: Supports `9:16`, `16:9`.
|
|
14
|
+
* * **veo3.1**: Supports `9:16`, `16:9`.
|
|
15
|
+
* * **kling-1.6**: Supports `9:16`, `16:9`, `1:1`.
|
|
15
16
|
*/
|
|
16
17
|
aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
20
|
+
*
|
|
21
|
+
* Audio support varies by model:
|
|
22
|
+
* * **ltx-2**: Always included (cannot be disabled)
|
|
23
|
+
* * **seedance**: Not supported
|
|
24
|
+
* * **kling-2.5**: Always included (cannot be disabled)
|
|
25
|
+
* * **kling-3.0**: Toggle-able (can enable/disable)
|
|
26
|
+
* * **sora-2**: Always included (cannot be disabled)
|
|
27
|
+
* * **veo3.1**: Toggle-able (can enable/disable)
|
|
28
|
+
* * **kling-1.6**: Not supported
|
|
29
|
+
*/
|
|
30
|
+
audio?: boolean | undefined;
|
|
17
31
|
/**
|
|
18
32
|
* The total duration of the output video in seconds.
|
|
19
33
|
*
|
|
20
34
|
* Supported durations depend on the chosen model:
|
|
21
35
|
* * **Default**: 5-60 seconds (2-12 seconds for 480p).
|
|
22
|
-
* * **
|
|
23
|
-
* * **
|
|
24
|
-
* * **
|
|
25
|
-
* * **
|
|
26
|
-
* * **
|
|
27
|
-
* * **
|
|
36
|
+
* * **ltx-2**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
37
|
+
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
38
|
+
* * **kling-2.5**: 5, 10
|
|
39
|
+
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
40
|
+
* * **sora-2**: 4, 8, 12, 24, 36, 48, 60
|
|
41
|
+
* * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
42
|
+
* * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
28
43
|
*/
|
|
29
44
|
endSeconds: number;
|
|
30
45
|
/**
|
|
31
46
|
* The AI model to use for video generation.
|
|
32
|
-
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to
|
|
47
|
+
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use `default` and `end_seconds` > 10, we'll fall back to kling-1.6.
|
|
48
|
+
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
33
49
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
34
|
-
* * `kling-2.5
|
|
50
|
+
* * `kling-2.5`: Great for motion, action, and camera control
|
|
51
|
+
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
35
52
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
36
|
-
* * `veo3.1-audio`: Great for dialogue + SFX generated natively
|
|
37
53
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
38
54
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
39
55
|
*/
|
|
40
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
56
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
41
57
|
/**
|
|
42
58
|
* Give your video a custom name for easy identification.
|
|
43
59
|
*/
|
|
@@ -50,12 +66,13 @@ export type CreateRequest = {
|
|
|
50
66
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
51
67
|
*
|
|
52
68
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
53
|
-
* * **
|
|
54
|
-
* * **
|
|
55
|
-
* * **
|
|
56
|
-
* * **
|
|
57
|
-
* * **
|
|
58
|
-
* * **
|
|
69
|
+
* * **ltx-2**: Supports `480p`, `720p`, `1080p`.
|
|
70
|
+
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
71
|
+
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
72
|
+
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
73
|
+
* * **sora-2**: Supports `720p`.
|
|
74
|
+
* * **veo3.1**: Supports `720p`, `1080p`.
|
|
75
|
+
* * **kling-1.6**: Supports `720p`, `1080p`.
|
|
59
76
|
*/
|
|
60
77
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
61
78
|
style: V1TextToVideoCreateBodyStyle;
|
|
@@ -67,8 +84,9 @@ export type CreateRequest = {
|
|
|
67
84
|
*/
|
|
68
85
|
export type External$CreateRequest = {
|
|
69
86
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
87
|
+
audio?: boolean | undefined;
|
|
70
88
|
end_seconds: number;
|
|
71
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
89
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
72
90
|
name?: string | undefined;
|
|
73
91
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
74
92
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
@@ -43,12 +43,16 @@ const v1_text_to_video_create_body_style_1 = require("../../../types/v1-text-to-
|
|
|
43
43
|
const SchemaIn$CreateRequest = z
|
|
44
44
|
.object({
|
|
45
45
|
aspect_ratio: z.enum(["16:9", "1:1", "9:16"]).optional(),
|
|
46
|
+
audio: z.boolean().optional(),
|
|
46
47
|
end_seconds: z.number(),
|
|
47
48
|
model: z
|
|
48
49
|
.enum([
|
|
49
50
|
"default",
|
|
50
51
|
"kling-1.6",
|
|
52
|
+
"kling-2.5",
|
|
51
53
|
"kling-2.5-audio",
|
|
54
|
+
"kling-3.0",
|
|
55
|
+
"ltx-2",
|
|
52
56
|
"seedance",
|
|
53
57
|
"sora-2",
|
|
54
58
|
"veo3.1",
|
|
@@ -63,6 +67,7 @@ const SchemaIn$CreateRequest = z
|
|
|
63
67
|
.transform((obj) => {
|
|
64
68
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
65
69
|
aspect_ratio: "aspectRatio",
|
|
70
|
+
audio: "audio",
|
|
66
71
|
end_seconds: "endSeconds",
|
|
67
72
|
model: "model",
|
|
68
73
|
name: "name",
|
|
@@ -78,12 +83,16 @@ const SchemaIn$CreateRequest = z
|
|
|
78
83
|
const SchemaOut$CreateRequest = z
|
|
79
84
|
.object({
|
|
80
85
|
aspectRatio: z.enum(["16:9", "1:1", "9:16"]).optional(),
|
|
86
|
+
audio: z.boolean().optional(),
|
|
81
87
|
endSeconds: z.number(),
|
|
82
88
|
model: z
|
|
83
89
|
.enum([
|
|
84
90
|
"default",
|
|
85
91
|
"kling-1.6",
|
|
92
|
+
"kling-2.5",
|
|
86
93
|
"kling-2.5-audio",
|
|
94
|
+
"kling-3.0",
|
|
95
|
+
"ltx-2",
|
|
87
96
|
"seedance",
|
|
88
97
|
"sora-2",
|
|
89
98
|
"veo3.1",
|
|
@@ -98,6 +107,7 @@ const SchemaOut$CreateRequest = z
|
|
|
98
107
|
.transform((obj) => {
|
|
99
108
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
100
109
|
aspectRatio: "aspect_ratio",
|
|
110
|
+
audio: "audio",
|
|
101
111
|
endSeconds: "end_seconds",
|
|
102
112
|
model: "model",
|
|
103
113
|
name: "name",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The AI model to use for video generation.
|
|
3
|
-
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to
|
|
3
|
+
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use `default` and `end_seconds` > 10, we'll fall back to kling-1.6.
|
|
4
|
+
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
4
5
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
5
|
-
* * `kling-2.5
|
|
6
|
+
* * `kling-2.5`: Great for motion, action, and camera control
|
|
7
|
+
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
6
8
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
7
|
-
* * `veo3.1-audio`: Great for dialogue + SFX generated natively
|
|
8
9
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
9
10
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
10
11
|
*/
|
|
11
|
-
export type V1ImageToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio";
|
|
12
|
+
export type V1ImageToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio";
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
3
3
|
*
|
|
4
4
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
5
|
-
* * **
|
|
6
|
-
* * **
|
|
7
|
-
* * **
|
|
8
|
-
* * **
|
|
9
|
-
* * **
|
|
10
|
-
* * **
|
|
5
|
+
* * **ltx-2**: Supports `480p`, `720p`, `1080p`.
|
|
6
|
+
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
7
|
+
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
8
|
+
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
9
|
+
* * **sora-2**: Supports `720p`.
|
|
10
|
+
* * **veo3.1**: Supports `720p`, `1080p`.
|
|
11
|
+
* * **kling-1.6**: Supports `720p`, `1080p`.
|
|
11
12
|
*/
|
|
12
13
|
export type V1ImageToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
|
|
@@ -9,17 +9,31 @@ export type V1ImageToVideoCreateBody = {
|
|
|
9
9
|
* Provide the assets for image-to-video. Sora 2 only supports images with an aspect ratio of `9:16` or `16:9`.
|
|
10
10
|
*/
|
|
11
11
|
assets: V1ImageToVideoCreateBodyAssets;
|
|
12
|
+
/**
|
|
13
|
+
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
14
|
+
*
|
|
15
|
+
* Audio support varies by model:
|
|
16
|
+
* * **ltx-2**: Always included (cannot be disabled)
|
|
17
|
+
* * **seedance**: Not supported
|
|
18
|
+
* * **kling-2.5**: Always included (cannot be disabled)
|
|
19
|
+
* * **kling-3.0**: Toggle-able (can enable/disable)
|
|
20
|
+
* * **sora-2**: Always included (cannot be disabled)
|
|
21
|
+
* * **veo3.1**: Toggle-able (can enable/disable)
|
|
22
|
+
* * **kling-1.6**: Not supported
|
|
23
|
+
*/
|
|
24
|
+
audio?: boolean | undefined;
|
|
12
25
|
/**
|
|
13
26
|
* The total duration of the output video in seconds.
|
|
14
27
|
*
|
|
15
28
|
* Supported durations depend on the chosen model:
|
|
16
29
|
* * **Default**: 5-60 seconds (2-12 seconds for 480p).
|
|
17
|
-
* * **
|
|
18
|
-
* * **
|
|
19
|
-
* * **
|
|
20
|
-
* * **
|
|
21
|
-
* * **
|
|
22
|
-
* * **
|
|
30
|
+
* * **ltx-2**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
31
|
+
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
32
|
+
* * **kling-2.5**: 5, 10
|
|
33
|
+
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
34
|
+
* * **sora-2**: 4, 8, 12, 24, 36, 48, 60
|
|
35
|
+
* * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
36
|
+
* * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
23
37
|
*/
|
|
24
38
|
endSeconds: number;
|
|
25
39
|
/**
|
|
@@ -34,15 +48,16 @@ export type V1ImageToVideoCreateBody = {
|
|
|
34
48
|
height?: number | null | undefined;
|
|
35
49
|
/**
|
|
36
50
|
* The AI model to use for video generation.
|
|
37
|
-
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to
|
|
51
|
+
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use `default` and `end_seconds` > 10, we'll fall back to kling-1.6.
|
|
52
|
+
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
38
53
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
39
|
-
* * `kling-2.5
|
|
54
|
+
* * `kling-2.5`: Great for motion, action, and camera control
|
|
55
|
+
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
40
56
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
41
|
-
* * `veo3.1-audio`: Great for dialogue + SFX generated natively
|
|
42
57
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
43
58
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
44
59
|
*/
|
|
45
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
60
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
46
61
|
/**
|
|
47
62
|
* Give your video a custom name for easy identification.
|
|
48
63
|
*/
|
|
@@ -51,12 +66,13 @@ export type V1ImageToVideoCreateBody = {
|
|
|
51
66
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
52
67
|
*
|
|
53
68
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
54
|
-
* * **
|
|
55
|
-
* * **
|
|
56
|
-
* * **
|
|
57
|
-
* * **
|
|
58
|
-
* * **
|
|
59
|
-
* * **
|
|
69
|
+
* * **ltx-2**: Supports `480p`, `720p`, `1080p`.
|
|
70
|
+
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
71
|
+
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
72
|
+
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
73
|
+
* * **sora-2**: Supports `720p`.
|
|
74
|
+
* * **veo3.1**: Supports `720p`, `1080p`.
|
|
75
|
+
* * **kling-1.6**: Supports `720p`, `1080p`.
|
|
60
76
|
*/
|
|
61
77
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
62
78
|
/**
|
|
@@ -81,9 +97,10 @@ export type V1ImageToVideoCreateBody = {
|
|
|
81
97
|
*/
|
|
82
98
|
export type External$V1ImageToVideoCreateBody = {
|
|
83
99
|
assets: External$V1ImageToVideoCreateBodyAssets;
|
|
100
|
+
audio?: boolean | undefined;
|
|
84
101
|
end_seconds: number;
|
|
85
102
|
height?: number | null | undefined;
|
|
86
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
103
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
87
104
|
name?: string | undefined;
|
|
88
105
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
89
106
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
@@ -44,13 +44,17 @@ const v1_image_to_video_create_body_style_1 = require("./v1-image-to-video-creat
|
|
|
44
44
|
const SchemaIn$V1ImageToVideoCreateBody = z
|
|
45
45
|
.object({
|
|
46
46
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.in,
|
|
47
|
+
audio: z.boolean().optional(),
|
|
47
48
|
end_seconds: z.number(),
|
|
48
49
|
height: z.number().int().nullable().optional(),
|
|
49
50
|
model: z
|
|
50
51
|
.enum([
|
|
51
52
|
"default",
|
|
52
53
|
"kling-1.6",
|
|
54
|
+
"kling-2.5",
|
|
53
55
|
"kling-2.5-audio",
|
|
56
|
+
"kling-3.0",
|
|
57
|
+
"ltx-2",
|
|
54
58
|
"seedance",
|
|
55
59
|
"sora-2",
|
|
56
60
|
"veo3.1",
|
|
@@ -65,6 +69,7 @@ const SchemaIn$V1ImageToVideoCreateBody = z
|
|
|
65
69
|
.transform((obj) => {
|
|
66
70
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
67
71
|
assets: "assets",
|
|
72
|
+
audio: "audio",
|
|
68
73
|
end_seconds: "endSeconds",
|
|
69
74
|
height: "height",
|
|
70
75
|
model: "model",
|
|
@@ -81,13 +86,17 @@ const SchemaIn$V1ImageToVideoCreateBody = z
|
|
|
81
86
|
const SchemaOut$V1ImageToVideoCreateBody = z
|
|
82
87
|
.object({
|
|
83
88
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.out,
|
|
89
|
+
audio: z.boolean().optional(),
|
|
84
90
|
endSeconds: z.number(),
|
|
85
91
|
height: z.number().int().nullable().optional(),
|
|
86
92
|
model: z
|
|
87
93
|
.enum([
|
|
88
94
|
"default",
|
|
89
95
|
"kling-1.6",
|
|
96
|
+
"kling-2.5",
|
|
90
97
|
"kling-2.5-audio",
|
|
98
|
+
"kling-3.0",
|
|
99
|
+
"ltx-2",
|
|
91
100
|
"seedance",
|
|
92
101
|
"sora-2",
|
|
93
102
|
"veo3.1",
|
|
@@ -102,6 +111,7 @@ const SchemaOut$V1ImageToVideoCreateBody = z
|
|
|
102
111
|
.transform((obj) => {
|
|
103
112
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
104
113
|
assets: "assets",
|
|
114
|
+
audio: "audio",
|
|
105
115
|
endSeconds: "end_seconds",
|
|
106
116
|
height: "height",
|
|
107
117
|
model: "model",
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Determines the aspect ratio of the output video.
|
|
3
|
-
* * **
|
|
4
|
-
* * **
|
|
5
|
-
* * **
|
|
6
|
-
* * **
|
|
7
|
-
* * **
|
|
8
|
-
* * **
|
|
3
|
+
* * **ltx-2**: Supports `9:16`, `16:9`, `1:1`.
|
|
4
|
+
* * **seedance**: Supports `9:16`, `16:9`, `1:1`.
|
|
5
|
+
* * **kling-2.5**: Supports `9:16`, `16:9`, `1:1`.
|
|
6
|
+
* * **kling-3.0**: Supports `9:16`, `16:9`, `1:1`.
|
|
7
|
+
* * **sora-2**: Supports `9:16`, `16:9`.
|
|
8
|
+
* * **veo3.1**: Supports `9:16`, `16:9`.
|
|
9
|
+
* * **kling-1.6**: Supports `9:16`, `16:9`, `1:1`.
|
|
9
10
|
*/
|
|
10
11
|
export type V1TextToVideoCreateBodyAspectRatioEnum = "16:9" | "1:1" | "9:16";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The AI model to use for video generation.
|
|
3
|
-
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to
|
|
3
|
+
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use `default` and `end_seconds` > 10, we'll fall back to kling-1.6.
|
|
4
|
+
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
4
5
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
5
|
-
* * `kling-2.5
|
|
6
|
+
* * `kling-2.5`: Great for motion, action, and camera control
|
|
7
|
+
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
6
8
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
7
|
-
* * `veo3.1-audio`: Great for dialogue + SFX generated natively
|
|
8
9
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
9
10
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
10
11
|
*/
|
|
11
|
-
export type V1TextToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio";
|
|
12
|
+
export type V1TextToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio";
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
3
3
|
*
|
|
4
4
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
5
|
-
* * **
|
|
6
|
-
* * **
|
|
7
|
-
* * **
|
|
8
|
-
* * **
|
|
9
|
-
* * **
|
|
10
|
-
* * **
|
|
5
|
+
* * **ltx-2**: Supports `480p`, `720p`, `1080p`.
|
|
6
|
+
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
7
|
+
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
8
|
+
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
9
|
+
* * **sora-2**: Supports `720p`.
|
|
10
|
+
* * **veo3.1**: Supports `720p`, `1080p`.
|
|
11
|
+
* * **kling-1.6**: Supports `720p`, `1080p`.
|
|
11
12
|
*/
|
|
12
13
|
export type V1TextToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
|
|
@@ -6,38 +6,54 @@ import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } f
|
|
|
6
6
|
export type V1TextToVideoCreateBody = {
|
|
7
7
|
/**
|
|
8
8
|
* Determines the aspect ratio of the output video.
|
|
9
|
-
* * **
|
|
10
|
-
* * **
|
|
11
|
-
* * **
|
|
12
|
-
* * **
|
|
13
|
-
* * **
|
|
14
|
-
* * **
|
|
9
|
+
* * **ltx-2**: Supports `9:16`, `16:9`, `1:1`.
|
|
10
|
+
* * **seedance**: Supports `9:16`, `16:9`, `1:1`.
|
|
11
|
+
* * **kling-2.5**: Supports `9:16`, `16:9`, `1:1`.
|
|
12
|
+
* * **kling-3.0**: Supports `9:16`, `16:9`, `1:1`.
|
|
13
|
+
* * **sora-2**: Supports `9:16`, `16:9`.
|
|
14
|
+
* * **veo3.1**: Supports `9:16`, `16:9`.
|
|
15
|
+
* * **kling-1.6**: Supports `9:16`, `16:9`, `1:1`.
|
|
15
16
|
*/
|
|
16
17
|
aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
20
|
+
*
|
|
21
|
+
* Audio support varies by model:
|
|
22
|
+
* * **ltx-2**: Always included (cannot be disabled)
|
|
23
|
+
* * **seedance**: Not supported
|
|
24
|
+
* * **kling-2.5**: Always included (cannot be disabled)
|
|
25
|
+
* * **kling-3.0**: Toggle-able (can enable/disable)
|
|
26
|
+
* * **sora-2**: Always included (cannot be disabled)
|
|
27
|
+
* * **veo3.1**: Toggle-able (can enable/disable)
|
|
28
|
+
* * **kling-1.6**: Not supported
|
|
29
|
+
*/
|
|
30
|
+
audio?: boolean | undefined;
|
|
17
31
|
/**
|
|
18
32
|
* The total duration of the output video in seconds.
|
|
19
33
|
*
|
|
20
34
|
* Supported durations depend on the chosen model:
|
|
21
35
|
* * **Default**: 5-60 seconds (2-12 seconds for 480p).
|
|
22
|
-
* * **
|
|
23
|
-
* * **
|
|
24
|
-
* * **
|
|
25
|
-
* * **
|
|
26
|
-
* * **
|
|
27
|
-
* * **
|
|
36
|
+
* * **ltx-2**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
37
|
+
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
38
|
+
* * **kling-2.5**: 5, 10
|
|
39
|
+
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
40
|
+
* * **sora-2**: 4, 8, 12, 24, 36, 48, 60
|
|
41
|
+
* * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
42
|
+
* * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
28
43
|
*/
|
|
29
44
|
endSeconds: number;
|
|
30
45
|
/**
|
|
31
46
|
* The AI model to use for video generation.
|
|
32
|
-
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to
|
|
47
|
+
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use `default` and `end_seconds` > 10, we'll fall back to kling-1.6.
|
|
48
|
+
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
33
49
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
34
|
-
* * `kling-2.5
|
|
50
|
+
* * `kling-2.5`: Great for motion, action, and camera control
|
|
51
|
+
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
35
52
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
36
|
-
* * `veo3.1-audio`: Great for dialogue + SFX generated natively
|
|
37
53
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
38
54
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
39
55
|
*/
|
|
40
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
56
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
41
57
|
/**
|
|
42
58
|
* Give your video a custom name for easy identification.
|
|
43
59
|
*/
|
|
@@ -50,12 +66,13 @@ export type V1TextToVideoCreateBody = {
|
|
|
50
66
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
51
67
|
*
|
|
52
68
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
53
|
-
* * **
|
|
54
|
-
* * **
|
|
55
|
-
* * **
|
|
56
|
-
* * **
|
|
57
|
-
* * **
|
|
58
|
-
* * **
|
|
69
|
+
* * **ltx-2**: Supports `480p`, `720p`, `1080p`.
|
|
70
|
+
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
71
|
+
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
72
|
+
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
73
|
+
* * **sora-2**: Supports `720p`.
|
|
74
|
+
* * **veo3.1**: Supports `720p`, `1080p`.
|
|
75
|
+
* * **kling-1.6**: Supports `720p`, `1080p`.
|
|
59
76
|
*/
|
|
60
77
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
61
78
|
style: V1TextToVideoCreateBodyStyle;
|
|
@@ -67,8 +84,9 @@ export type V1TextToVideoCreateBody = {
|
|
|
67
84
|
*/
|
|
68
85
|
export type External$V1TextToVideoCreateBody = {
|
|
69
86
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
87
|
+
audio?: boolean | undefined;
|
|
70
88
|
end_seconds: number;
|
|
71
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
89
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
72
90
|
name?: string | undefined;
|
|
73
91
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
74
92
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
@@ -43,12 +43,16 @@ const v1_text_to_video_create_body_style_1 = require("./v1-text-to-video-create-
|
|
|
43
43
|
const SchemaIn$V1TextToVideoCreateBody = z
|
|
44
44
|
.object({
|
|
45
45
|
aspect_ratio: z.enum(["16:9", "1:1", "9:16"]).optional(),
|
|
46
|
+
audio: z.boolean().optional(),
|
|
46
47
|
end_seconds: z.number(),
|
|
47
48
|
model: z
|
|
48
49
|
.enum([
|
|
49
50
|
"default",
|
|
50
51
|
"kling-1.6",
|
|
52
|
+
"kling-2.5",
|
|
51
53
|
"kling-2.5-audio",
|
|
54
|
+
"kling-3.0",
|
|
55
|
+
"ltx-2",
|
|
52
56
|
"seedance",
|
|
53
57
|
"sora-2",
|
|
54
58
|
"veo3.1",
|
|
@@ -63,6 +67,7 @@ const SchemaIn$V1TextToVideoCreateBody = z
|
|
|
63
67
|
.transform((obj) => {
|
|
64
68
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
65
69
|
aspect_ratio: "aspectRatio",
|
|
70
|
+
audio: "audio",
|
|
66
71
|
end_seconds: "endSeconds",
|
|
67
72
|
model: "model",
|
|
68
73
|
name: "name",
|
|
@@ -78,12 +83,16 @@ const SchemaIn$V1TextToVideoCreateBody = z
|
|
|
78
83
|
const SchemaOut$V1TextToVideoCreateBody = z
|
|
79
84
|
.object({
|
|
80
85
|
aspectRatio: z.enum(["16:9", "1:1", "9:16"]).optional(),
|
|
86
|
+
audio: z.boolean().optional(),
|
|
81
87
|
endSeconds: z.number(),
|
|
82
88
|
model: z
|
|
83
89
|
.enum([
|
|
84
90
|
"default",
|
|
85
91
|
"kling-1.6",
|
|
92
|
+
"kling-2.5",
|
|
86
93
|
"kling-2.5-audio",
|
|
94
|
+
"kling-3.0",
|
|
95
|
+
"ltx-2",
|
|
87
96
|
"seedance",
|
|
88
97
|
"sora-2",
|
|
89
98
|
"veo3.1",
|
|
@@ -98,6 +107,7 @@ const SchemaOut$V1TextToVideoCreateBody = z
|
|
|
98
107
|
.transform((obj) => {
|
|
99
108
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
100
109
|
aspectRatio: "aspect_ratio",
|
|
110
|
+
audio: "audio",
|
|
101
111
|
endSeconds: "end_seconds",
|
|
102
112
|
model: "model",
|
|
103
113
|
name: "name",
|