magic-hour 0.52.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/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/image-to-video/request-types.d.ts +7 -3
- package/dist/resources/v1/image-to-video/request-types.js +2 -0
- package/dist/resources/v1/text-to-video/request-types.d.ts +8 -3
- package/dist/resources/v1/text-to-video/request-types.js +2 -0
- package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +3 -2
- package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +1 -0
- package/dist/types/v1-image-to-video-create-body.d.ts +7 -3
- package/dist/types/v1-image-to-video-create-body.js +2 -0
- package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +1 -0
- package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +3 -2
- package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +1 -0
- package/dist/types/v1-text-to-video-create-body.d.ts +8 -3
- package/dist/types/v1-text-to-video-create-body.js +2 -0
- package/package.json +1 -1
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 = {}));
|
|
@@ -13,6 +13,7 @@ export type CreateRequest = {
|
|
|
13
13
|
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
14
14
|
*
|
|
15
15
|
* Audio support varies by model:
|
|
16
|
+
* * **ltx-2**: Always included (cannot be disabled)
|
|
16
17
|
* * **seedance**: Not supported
|
|
17
18
|
* * **kling-2.5**: Always included (cannot be disabled)
|
|
18
19
|
* * **kling-3.0**: Toggle-able (can enable/disable)
|
|
@@ -26,6 +27,7 @@ export type CreateRequest = {
|
|
|
26
27
|
*
|
|
27
28
|
* Supported durations depend on the chosen model:
|
|
28
29
|
* * **Default**: 5-60 seconds (2-12 seconds for 480p).
|
|
30
|
+
* * **ltx-2**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
29
31
|
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
30
32
|
* * **kling-2.5**: 5, 10
|
|
31
33
|
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
@@ -46,7 +48,8 @@ export type CreateRequest = {
|
|
|
46
48
|
height?: number | null | undefined;
|
|
47
49
|
/**
|
|
48
50
|
* The AI model to use for video generation.
|
|
49
|
-
* * `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
|
|
50
53
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
51
54
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
52
55
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
@@ -54,7 +57,7 @@ export type CreateRequest = {
|
|
|
54
57
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
55
58
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
56
59
|
*/
|
|
57
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "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;
|
|
58
61
|
/**
|
|
59
62
|
* Give your video a custom name for easy identification.
|
|
60
63
|
*/
|
|
@@ -63,6 +66,7 @@ export type CreateRequest = {
|
|
|
63
66
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
64
67
|
*
|
|
65
68
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
69
|
+
* * **ltx-2**: Supports `480p`, `720p`, `1080p`.
|
|
66
70
|
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
67
71
|
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
68
72
|
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
@@ -96,7 +100,7 @@ export type External$CreateRequest = {
|
|
|
96
100
|
audio?: boolean | undefined;
|
|
97
101
|
end_seconds: number;
|
|
98
102
|
height?: number | null | undefined;
|
|
99
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "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;
|
|
100
104
|
name?: string | undefined;
|
|
101
105
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
102
106
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
@@ -54,6 +54,7 @@ const SchemaIn$CreateRequest = z
|
|
|
54
54
|
"kling-2.5",
|
|
55
55
|
"kling-2.5-audio",
|
|
56
56
|
"kling-3.0",
|
|
57
|
+
"ltx-2",
|
|
57
58
|
"seedance",
|
|
58
59
|
"sora-2",
|
|
59
60
|
"veo3.1",
|
|
@@ -95,6 +96,7 @@ const SchemaOut$CreateRequest = z
|
|
|
95
96
|
"kling-2.5",
|
|
96
97
|
"kling-2.5-audio",
|
|
97
98
|
"kling-3.0",
|
|
99
|
+
"ltx-2",
|
|
98
100
|
"seedance",
|
|
99
101
|
"sora-2",
|
|
100
102
|
"veo3.1",
|
|
@@ -6,6 +6,7 @@ import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } f
|
|
|
6
6
|
export type CreateRequest = {
|
|
7
7
|
/**
|
|
8
8
|
* Determines the aspect ratio of the output video.
|
|
9
|
+
* * **ltx-2**: Supports `9:16`, `16:9`, `1:1`.
|
|
9
10
|
* * **seedance**: Supports `9:16`, `16:9`, `1:1`.
|
|
10
11
|
* * **kling-2.5**: Supports `9:16`, `16:9`, `1:1`.
|
|
11
12
|
* * **kling-3.0**: Supports `9:16`, `16:9`, `1:1`.
|
|
@@ -18,6 +19,7 @@ export type CreateRequest = {
|
|
|
18
19
|
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
19
20
|
*
|
|
20
21
|
* Audio support varies by model:
|
|
22
|
+
* * **ltx-2**: Always included (cannot be disabled)
|
|
21
23
|
* * **seedance**: Not supported
|
|
22
24
|
* * **kling-2.5**: Always included (cannot be disabled)
|
|
23
25
|
* * **kling-3.0**: Toggle-able (can enable/disable)
|
|
@@ -31,6 +33,7 @@ export type CreateRequest = {
|
|
|
31
33
|
*
|
|
32
34
|
* Supported durations depend on the chosen model:
|
|
33
35
|
* * **Default**: 5-60 seconds (2-12 seconds for 480p).
|
|
36
|
+
* * **ltx-2**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
34
37
|
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
35
38
|
* * **kling-2.5**: 5, 10
|
|
36
39
|
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
@@ -41,7 +44,8 @@ export type CreateRequest = {
|
|
|
41
44
|
endSeconds: number;
|
|
42
45
|
/**
|
|
43
46
|
* The AI model to use for video generation.
|
|
44
|
-
* * `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
|
|
45
49
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
46
50
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
47
51
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
@@ -49,7 +53,7 @@ export type CreateRequest = {
|
|
|
49
53
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
50
54
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
51
55
|
*/
|
|
52
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "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;
|
|
53
57
|
/**
|
|
54
58
|
* Give your video a custom name for easy identification.
|
|
55
59
|
*/
|
|
@@ -62,6 +66,7 @@ export type CreateRequest = {
|
|
|
62
66
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
63
67
|
*
|
|
64
68
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
69
|
+
* * **ltx-2**: Supports `480p`, `720p`, `1080p`.
|
|
65
70
|
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
66
71
|
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
67
72
|
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
@@ -81,7 +86,7 @@ export type External$CreateRequest = {
|
|
|
81
86
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
82
87
|
audio?: boolean | undefined;
|
|
83
88
|
end_seconds: number;
|
|
84
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "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;
|
|
85
90
|
name?: string | undefined;
|
|
86
91
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
87
92
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
@@ -52,6 +52,7 @@ const SchemaIn$CreateRequest = z
|
|
|
52
52
|
"kling-2.5",
|
|
53
53
|
"kling-2.5-audio",
|
|
54
54
|
"kling-3.0",
|
|
55
|
+
"ltx-2",
|
|
55
56
|
"seedance",
|
|
56
57
|
"sora-2",
|
|
57
58
|
"veo3.1",
|
|
@@ -91,6 +92,7 @@ const SchemaOut$CreateRequest = z
|
|
|
91
92
|
"kling-2.5",
|
|
92
93
|
"kling-2.5-audio",
|
|
93
94
|
"kling-3.0",
|
|
95
|
+
"ltx-2",
|
|
94
96
|
"seedance",
|
|
95
97
|
"sora-2",
|
|
96
98
|
"veo3.1",
|
|
@@ -1,6 +1,7 @@
|
|
|
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
6
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
6
7
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
@@ -8,4 +9,4 @@
|
|
|
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" | "kling-2.5-audio" | "kling-3.0" | "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,6 +2,7 @@
|
|
|
2
2
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
3
3
|
*
|
|
4
4
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
5
|
+
* * **ltx-2**: Supports `480p`, `720p`, `1080p`.
|
|
5
6
|
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
6
7
|
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
7
8
|
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
@@ -13,6 +13,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
13
13
|
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
14
14
|
*
|
|
15
15
|
* Audio support varies by model:
|
|
16
|
+
* * **ltx-2**: Always included (cannot be disabled)
|
|
16
17
|
* * **seedance**: Not supported
|
|
17
18
|
* * **kling-2.5**: Always included (cannot be disabled)
|
|
18
19
|
* * **kling-3.0**: Toggle-able (can enable/disable)
|
|
@@ -26,6 +27,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
26
27
|
*
|
|
27
28
|
* Supported durations depend on the chosen model:
|
|
28
29
|
* * **Default**: 5-60 seconds (2-12 seconds for 480p).
|
|
30
|
+
* * **ltx-2**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
29
31
|
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
30
32
|
* * **kling-2.5**: 5, 10
|
|
31
33
|
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
@@ -46,7 +48,8 @@ export type V1ImageToVideoCreateBody = {
|
|
|
46
48
|
height?: number | null | undefined;
|
|
47
49
|
/**
|
|
48
50
|
* The AI model to use for video generation.
|
|
49
|
-
* * `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
|
|
50
53
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
51
54
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
52
55
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
@@ -54,7 +57,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
54
57
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
55
58
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
56
59
|
*/
|
|
57
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "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;
|
|
58
61
|
/**
|
|
59
62
|
* Give your video a custom name for easy identification.
|
|
60
63
|
*/
|
|
@@ -63,6 +66,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
63
66
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
64
67
|
*
|
|
65
68
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
69
|
+
* * **ltx-2**: Supports `480p`, `720p`, `1080p`.
|
|
66
70
|
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
67
71
|
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
68
72
|
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
@@ -96,7 +100,7 @@ export type External$V1ImageToVideoCreateBody = {
|
|
|
96
100
|
audio?: boolean | undefined;
|
|
97
101
|
end_seconds: number;
|
|
98
102
|
height?: number | null | undefined;
|
|
99
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "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;
|
|
100
104
|
name?: string | undefined;
|
|
101
105
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
102
106
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
@@ -54,6 +54,7 @@ const SchemaIn$V1ImageToVideoCreateBody = z
|
|
|
54
54
|
"kling-2.5",
|
|
55
55
|
"kling-2.5-audio",
|
|
56
56
|
"kling-3.0",
|
|
57
|
+
"ltx-2",
|
|
57
58
|
"seedance",
|
|
58
59
|
"sora-2",
|
|
59
60
|
"veo3.1",
|
|
@@ -95,6 +96,7 @@ const SchemaOut$V1ImageToVideoCreateBody = z
|
|
|
95
96
|
"kling-2.5",
|
|
96
97
|
"kling-2.5-audio",
|
|
97
98
|
"kling-3.0",
|
|
99
|
+
"ltx-2",
|
|
98
100
|
"seedance",
|
|
99
101
|
"sora-2",
|
|
100
102
|
"veo3.1",
|
|
@@ -1,6 +1,7 @@
|
|
|
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
6
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
6
7
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
@@ -8,4 +9,4 @@
|
|
|
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" | "kling-2.5-audio" | "kling-3.0" | "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,6 +2,7 @@
|
|
|
2
2
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
3
3
|
*
|
|
4
4
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
5
|
+
* * **ltx-2**: Supports `480p`, `720p`, `1080p`.
|
|
5
6
|
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
6
7
|
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
7
8
|
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
@@ -6,6 +6,7 @@ import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } f
|
|
|
6
6
|
export type V1TextToVideoCreateBody = {
|
|
7
7
|
/**
|
|
8
8
|
* Determines the aspect ratio of the output video.
|
|
9
|
+
* * **ltx-2**: Supports `9:16`, `16:9`, `1:1`.
|
|
9
10
|
* * **seedance**: Supports `9:16`, `16:9`, `1:1`.
|
|
10
11
|
* * **kling-2.5**: Supports `9:16`, `16:9`, `1:1`.
|
|
11
12
|
* * **kling-3.0**: Supports `9:16`, `16:9`, `1:1`.
|
|
@@ -18,6 +19,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
18
19
|
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
19
20
|
*
|
|
20
21
|
* Audio support varies by model:
|
|
22
|
+
* * **ltx-2**: Always included (cannot be disabled)
|
|
21
23
|
* * **seedance**: Not supported
|
|
22
24
|
* * **kling-2.5**: Always included (cannot be disabled)
|
|
23
25
|
* * **kling-3.0**: Toggle-able (can enable/disable)
|
|
@@ -31,6 +33,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
31
33
|
*
|
|
32
34
|
* Supported durations depend on the chosen model:
|
|
33
35
|
* * **Default**: 5-60 seconds (2-12 seconds for 480p).
|
|
36
|
+
* * **ltx-2**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
34
37
|
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
35
38
|
* * **kling-2.5**: 5, 10
|
|
36
39
|
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
@@ -41,7 +44,8 @@ export type V1TextToVideoCreateBody = {
|
|
|
41
44
|
endSeconds: number;
|
|
42
45
|
/**
|
|
43
46
|
* The AI model to use for video generation.
|
|
44
|
-
* * `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
|
|
45
49
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
46
50
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
47
51
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
@@ -49,7 +53,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
49
53
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
50
54
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
51
55
|
*/
|
|
52
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "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;
|
|
53
57
|
/**
|
|
54
58
|
* Give your video a custom name for easy identification.
|
|
55
59
|
*/
|
|
@@ -62,6 +66,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
62
66
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
63
67
|
*
|
|
64
68
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
69
|
+
* * **ltx-2**: Supports `480p`, `720p`, `1080p`.
|
|
65
70
|
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
66
71
|
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
67
72
|
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
@@ -81,7 +86,7 @@ export type External$V1TextToVideoCreateBody = {
|
|
|
81
86
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
82
87
|
audio?: boolean | undefined;
|
|
83
88
|
end_seconds: number;
|
|
84
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "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;
|
|
85
90
|
name?: string | undefined;
|
|
86
91
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
87
92
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
@@ -52,6 +52,7 @@ const SchemaIn$V1TextToVideoCreateBody = z
|
|
|
52
52
|
"kling-2.5",
|
|
53
53
|
"kling-2.5-audio",
|
|
54
54
|
"kling-3.0",
|
|
55
|
+
"ltx-2",
|
|
55
56
|
"seedance",
|
|
56
57
|
"sora-2",
|
|
57
58
|
"veo3.1",
|
|
@@ -91,6 +92,7 @@ const SchemaOut$V1TextToVideoCreateBody = z
|
|
|
91
92
|
"kling-2.5",
|
|
92
93
|
"kling-2.5-audio",
|
|
93
94
|
"kling-3.0",
|
|
95
|
+
"ltx-2",
|
|
94
96
|
"seedance",
|
|
95
97
|
"sora-2",
|
|
96
98
|
"veo3.1",
|