magic-hour 0.52.0 → 0.53.1
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/face-swap/request-types.d.ts +0 -8
- package/dist/resources/v1/image-to-video/request-types.d.ts +36 -34
- package/dist/resources/v1/image-to-video/request-types.js +2 -0
- package/dist/resources/v1/lip-sync/request-types.d.ts +0 -8
- package/dist/resources/v1/text-to-video/request-types.d.ts +46 -32
- package/dist/resources/v1/text-to-video/request-types.js +2 -0
- package/dist/resources/v1/video-to-video/request-types.d.ts +0 -8
- package/dist/types/v1-face-swap-create-body.d.ts +0 -8
- package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +8 -2
- package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +9 -8
- package/dist/types/v1-image-to-video-create-body.d.ts +36 -34
- package/dist/types/v1-image-to-video-create-body.js +2 -0
- package/dist/types/v1-lip-sync-create-body.d.ts +0 -8
- package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +10 -6
- package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +8 -2
- package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +9 -8
- package/dist/types/v1-text-to-video-create-body.d.ts +46 -32
- package/dist/types/v1-text-to-video-create-body.js +2 -0
- package/dist/types/v1-video-projects-get-response.d.ts +1 -1
- package/dist/types/v1-video-to-video-create-body.d.ts +0 -8
- 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.1";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -16,10 +16,6 @@ export type CreateRequest = {
|
|
|
16
16
|
/**
|
|
17
17
|
* `height` is deprecated and no longer influences the output video's resolution.
|
|
18
18
|
*
|
|
19
|
-
* Output resolution is determined by the **minimum** of:
|
|
20
|
-
* - The resolution of the input video
|
|
21
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
22
|
-
*
|
|
23
19
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
24
20
|
*/
|
|
25
21
|
height?: number | null | undefined;
|
|
@@ -38,10 +34,6 @@ export type CreateRequest = {
|
|
|
38
34
|
/**
|
|
39
35
|
* `width` is deprecated and no longer influences the output video's resolution.
|
|
40
36
|
*
|
|
41
|
-
* Output resolution is determined by the **minimum** of:
|
|
42
|
-
* - The resolution of the input video
|
|
43
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
44
|
-
*
|
|
45
37
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
46
38
|
*/
|
|
47
39
|
width?: number | null | undefined;
|
|
@@ -13,62 +13,68 @@ 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
|
-
* *
|
|
17
|
-
* *
|
|
18
|
-
* *
|
|
19
|
-
* *
|
|
20
|
-
* *
|
|
21
|
-
* *
|
|
16
|
+
* * **`ltx-2`**: Automatically included with no extra credits
|
|
17
|
+
* * **`seedance`**: Not supported
|
|
18
|
+
* * **`kling-2.5`**: Automatically included with no extra credits
|
|
19
|
+
* * **`kling-3.0`**: Toggle-able (can enable/disable)
|
|
20
|
+
* * **`sora-2`**: Automatically included with no extra credits
|
|
21
|
+
* * **`veo3.1`**: Toggle-able (can enable/disable)
|
|
22
|
+
*
|
|
23
|
+
* * **`kling-1.6`**: Not supported
|
|
22
24
|
*/
|
|
23
25
|
audio?: boolean | undefined;
|
|
24
26
|
/**
|
|
25
|
-
* The total duration of the output video in seconds.
|
|
27
|
+
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
28
|
+
*
|
|
29
|
+
* * **`ltx-2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
30
|
+
* * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
31
|
+
* * **`kling-2.5`**: 5, 10
|
|
32
|
+
* * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
33
|
+
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
34
|
+
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
26
35
|
*
|
|
27
|
-
*
|
|
28
|
-
* *
|
|
29
|
-
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
30
|
-
* * **kling-2.5**: 5, 10
|
|
31
|
-
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
32
|
-
* * **sora-2**: 4, 8, 12, 24, 36, 48, 60
|
|
33
|
-
* * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
34
|
-
* * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
36
|
+
* Legacy models:
|
|
37
|
+
* * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
35
38
|
*/
|
|
36
39
|
endSeconds: number;
|
|
37
40
|
/**
|
|
38
41
|
* `height` is deprecated and no longer influences the output video's resolution.
|
|
39
42
|
*
|
|
40
|
-
* Output resolution is determined by the **minimum** of:
|
|
41
|
-
* - The resolution of the input video
|
|
42
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
43
|
-
*
|
|
44
43
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
45
44
|
*/
|
|
46
45
|
height?: number | null | undefined;
|
|
47
46
|
/**
|
|
48
47
|
* The AI model to use for video generation.
|
|
49
|
-
*
|
|
48
|
+
*
|
|
49
|
+
* * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-2.5`. For free tiers, it defaults to `ltx-2`.
|
|
50
|
+
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
50
51
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
51
52
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
52
53
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
53
54
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
54
55
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
56
|
+
*
|
|
57
|
+
* Legacy models:
|
|
55
58
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
59
|
+
*
|
|
60
|
+
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
56
61
|
*/
|
|
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;
|
|
62
|
+
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
63
|
/**
|
|
59
64
|
* Give your video a custom name for easy identification.
|
|
60
65
|
*/
|
|
61
66
|
name?: string | undefined;
|
|
62
67
|
/**
|
|
63
|
-
* Controls the output video resolution. Defaults to `720p`
|
|
68
|
+
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
64
69
|
*
|
|
65
|
-
* *
|
|
66
|
-
* *
|
|
67
|
-
* *
|
|
68
|
-
* *
|
|
69
|
-
* *
|
|
70
|
-
* *
|
|
71
|
-
*
|
|
70
|
+
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
71
|
+
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
72
|
+
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
73
|
+
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
74
|
+
* * **`sora-2`**: Supports 720p.
|
|
75
|
+
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
76
|
+
*
|
|
77
|
+
* * **`kling-1.6`**: Supports 720p, 1080p.
|
|
72
78
|
*/
|
|
73
79
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
74
80
|
/**
|
|
@@ -78,10 +84,6 @@ export type CreateRequest = {
|
|
|
78
84
|
/**
|
|
79
85
|
* `width` is deprecated and no longer influences the output video's resolution.
|
|
80
86
|
*
|
|
81
|
-
* Output resolution is determined by the **minimum** of:
|
|
82
|
-
* - The resolution of the input video
|
|
83
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
84
|
-
*
|
|
85
87
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
86
88
|
*/
|
|
87
89
|
width?: number | null | undefined;
|
|
@@ -96,7 +98,7 @@ export type External$CreateRequest = {
|
|
|
96
98
|
audio?: boolean | undefined;
|
|
97
99
|
end_seconds: number;
|
|
98
100
|
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;
|
|
101
|
+
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
102
|
name?: string | undefined;
|
|
101
103
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
102
104
|
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",
|
|
@@ -16,10 +16,6 @@ export type CreateRequest = {
|
|
|
16
16
|
/**
|
|
17
17
|
* `height` is deprecated and no longer influences the output video's resolution.
|
|
18
18
|
*
|
|
19
|
-
* Output resolution is determined by the **minimum** of:
|
|
20
|
-
* - The resolution of the input video
|
|
21
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
22
|
-
*
|
|
23
19
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
24
20
|
*/
|
|
25
21
|
height?: number | null | undefined;
|
|
@@ -42,10 +38,6 @@ export type CreateRequest = {
|
|
|
42
38
|
/**
|
|
43
39
|
* `width` is deprecated and no longer influences the output video's resolution.
|
|
44
40
|
*
|
|
45
|
-
* Output resolution is determined by the **minimum** of:
|
|
46
|
-
* - The resolution of the input video
|
|
47
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
48
|
-
*
|
|
49
41
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
50
42
|
*/
|
|
51
43
|
width?: number | null | undefined;
|
|
@@ -6,50 +6,63 @@ 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
|
+
*
|
|
10
|
+
* * **`ltx-2`**: Supports 9:16, 16:9, 1:1.
|
|
11
|
+
* * **`seedance`**: Supports 9:16, 16:9, 1:1.
|
|
12
|
+
* * **`kling-2.5`**: Supports 9:16, 16:9, 1:1.
|
|
13
|
+
* * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
|
|
14
|
+
* * **`sora-2`**: Supports 9:16, 16:9.
|
|
15
|
+
* * **`veo3.1`**: Supports 9:16, 16:9.
|
|
16
|
+
*
|
|
17
|
+
* Legacy models:
|
|
18
|
+
* * **`kling-1.6`**: Supports 9:16, 16:9, 1:1.
|
|
15
19
|
*/
|
|
16
20
|
aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
17
21
|
/**
|
|
18
22
|
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
19
23
|
*
|
|
20
24
|
* Audio support varies by model:
|
|
21
|
-
* *
|
|
22
|
-
* *
|
|
23
|
-
* *
|
|
24
|
-
* *
|
|
25
|
-
* *
|
|
26
|
-
* *
|
|
25
|
+
* * **`ltx-2`**: Automatically included with no extra credits
|
|
26
|
+
* * **`seedance`**: Not supported
|
|
27
|
+
* * **`kling-2.5`**: Automatically included with no extra credits
|
|
28
|
+
* * **`kling-3.0`**: Toggle-able (can enable/disable)
|
|
29
|
+
* * **`sora-2`**: Automatically included with no extra credits
|
|
30
|
+
* * **`veo3.1`**: Toggle-able (can enable/disable)
|
|
31
|
+
*
|
|
32
|
+
* * **`kling-1.6`**: Not supported
|
|
27
33
|
*/
|
|
28
34
|
audio?: boolean | undefined;
|
|
29
35
|
/**
|
|
30
|
-
* The total duration of the output video in seconds.
|
|
36
|
+
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
37
|
+
*
|
|
38
|
+
* * **`ltx-2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
39
|
+
* * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
40
|
+
* * **`kling-2.5`**: 5, 10
|
|
41
|
+
* * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
42
|
+
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
43
|
+
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
31
44
|
*
|
|
32
|
-
*
|
|
33
|
-
* *
|
|
34
|
-
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
35
|
-
* * **kling-2.5**: 5, 10
|
|
36
|
-
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
37
|
-
* * **sora-2**: 4, 8, 12, 24, 36, 48, 60
|
|
38
|
-
* * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
39
|
-
* * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
45
|
+
* Legacy models:
|
|
46
|
+
* * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
40
47
|
*/
|
|
41
48
|
endSeconds: number;
|
|
42
49
|
/**
|
|
43
50
|
* The AI model to use for video generation.
|
|
44
|
-
*
|
|
51
|
+
*
|
|
52
|
+
* * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-2.5`. For free tiers, it defaults to `ltx-2`.
|
|
53
|
+
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
45
54
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
46
55
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
47
56
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
48
57
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
49
58
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
59
|
+
*
|
|
60
|
+
* Legacy models:
|
|
50
61
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
62
|
+
*
|
|
63
|
+
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
51
64
|
*/
|
|
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;
|
|
65
|
+
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
66
|
/**
|
|
54
67
|
* Give your video a custom name for easy identification.
|
|
55
68
|
*/
|
|
@@ -59,15 +72,16 @@ export type CreateRequest = {
|
|
|
59
72
|
*/
|
|
60
73
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
61
74
|
/**
|
|
62
|
-
* Controls the output video resolution. Defaults to `720p`
|
|
75
|
+
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
76
|
+
*
|
|
77
|
+
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
78
|
+
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
79
|
+
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
80
|
+
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
81
|
+
* * **`sora-2`**: Supports 720p.
|
|
82
|
+
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
63
83
|
*
|
|
64
|
-
* *
|
|
65
|
-
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
66
|
-
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
67
|
-
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
68
|
-
* * **sora-2**: Supports `720p`.
|
|
69
|
-
* * **veo3.1**: Supports `720p`, `1080p`.
|
|
70
|
-
* * **kling-1.6**: Supports `720p`, `1080p`.
|
|
84
|
+
* * **`kling-1.6`**: Supports 720p, 1080p.
|
|
71
85
|
*/
|
|
72
86
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
73
87
|
style: V1TextToVideoCreateBodyStyle;
|
|
@@ -81,7 +95,7 @@ export type External$CreateRequest = {
|
|
|
81
95
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
82
96
|
audio?: boolean | undefined;
|
|
83
97
|
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;
|
|
98
|
+
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
99
|
name?: string | undefined;
|
|
86
100
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
87
101
|
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",
|
|
@@ -22,10 +22,6 @@ export type CreateRequest = {
|
|
|
22
22
|
/**
|
|
23
23
|
* `height` is deprecated and no longer influences the output video's resolution.
|
|
24
24
|
*
|
|
25
|
-
* Output resolution is determined by the **minimum** of:
|
|
26
|
-
* - The resolution of the input video
|
|
27
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
28
|
-
*
|
|
29
25
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
30
26
|
*/
|
|
31
27
|
height?: number | null | undefined;
|
|
@@ -41,10 +37,6 @@ export type CreateRequest = {
|
|
|
41
37
|
/**
|
|
42
38
|
* `width` is deprecated and no longer influences the output video's resolution.
|
|
43
39
|
*
|
|
44
|
-
* Output resolution is determined by the **minimum** of:
|
|
45
|
-
* - The resolution of the input video
|
|
46
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
47
|
-
*
|
|
48
40
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
49
41
|
*/
|
|
50
42
|
width?: number | null | undefined;
|
|
@@ -16,10 +16,6 @@ export type V1FaceSwapCreateBody = {
|
|
|
16
16
|
/**
|
|
17
17
|
* `height` is deprecated and no longer influences the output video's resolution.
|
|
18
18
|
*
|
|
19
|
-
* Output resolution is determined by the **minimum** of:
|
|
20
|
-
* - The resolution of the input video
|
|
21
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
22
|
-
*
|
|
23
19
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
24
20
|
*/
|
|
25
21
|
height?: number | null | undefined;
|
|
@@ -38,10 +34,6 @@ export type V1FaceSwapCreateBody = {
|
|
|
38
34
|
/**
|
|
39
35
|
* `width` is deprecated and no longer influences the output video's resolution.
|
|
40
36
|
*
|
|
41
|
-
* Output resolution is determined by the **minimum** of:
|
|
42
|
-
* - The resolution of the input video
|
|
43
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
44
|
-
*
|
|
45
37
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
46
38
|
*/
|
|
47
39
|
width?: number | null | undefined;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The AI model to use for video generation.
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
|
+
* * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-2.5`. For free tiers, it defaults to `ltx-2`.
|
|
5
|
+
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
4
6
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
5
7
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
6
8
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
7
9
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
8
10
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
11
|
+
*
|
|
12
|
+
* Legacy models:
|
|
9
13
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
14
|
+
*
|
|
15
|
+
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
10
16
|
*/
|
|
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";
|
|
17
|
+
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";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Controls the output video resolution. Defaults to `720p`
|
|
2
|
+
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
3
3
|
*
|
|
4
|
-
* *
|
|
5
|
-
* *
|
|
6
|
-
* *
|
|
7
|
-
* *
|
|
8
|
-
* *
|
|
9
|
-
* *
|
|
10
|
-
*
|
|
4
|
+
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
5
|
+
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
6
|
+
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
7
|
+
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
8
|
+
* * **`sora-2`**: Supports 720p.
|
|
9
|
+
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
10
|
+
*
|
|
11
|
+
* * **`kling-1.6`**: Supports 720p, 1080p.
|
|
11
12
|
*/
|
|
12
13
|
export type V1ImageToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
|
|
@@ -13,62 +13,68 @@ 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
|
-
* *
|
|
17
|
-
* *
|
|
18
|
-
* *
|
|
19
|
-
* *
|
|
20
|
-
* *
|
|
21
|
-
* *
|
|
16
|
+
* * **`ltx-2`**: Automatically included with no extra credits
|
|
17
|
+
* * **`seedance`**: Not supported
|
|
18
|
+
* * **`kling-2.5`**: Automatically included with no extra credits
|
|
19
|
+
* * **`kling-3.0`**: Toggle-able (can enable/disable)
|
|
20
|
+
* * **`sora-2`**: Automatically included with no extra credits
|
|
21
|
+
* * **`veo3.1`**: Toggle-able (can enable/disable)
|
|
22
|
+
*
|
|
23
|
+
* * **`kling-1.6`**: Not supported
|
|
22
24
|
*/
|
|
23
25
|
audio?: boolean | undefined;
|
|
24
26
|
/**
|
|
25
|
-
* The total duration of the output video in seconds.
|
|
27
|
+
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
28
|
+
*
|
|
29
|
+
* * **`ltx-2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
30
|
+
* * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
31
|
+
* * **`kling-2.5`**: 5, 10
|
|
32
|
+
* * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
33
|
+
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
34
|
+
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
26
35
|
*
|
|
27
|
-
*
|
|
28
|
-
* *
|
|
29
|
-
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
30
|
-
* * **kling-2.5**: 5, 10
|
|
31
|
-
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
32
|
-
* * **sora-2**: 4, 8, 12, 24, 36, 48, 60
|
|
33
|
-
* * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
34
|
-
* * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
36
|
+
* Legacy models:
|
|
37
|
+
* * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
35
38
|
*/
|
|
36
39
|
endSeconds: number;
|
|
37
40
|
/**
|
|
38
41
|
* `height` is deprecated and no longer influences the output video's resolution.
|
|
39
42
|
*
|
|
40
|
-
* Output resolution is determined by the **minimum** of:
|
|
41
|
-
* - The resolution of the input video
|
|
42
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
43
|
-
*
|
|
44
43
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
45
44
|
*/
|
|
46
45
|
height?: number | null | undefined;
|
|
47
46
|
/**
|
|
48
47
|
* The AI model to use for video generation.
|
|
49
|
-
*
|
|
48
|
+
*
|
|
49
|
+
* * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-2.5`. For free tiers, it defaults to `ltx-2`.
|
|
50
|
+
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
50
51
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
51
52
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
52
53
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
53
54
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
54
55
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
56
|
+
*
|
|
57
|
+
* Legacy models:
|
|
55
58
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
59
|
+
*
|
|
60
|
+
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
56
61
|
*/
|
|
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;
|
|
62
|
+
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
63
|
/**
|
|
59
64
|
* Give your video a custom name for easy identification.
|
|
60
65
|
*/
|
|
61
66
|
name?: string | undefined;
|
|
62
67
|
/**
|
|
63
|
-
* Controls the output video resolution. Defaults to `720p`
|
|
68
|
+
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
64
69
|
*
|
|
65
|
-
* *
|
|
66
|
-
* *
|
|
67
|
-
* *
|
|
68
|
-
* *
|
|
69
|
-
* *
|
|
70
|
-
* *
|
|
71
|
-
*
|
|
70
|
+
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
71
|
+
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
72
|
+
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
73
|
+
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
74
|
+
* * **`sora-2`**: Supports 720p.
|
|
75
|
+
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
76
|
+
*
|
|
77
|
+
* * **`kling-1.6`**: Supports 720p, 1080p.
|
|
72
78
|
*/
|
|
73
79
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
74
80
|
/**
|
|
@@ -78,10 +84,6 @@ export type V1ImageToVideoCreateBody = {
|
|
|
78
84
|
/**
|
|
79
85
|
* `width` is deprecated and no longer influences the output video's resolution.
|
|
80
86
|
*
|
|
81
|
-
* Output resolution is determined by the **minimum** of:
|
|
82
|
-
* - The resolution of the input video
|
|
83
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
84
|
-
*
|
|
85
87
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
86
88
|
*/
|
|
87
89
|
width?: number | null | undefined;
|
|
@@ -96,7 +98,7 @@ export type External$V1ImageToVideoCreateBody = {
|
|
|
96
98
|
audio?: boolean | undefined;
|
|
97
99
|
end_seconds: number;
|
|
98
100
|
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;
|
|
101
|
+
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
102
|
name?: string | undefined;
|
|
101
103
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
102
104
|
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",
|
|
@@ -16,10 +16,6 @@ export type V1LipSyncCreateBody = {
|
|
|
16
16
|
/**
|
|
17
17
|
* `height` is deprecated and no longer influences the output video's resolution.
|
|
18
18
|
*
|
|
19
|
-
* Output resolution is determined by the **minimum** of:
|
|
20
|
-
* - The resolution of the input video
|
|
21
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
22
|
-
*
|
|
23
19
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
24
20
|
*/
|
|
25
21
|
height?: number | null | undefined;
|
|
@@ -42,10 +38,6 @@ export type V1LipSyncCreateBody = {
|
|
|
42
38
|
/**
|
|
43
39
|
* `width` is deprecated and no longer influences the output video's resolution.
|
|
44
40
|
*
|
|
45
|
-
* Output resolution is determined by the **minimum** of:
|
|
46
|
-
* - The resolution of the input video
|
|
47
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
48
|
-
*
|
|
49
41
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
50
42
|
*/
|
|
51
43
|
width?: number | null | undefined;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Determines the aspect ratio of the output video.
|
|
3
|
-
*
|
|
4
|
-
* *
|
|
5
|
-
* *
|
|
6
|
-
* *
|
|
7
|
-
* *
|
|
8
|
-
* *
|
|
3
|
+
*
|
|
4
|
+
* * **`ltx-2`**: Supports 9:16, 16:9, 1:1.
|
|
5
|
+
* * **`seedance`**: Supports 9:16, 16:9, 1:1.
|
|
6
|
+
* * **`kling-2.5`**: Supports 9:16, 16:9, 1:1.
|
|
7
|
+
* * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
|
|
8
|
+
* * **`sora-2`**: Supports 9:16, 16:9.
|
|
9
|
+
* * **`veo3.1`**: Supports 9:16, 16:9.
|
|
10
|
+
*
|
|
11
|
+
* Legacy models:
|
|
12
|
+
* * **`kling-1.6`**: Supports 9:16, 16:9, 1:1.
|
|
9
13
|
*/
|
|
10
14
|
export type V1TextToVideoCreateBodyAspectRatioEnum = "16:9" | "1:1" | "9:16";
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The AI model to use for video generation.
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
|
+
* * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-2.5`. For free tiers, it defaults to `ltx-2`.
|
|
5
|
+
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
4
6
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
5
7
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
6
8
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
7
9
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
8
10
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
11
|
+
*
|
|
12
|
+
* Legacy models:
|
|
9
13
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
14
|
+
*
|
|
15
|
+
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
10
16
|
*/
|
|
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";
|
|
17
|
+
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";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Controls the output video resolution. Defaults to `720p`
|
|
2
|
+
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
3
3
|
*
|
|
4
|
-
* *
|
|
5
|
-
* *
|
|
6
|
-
* *
|
|
7
|
-
* *
|
|
8
|
-
* *
|
|
9
|
-
* *
|
|
10
|
-
*
|
|
4
|
+
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
5
|
+
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
6
|
+
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
7
|
+
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
8
|
+
* * **`sora-2`**: Supports 720p.
|
|
9
|
+
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
10
|
+
*
|
|
11
|
+
* * **`kling-1.6`**: Supports 720p, 1080p.
|
|
11
12
|
*/
|
|
12
13
|
export type V1TextToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
|
|
@@ -6,50 +6,63 @@ 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
|
+
*
|
|
10
|
+
* * **`ltx-2`**: Supports 9:16, 16:9, 1:1.
|
|
11
|
+
* * **`seedance`**: Supports 9:16, 16:9, 1:1.
|
|
12
|
+
* * **`kling-2.5`**: Supports 9:16, 16:9, 1:1.
|
|
13
|
+
* * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
|
|
14
|
+
* * **`sora-2`**: Supports 9:16, 16:9.
|
|
15
|
+
* * **`veo3.1`**: Supports 9:16, 16:9.
|
|
16
|
+
*
|
|
17
|
+
* Legacy models:
|
|
18
|
+
* * **`kling-1.6`**: Supports 9:16, 16:9, 1:1.
|
|
15
19
|
*/
|
|
16
20
|
aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
17
21
|
/**
|
|
18
22
|
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
19
23
|
*
|
|
20
24
|
* Audio support varies by model:
|
|
21
|
-
* *
|
|
22
|
-
* *
|
|
23
|
-
* *
|
|
24
|
-
* *
|
|
25
|
-
* *
|
|
26
|
-
* *
|
|
25
|
+
* * **`ltx-2`**: Automatically included with no extra credits
|
|
26
|
+
* * **`seedance`**: Not supported
|
|
27
|
+
* * **`kling-2.5`**: Automatically included with no extra credits
|
|
28
|
+
* * **`kling-3.0`**: Toggle-able (can enable/disable)
|
|
29
|
+
* * **`sora-2`**: Automatically included with no extra credits
|
|
30
|
+
* * **`veo3.1`**: Toggle-able (can enable/disable)
|
|
31
|
+
*
|
|
32
|
+
* * **`kling-1.6`**: Not supported
|
|
27
33
|
*/
|
|
28
34
|
audio?: boolean | undefined;
|
|
29
35
|
/**
|
|
30
|
-
* The total duration of the output video in seconds.
|
|
36
|
+
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
37
|
+
*
|
|
38
|
+
* * **`ltx-2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
39
|
+
* * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
40
|
+
* * **`kling-2.5`**: 5, 10
|
|
41
|
+
* * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
42
|
+
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
43
|
+
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
31
44
|
*
|
|
32
|
-
*
|
|
33
|
-
* *
|
|
34
|
-
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
35
|
-
* * **kling-2.5**: 5, 10
|
|
36
|
-
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
37
|
-
* * **sora-2**: 4, 8, 12, 24, 36, 48, 60
|
|
38
|
-
* * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
39
|
-
* * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
45
|
+
* Legacy models:
|
|
46
|
+
* * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
40
47
|
*/
|
|
41
48
|
endSeconds: number;
|
|
42
49
|
/**
|
|
43
50
|
* The AI model to use for video generation.
|
|
44
|
-
*
|
|
51
|
+
*
|
|
52
|
+
* * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-2.5`. For free tiers, it defaults to `ltx-2`.
|
|
53
|
+
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
45
54
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
46
55
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
47
56
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
48
57
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
49
58
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
59
|
+
*
|
|
60
|
+
* Legacy models:
|
|
50
61
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
62
|
+
*
|
|
63
|
+
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
51
64
|
*/
|
|
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;
|
|
65
|
+
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
66
|
/**
|
|
54
67
|
* Give your video a custom name for easy identification.
|
|
55
68
|
*/
|
|
@@ -59,15 +72,16 @@ export type V1TextToVideoCreateBody = {
|
|
|
59
72
|
*/
|
|
60
73
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
61
74
|
/**
|
|
62
|
-
* Controls the output video resolution. Defaults to `720p`
|
|
75
|
+
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
76
|
+
*
|
|
77
|
+
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
78
|
+
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
79
|
+
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
80
|
+
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
81
|
+
* * **`sora-2`**: Supports 720p.
|
|
82
|
+
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
63
83
|
*
|
|
64
|
-
* *
|
|
65
|
-
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
66
|
-
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
67
|
-
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
68
|
-
* * **sora-2**: Supports `720p`.
|
|
69
|
-
* * **veo3.1**: Supports `720p`, `1080p`.
|
|
70
|
-
* * **kling-1.6**: Supports `720p`, `1080p`.
|
|
84
|
+
* * **`kling-1.6`**: Supports 720p, 1080p.
|
|
71
85
|
*/
|
|
72
86
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
73
87
|
style: V1TextToVideoCreateBodyStyle;
|
|
@@ -81,7 +95,7 @@ export type External$V1TextToVideoCreateBody = {
|
|
|
81
95
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
82
96
|
audio?: boolean | undefined;
|
|
83
97
|
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;
|
|
98
|
+
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
99
|
name?: string | undefined;
|
|
86
100
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
87
101
|
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",
|
|
@@ -61,7 +61,7 @@ export type V1VideoProjectsGetResponse = {
|
|
|
61
61
|
*/
|
|
62
62
|
totalFrameCost: number;
|
|
63
63
|
/**
|
|
64
|
-
* The type of the video project. Possible values are ANIMATION, IMAGE_TO_VIDEO, VIDEO_TO_VIDEO, TEXT_TO_VIDEO, FACE_SWAP, LIP_SYNC, AUTO_SUBTITLE, TALKING_PHOTO, UGC_AD, VIDEO_UPSCALER
|
|
64
|
+
* The type of the video project. Possible values are ANIMATION, IMAGE_TO_VIDEO, VIDEO_TO_VIDEO, TEXT_TO_VIDEO, FACE_SWAP, LIP_SYNC, AUTO_SUBTITLE, TALKING_PHOTO, UGC_AD, VIDEO_UPSCALER, EXTEND, AUDIO_TO_VIDEO
|
|
65
65
|
*/
|
|
66
66
|
type: string;
|
|
67
67
|
/**
|
|
@@ -22,10 +22,6 @@ export type V1VideoToVideoCreateBody = {
|
|
|
22
22
|
/**
|
|
23
23
|
* `height` is deprecated and no longer influences the output video's resolution.
|
|
24
24
|
*
|
|
25
|
-
* Output resolution is determined by the **minimum** of:
|
|
26
|
-
* - The resolution of the input video
|
|
27
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
28
|
-
*
|
|
29
25
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
30
26
|
*/
|
|
31
27
|
height?: number | null | undefined;
|
|
@@ -41,10 +37,6 @@ export type V1VideoToVideoCreateBody = {
|
|
|
41
37
|
/**
|
|
42
38
|
* `width` is deprecated and no longer influences the output video's resolution.
|
|
43
39
|
*
|
|
44
|
-
* Output resolution is determined by the **minimum** of:
|
|
45
|
-
* - The resolution of the input video
|
|
46
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
47
|
-
*
|
|
48
40
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
49
41
|
*/
|
|
50
42
|
width?: number | null | undefined;
|