magic-hour 0.53.0 → 0.54.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/ai-image-editor/request-types.d.ts +6 -2
- package/dist/resources/v1/ai-image-editor/request-types.js +2 -0
- package/dist/resources/v1/ai-image-generator/request-types.d.ts +10 -2
- package/dist/resources/v1/ai-image-generator/request-types.js +4 -0
- package/dist/resources/v1/face-swap/request-types.d.ts +0 -8
- package/dist/resources/v1/image-to-video/request-types.d.ts +35 -35
- package/dist/resources/v1/lip-sync/request-types.d.ts +0 -8
- package/dist/resources/v1/text-to-video/request-types.d.ts +45 -34
- package/dist/resources/v1/video-to-video/request-types.d.ts +0 -8
- package/dist/types/v1-ai-image-editor-create-body-model-enum.d.ts +5 -1
- package/dist/types/v1-ai-image-editor-create-body.d.ts +6 -2
- package/dist/types/v1-ai-image-editor-create-body.js +2 -0
- package/dist/types/v1-ai-image-generator-create-body-model-enum.d.ts +9 -1
- package/dist/types/v1-ai-image-generator-create-body.d.ts +10 -2
- package/dist/types/v1-ai-image-generator-create-body.js +4 -0
- package/dist/types/v1-audio-projects-get-response.d.ts +1 -1
- 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 +6 -1
- package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +10 -9
- package/dist/types/v1-image-to-video-create-body.d.ts +35 -35
- 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 -7
- package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +6 -1
- package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +10 -9
- package/dist/types/v1-text-to-video-create-body.d.ts +45 -34
- 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.54.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -30,6 +30,10 @@ export type CreateRequest = {
|
|
|
30
30
|
* - Available for tiers: free, creator, pro, business
|
|
31
31
|
* - Image count allowed: 1
|
|
32
32
|
* - Max additional input images: 9
|
|
33
|
+
* - `nano-banana-2` - 100 credits/image
|
|
34
|
+
* - Available for tiers: free, creator, pro, business
|
|
35
|
+
* - Image count allowed: 1
|
|
36
|
+
* - Max additional input images: 9
|
|
33
37
|
* - `seedream-v4` - 50 credits/image
|
|
34
38
|
* - Available for tiers: free, creator, pro, business
|
|
35
39
|
* - Image count allowed: 1
|
|
@@ -44,7 +48,7 @@ export type CreateRequest = {
|
|
|
44
48
|
* - Max additional input images: 9
|
|
45
49
|
*
|
|
46
50
|
*/
|
|
47
|
-
model?: ("default" | "nano-banana" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
51
|
+
model?: ("default" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
48
52
|
/**
|
|
49
53
|
* Give your image a custom name for easy identification.
|
|
50
54
|
*/
|
|
@@ -60,7 +64,7 @@ export type External$CreateRequest = {
|
|
|
60
64
|
aspect_ratio?: ("16:9" | "1:1" | "2:3" | "3:2" | "4:3" | "4:5" | "9:16" | "auto") | undefined;
|
|
61
65
|
assets: External$V1AiImageEditorCreateBodyAssets;
|
|
62
66
|
image_count?: number | undefined;
|
|
63
|
-
model?: ("default" | "nano-banana" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
67
|
+
model?: ("default" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
64
68
|
name?: string | undefined;
|
|
65
69
|
style: External$V1AiImageEditorCreateBodyStyle;
|
|
66
70
|
};
|
|
@@ -52,6 +52,7 @@ const SchemaIn$CreateRequest = z
|
|
|
52
52
|
.enum([
|
|
53
53
|
"default",
|
|
54
54
|
"nano-banana",
|
|
55
|
+
"nano-banana-2",
|
|
55
56
|
"nano-banana-pro",
|
|
56
57
|
"qwen-edit",
|
|
57
58
|
"seedream-v4",
|
|
@@ -86,6 +87,7 @@ const SchemaOut$CreateRequest = z
|
|
|
86
87
|
.enum([
|
|
87
88
|
"default",
|
|
88
89
|
"nano-banana",
|
|
90
|
+
"nano-banana-2",
|
|
89
91
|
"nano-banana-pro",
|
|
90
92
|
"qwen-edit",
|
|
91
93
|
"seedream-v4",
|
|
@@ -29,13 +29,21 @@ export type CreateRequest = {
|
|
|
29
29
|
* - Supported resolutions: auto, 2k, 4k
|
|
30
30
|
* - Available for tiers: free, creator, pro, business
|
|
31
31
|
* - Image count allowed: 1, 2, 3, 4
|
|
32
|
+
* - `nano-banana` - 50 credits/image
|
|
33
|
+
* - Supported resolutions: auto
|
|
34
|
+
* - Available for tiers: free, creator, pro, business
|
|
35
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
36
|
+
* - `nano-banana-2` - 100 credits/image
|
|
37
|
+
* - Supported resolutions: auto
|
|
38
|
+
* - Available for tiers: free, creator, pro, business
|
|
39
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
32
40
|
* - `nano-banana-pro` - 150 credits/image
|
|
33
41
|
* - Supported resolutions: auto
|
|
34
42
|
* - Available for tiers: creator, pro, business
|
|
35
43
|
* - Image count allowed: 1, 4, 9, 16
|
|
36
44
|
*
|
|
37
45
|
*/
|
|
38
|
-
model?: ("default" | "flux-schnell" | "nano-banana-pro" | "seedream" | "z-image-turbo") | undefined;
|
|
46
|
+
model?: ("default" | "flux-schnell" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "z-image-turbo") | undefined;
|
|
39
47
|
/**
|
|
40
48
|
* Give your image a custom name for easy identification.
|
|
41
49
|
*/
|
|
@@ -70,7 +78,7 @@ export type CreateRequest = {
|
|
|
70
78
|
export type External$CreateRequest = {
|
|
71
79
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
72
80
|
image_count: number;
|
|
73
|
-
model?: ("default" | "flux-schnell" | "nano-banana-pro" | "seedream" | "z-image-turbo") | undefined;
|
|
81
|
+
model?: ("default" | "flux-schnell" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "z-image-turbo") | undefined;
|
|
74
82
|
name?: string | undefined;
|
|
75
83
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
76
84
|
resolution?: ("2k" | "4k" | "auto") | undefined;
|
|
@@ -48,6 +48,8 @@ const SchemaIn$CreateRequest = z
|
|
|
48
48
|
.enum([
|
|
49
49
|
"default",
|
|
50
50
|
"flux-schnell",
|
|
51
|
+
"nano-banana",
|
|
52
|
+
"nano-banana-2",
|
|
51
53
|
"nano-banana-pro",
|
|
52
54
|
"seedream",
|
|
53
55
|
"z-image-turbo",
|
|
@@ -81,6 +83,8 @@ const SchemaOut$CreateRequest = z
|
|
|
81
83
|
.enum([
|
|
82
84
|
"default",
|
|
83
85
|
"flux-schnell",
|
|
86
|
+
"nano-banana",
|
|
87
|
+
"nano-banana-2",
|
|
84
88
|
"nano-banana-pro",
|
|
85
89
|
"seedream",
|
|
86
90
|
"z-image-turbo",
|
|
@@ -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,49 +13,52 @@ 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
|
-
* *
|
|
22
|
-
*
|
|
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
|
+
* Legacy models:
|
|
24
|
+
* * **`kling-1.6`**: Not supported
|
|
23
25
|
*/
|
|
24
26
|
audio?: boolean | undefined;
|
|
25
27
|
/**
|
|
26
|
-
* The total duration of the output video in seconds.
|
|
28
|
+
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
29
|
+
*
|
|
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
|
|
27
36
|
*
|
|
28
|
-
*
|
|
29
|
-
* *
|
|
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
|
|
37
|
+
* Legacy models:
|
|
38
|
+
* * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
37
39
|
*/
|
|
38
40
|
endSeconds: number;
|
|
39
41
|
/**
|
|
40
42
|
* `height` is deprecated and no longer influences the output video's resolution.
|
|
41
43
|
*
|
|
42
|
-
* Output resolution is determined by the **minimum** of:
|
|
43
|
-
* - The resolution of the input video
|
|
44
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
45
|
-
*
|
|
46
44
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
47
45
|
*/
|
|
48
46
|
height?: number | null | undefined;
|
|
49
47
|
/**
|
|
50
48
|
* The AI model to use for video generation.
|
|
51
|
-
*
|
|
49
|
+
*
|
|
50
|
+
* * `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`.
|
|
52
51
|
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
53
52
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
54
53
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
55
54
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
56
55
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
57
56
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
57
|
+
*
|
|
58
|
+
* Legacy models:
|
|
58
59
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
60
|
+
*
|
|
61
|
+
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
59
62
|
*/
|
|
60
63
|
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;
|
|
61
64
|
/**
|
|
@@ -63,16 +66,17 @@ export type CreateRequest = {
|
|
|
63
66
|
*/
|
|
64
67
|
name?: string | undefined;
|
|
65
68
|
/**
|
|
66
|
-
* Controls the output video resolution. Defaults to `720p`
|
|
69
|
+
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
67
70
|
*
|
|
68
|
-
* *
|
|
69
|
-
* *
|
|
70
|
-
* *
|
|
71
|
-
* *
|
|
72
|
-
* *
|
|
73
|
-
* *
|
|
74
|
-
*
|
|
75
|
-
*
|
|
71
|
+
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
72
|
+
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
73
|
+
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
74
|
+
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
75
|
+
* * **`sora-2`**: Supports 720p.
|
|
76
|
+
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
77
|
+
*
|
|
78
|
+
* Legacy models:
|
|
79
|
+
* * **`kling-1.6`**: Supports 720p, 1080p.
|
|
76
80
|
*/
|
|
77
81
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
78
82
|
/**
|
|
@@ -82,10 +86,6 @@ export type CreateRequest = {
|
|
|
82
86
|
/**
|
|
83
87
|
* `width` is deprecated and no longer influences the output video's resolution.
|
|
84
88
|
*
|
|
85
|
-
* Output resolution is determined by the **minimum** of:
|
|
86
|
-
* - The resolution of the input video
|
|
87
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
88
|
-
*
|
|
89
89
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
90
90
|
*/
|
|
91
91
|
width?: number | null | undefined;
|
|
@@ -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,52 +6,62 @@ 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
|
-
* *
|
|
15
|
-
* *
|
|
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.
|
|
16
19
|
*/
|
|
17
20
|
aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
18
21
|
/**
|
|
19
22
|
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
20
23
|
*
|
|
21
24
|
* Audio support varies by model:
|
|
22
|
-
* *
|
|
23
|
-
* *
|
|
24
|
-
* *
|
|
25
|
-
* *
|
|
26
|
-
* *
|
|
27
|
-
* *
|
|
28
|
-
*
|
|
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
|
+
* Legacy models:
|
|
33
|
+
* * **`kling-1.6`**: Not supported
|
|
29
34
|
*/
|
|
30
35
|
audio?: boolean | undefined;
|
|
31
36
|
/**
|
|
32
|
-
* The total duration of the output video in seconds.
|
|
37
|
+
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
38
|
+
*
|
|
39
|
+
* * **`ltx-2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
40
|
+
* * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
41
|
+
* * **`kling-2.5`**: 5, 10
|
|
42
|
+
* * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
43
|
+
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
44
|
+
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
33
45
|
*
|
|
34
|
-
*
|
|
35
|
-
* *
|
|
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
|
|
46
|
+
* Legacy models:
|
|
47
|
+
* * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
43
48
|
*/
|
|
44
49
|
endSeconds: number;
|
|
45
50
|
/**
|
|
46
51
|
* The AI model to use for video generation.
|
|
47
|
-
*
|
|
52
|
+
*
|
|
53
|
+
* * `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`.
|
|
48
54
|
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
49
55
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
50
56
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
51
57
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
52
58
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
53
59
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
60
|
+
*
|
|
61
|
+
* Legacy models:
|
|
54
62
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
63
|
+
*
|
|
64
|
+
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
55
65
|
*/
|
|
56
66
|
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;
|
|
57
67
|
/**
|
|
@@ -63,16 +73,17 @@ export type CreateRequest = {
|
|
|
63
73
|
*/
|
|
64
74
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
65
75
|
/**
|
|
66
|
-
* Controls the output video resolution. Defaults to `720p`
|
|
76
|
+
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
77
|
+
*
|
|
78
|
+
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
79
|
+
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
80
|
+
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
81
|
+
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
82
|
+
* * **`sora-2`**: Supports 720p.
|
|
83
|
+
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
67
84
|
*
|
|
68
|
-
*
|
|
69
|
-
* *
|
|
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`.
|
|
85
|
+
* Legacy models:
|
|
86
|
+
* * **`kling-1.6`**: Supports 720p, 1080p.
|
|
76
87
|
*/
|
|
77
88
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
78
89
|
style: V1TextToVideoCreateBodyStyle;
|
|
@@ -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;
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
* - Available for tiers: free, creator, pro, business
|
|
12
12
|
* - Image count allowed: 1
|
|
13
13
|
* - Max additional input images: 9
|
|
14
|
+
* - `nano-banana-2` - 100 credits/image
|
|
15
|
+
* - Available for tiers: free, creator, pro, business
|
|
16
|
+
* - Image count allowed: 1
|
|
17
|
+
* - Max additional input images: 9
|
|
14
18
|
* - `seedream-v4` - 50 credits/image
|
|
15
19
|
* - Available for tiers: free, creator, pro, business
|
|
16
20
|
* - Image count allowed: 1
|
|
@@ -25,4 +29,4 @@
|
|
|
25
29
|
* - Max additional input images: 9
|
|
26
30
|
*
|
|
27
31
|
*/
|
|
28
|
-
export type V1AiImageEditorCreateBodyModelEnum = "default" | "nano-banana" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5";
|
|
32
|
+
export type V1AiImageEditorCreateBodyModelEnum = "default" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5";
|
|
@@ -30,6 +30,10 @@ export type V1AiImageEditorCreateBody = {
|
|
|
30
30
|
* - Available for tiers: free, creator, pro, business
|
|
31
31
|
* - Image count allowed: 1
|
|
32
32
|
* - Max additional input images: 9
|
|
33
|
+
* - `nano-banana-2` - 100 credits/image
|
|
34
|
+
* - Available for tiers: free, creator, pro, business
|
|
35
|
+
* - Image count allowed: 1
|
|
36
|
+
* - Max additional input images: 9
|
|
33
37
|
* - `seedream-v4` - 50 credits/image
|
|
34
38
|
* - Available for tiers: free, creator, pro, business
|
|
35
39
|
* - Image count allowed: 1
|
|
@@ -44,7 +48,7 @@ export type V1AiImageEditorCreateBody = {
|
|
|
44
48
|
* - Max additional input images: 9
|
|
45
49
|
*
|
|
46
50
|
*/
|
|
47
|
-
model?: ("default" | "nano-banana" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
51
|
+
model?: ("default" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
48
52
|
/**
|
|
49
53
|
* Give your image a custom name for easy identification.
|
|
50
54
|
*/
|
|
@@ -60,7 +64,7 @@ export type External$V1AiImageEditorCreateBody = {
|
|
|
60
64
|
aspect_ratio?: ("16:9" | "1:1" | "2:3" | "3:2" | "4:3" | "4:5" | "9:16" | "auto") | undefined;
|
|
61
65
|
assets: External$V1AiImageEditorCreateBodyAssets;
|
|
62
66
|
image_count?: number | undefined;
|
|
63
|
-
model?: ("default" | "nano-banana" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
67
|
+
model?: ("default" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
64
68
|
name?: string | undefined;
|
|
65
69
|
style: External$V1AiImageEditorCreateBodyStyle;
|
|
66
70
|
};
|
|
@@ -52,6 +52,7 @@ const SchemaIn$V1AiImageEditorCreateBody = z
|
|
|
52
52
|
.enum([
|
|
53
53
|
"default",
|
|
54
54
|
"nano-banana",
|
|
55
|
+
"nano-banana-2",
|
|
55
56
|
"nano-banana-pro",
|
|
56
57
|
"qwen-edit",
|
|
57
58
|
"seedream-v4",
|
|
@@ -86,6 +87,7 @@ const SchemaOut$V1AiImageEditorCreateBody = z
|
|
|
86
87
|
.enum([
|
|
87
88
|
"default",
|
|
88
89
|
"nano-banana",
|
|
90
|
+
"nano-banana-2",
|
|
89
91
|
"nano-banana-pro",
|
|
90
92
|
"qwen-edit",
|
|
91
93
|
"seedream-v4",
|
|
@@ -15,10 +15,18 @@
|
|
|
15
15
|
* - Supported resolutions: auto, 2k, 4k
|
|
16
16
|
* - Available for tiers: free, creator, pro, business
|
|
17
17
|
* - Image count allowed: 1, 2, 3, 4
|
|
18
|
+
* - `nano-banana` - 50 credits/image
|
|
19
|
+
* - Supported resolutions: auto
|
|
20
|
+
* - Available for tiers: free, creator, pro, business
|
|
21
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
22
|
+
* - `nano-banana-2` - 100 credits/image
|
|
23
|
+
* - Supported resolutions: auto
|
|
24
|
+
* - Available for tiers: free, creator, pro, business
|
|
25
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
18
26
|
* - `nano-banana-pro` - 150 credits/image
|
|
19
27
|
* - Supported resolutions: auto
|
|
20
28
|
* - Available for tiers: creator, pro, business
|
|
21
29
|
* - Image count allowed: 1, 4, 9, 16
|
|
22
30
|
*
|
|
23
31
|
*/
|
|
24
|
-
export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-schnell" | "nano-banana-pro" | "seedream" | "z-image-turbo";
|
|
32
|
+
export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-schnell" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "z-image-turbo";
|
|
@@ -29,13 +29,21 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
29
29
|
* - Supported resolutions: auto, 2k, 4k
|
|
30
30
|
* - Available for tiers: free, creator, pro, business
|
|
31
31
|
* - Image count allowed: 1, 2, 3, 4
|
|
32
|
+
* - `nano-banana` - 50 credits/image
|
|
33
|
+
* - Supported resolutions: auto
|
|
34
|
+
* - Available for tiers: free, creator, pro, business
|
|
35
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
36
|
+
* - `nano-banana-2` - 100 credits/image
|
|
37
|
+
* - Supported resolutions: auto
|
|
38
|
+
* - Available for tiers: free, creator, pro, business
|
|
39
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
32
40
|
* - `nano-banana-pro` - 150 credits/image
|
|
33
41
|
* - Supported resolutions: auto
|
|
34
42
|
* - Available for tiers: creator, pro, business
|
|
35
43
|
* - Image count allowed: 1, 4, 9, 16
|
|
36
44
|
*
|
|
37
45
|
*/
|
|
38
|
-
model?: ("default" | "flux-schnell" | "nano-banana-pro" | "seedream" | "z-image-turbo") | undefined;
|
|
46
|
+
model?: ("default" | "flux-schnell" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "z-image-turbo") | undefined;
|
|
39
47
|
/**
|
|
40
48
|
* Give your image a custom name for easy identification.
|
|
41
49
|
*/
|
|
@@ -70,7 +78,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
70
78
|
export type External$V1AiImageGeneratorCreateBody = {
|
|
71
79
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
72
80
|
image_count: number;
|
|
73
|
-
model?: ("default" | "flux-schnell" | "nano-banana-pro" | "seedream" | "z-image-turbo") | undefined;
|
|
81
|
+
model?: ("default" | "flux-schnell" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "z-image-turbo") | undefined;
|
|
74
82
|
name?: string | undefined;
|
|
75
83
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
76
84
|
resolution?: ("2k" | "4k" | "auto") | undefined;
|
|
@@ -48,6 +48,8 @@ const SchemaIn$V1AiImageGeneratorCreateBody = z
|
|
|
48
48
|
.enum([
|
|
49
49
|
"default",
|
|
50
50
|
"flux-schnell",
|
|
51
|
+
"nano-banana",
|
|
52
|
+
"nano-banana-2",
|
|
51
53
|
"nano-banana-pro",
|
|
52
54
|
"seedream",
|
|
53
55
|
"z-image-turbo",
|
|
@@ -81,6 +83,8 @@ const SchemaOut$V1AiImageGeneratorCreateBody = z
|
|
|
81
83
|
.enum([
|
|
82
84
|
"default",
|
|
83
85
|
"flux-schnell",
|
|
86
|
+
"nano-banana",
|
|
87
|
+
"nano-banana-2",
|
|
84
88
|
"nano-banana-pro",
|
|
85
89
|
"seedream",
|
|
86
90
|
"z-image-turbo",
|
|
@@ -34,7 +34,7 @@ export type V1AudioProjectsGetResponse = {
|
|
|
34
34
|
*/
|
|
35
35
|
status: "canceled" | "complete" | "draft" | "error" | "queued" | "rendering";
|
|
36
36
|
/**
|
|
37
|
-
* The type of the audio project. Possible values are VOICE_GENERATOR, VOICE_CHANGER, VOICE_CLONER
|
|
37
|
+
* The type of the audio project. Possible values are VOICE_GENERATOR, VOICE_CHANGER, VOICE_CLONER, VIDEO_TO_AUDIO
|
|
38
38
|
*/
|
|
39
39
|
type: string;
|
|
40
40
|
};
|
|
@@ -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,12 +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`.
|
|
4
5
|
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
5
6
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
6
7
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
7
8
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
8
9
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
9
10
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
11
|
+
*
|
|
12
|
+
* Legacy models:
|
|
10
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`.
|
|
11
16
|
*/
|
|
12
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,13 +1,14 @@
|
|
|
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
|
-
*
|
|
11
|
-
*
|
|
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
|
+
* Legacy models:
|
|
12
|
+
* * **`kling-1.6`**: Supports 720p, 1080p.
|
|
12
13
|
*/
|
|
13
14
|
export type V1ImageToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
|
|
@@ -13,49 +13,52 @@ 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
|
-
* *
|
|
22
|
-
*
|
|
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
|
+
* Legacy models:
|
|
24
|
+
* * **`kling-1.6`**: Not supported
|
|
23
25
|
*/
|
|
24
26
|
audio?: boolean | undefined;
|
|
25
27
|
/**
|
|
26
|
-
* The total duration of the output video in seconds.
|
|
28
|
+
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
29
|
+
*
|
|
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
|
|
27
36
|
*
|
|
28
|
-
*
|
|
29
|
-
* *
|
|
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
|
|
37
|
+
* Legacy models:
|
|
38
|
+
* * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
37
39
|
*/
|
|
38
40
|
endSeconds: number;
|
|
39
41
|
/**
|
|
40
42
|
* `height` is deprecated and no longer influences the output video's resolution.
|
|
41
43
|
*
|
|
42
|
-
* Output resolution is determined by the **minimum** of:
|
|
43
|
-
* - The resolution of the input video
|
|
44
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
45
|
-
*
|
|
46
44
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
47
45
|
*/
|
|
48
46
|
height?: number | null | undefined;
|
|
49
47
|
/**
|
|
50
48
|
* The AI model to use for video generation.
|
|
51
|
-
*
|
|
49
|
+
*
|
|
50
|
+
* * `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`.
|
|
52
51
|
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
53
52
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
54
53
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
55
54
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
56
55
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
57
56
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
57
|
+
*
|
|
58
|
+
* Legacy models:
|
|
58
59
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
60
|
+
*
|
|
61
|
+
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
59
62
|
*/
|
|
60
63
|
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;
|
|
61
64
|
/**
|
|
@@ -63,16 +66,17 @@ export type V1ImageToVideoCreateBody = {
|
|
|
63
66
|
*/
|
|
64
67
|
name?: string | undefined;
|
|
65
68
|
/**
|
|
66
|
-
* Controls the output video resolution. Defaults to `720p`
|
|
69
|
+
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
67
70
|
*
|
|
68
|
-
* *
|
|
69
|
-
* *
|
|
70
|
-
* *
|
|
71
|
-
* *
|
|
72
|
-
* *
|
|
73
|
-
* *
|
|
74
|
-
*
|
|
75
|
-
*
|
|
71
|
+
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
72
|
+
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
73
|
+
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
74
|
+
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
75
|
+
* * **`sora-2`**: Supports 720p.
|
|
76
|
+
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
77
|
+
*
|
|
78
|
+
* Legacy models:
|
|
79
|
+
* * **`kling-1.6`**: Supports 720p, 1080p.
|
|
76
80
|
*/
|
|
77
81
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
78
82
|
/**
|
|
@@ -82,10 +86,6 @@ export type V1ImageToVideoCreateBody = {
|
|
|
82
86
|
/**
|
|
83
87
|
* `width` is deprecated and no longer influences the output video's resolution.
|
|
84
88
|
*
|
|
85
|
-
* Output resolution is determined by the **minimum** of:
|
|
86
|
-
* - The resolution of the input video
|
|
87
|
-
* - The maximum resolution allowed by your subscription tier. See our [pricing page](https://magichour.ai/pricing) for more details.
|
|
88
|
-
*
|
|
89
89
|
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
90
90
|
*/
|
|
91
91
|
width?: number | null | undefined;
|
|
@@ -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,11 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Determines the aspect ratio of the output video.
|
|
3
|
-
*
|
|
4
|
-
* *
|
|
5
|
-
* *
|
|
6
|
-
* *
|
|
7
|
-
* *
|
|
8
|
-
* *
|
|
9
|
-
* *
|
|
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.
|
|
10
13
|
*/
|
|
11
14
|
export type V1TextToVideoCreateBodyAspectRatioEnum = "16:9" | "1:1" | "9:16";
|
|
@@ -1,12 +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`.
|
|
4
5
|
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
5
6
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
6
7
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
7
8
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
8
9
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
9
10
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
11
|
+
*
|
|
12
|
+
* Legacy models:
|
|
10
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`.
|
|
11
16
|
*/
|
|
12
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,13 +1,14 @@
|
|
|
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
|
-
*
|
|
11
|
-
*
|
|
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
|
+
* Legacy models:
|
|
12
|
+
* * **`kling-1.6`**: Supports 720p, 1080p.
|
|
12
13
|
*/
|
|
13
14
|
export type V1TextToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
|
|
@@ -6,52 +6,62 @@ 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
|
-
* *
|
|
15
|
-
* *
|
|
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.
|
|
16
19
|
*/
|
|
17
20
|
aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
18
21
|
/**
|
|
19
22
|
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
20
23
|
*
|
|
21
24
|
* Audio support varies by model:
|
|
22
|
-
* *
|
|
23
|
-
* *
|
|
24
|
-
* *
|
|
25
|
-
* *
|
|
26
|
-
* *
|
|
27
|
-
* *
|
|
28
|
-
*
|
|
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
|
+
* Legacy models:
|
|
33
|
+
* * **`kling-1.6`**: Not supported
|
|
29
34
|
*/
|
|
30
35
|
audio?: boolean | undefined;
|
|
31
36
|
/**
|
|
32
|
-
* The total duration of the output video in seconds.
|
|
37
|
+
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
38
|
+
*
|
|
39
|
+
* * **`ltx-2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
40
|
+
* * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
41
|
+
* * **`kling-2.5`**: 5, 10
|
|
42
|
+
* * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
43
|
+
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
44
|
+
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
33
45
|
*
|
|
34
|
-
*
|
|
35
|
-
* *
|
|
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
|
|
46
|
+
* Legacy models:
|
|
47
|
+
* * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
43
48
|
*/
|
|
44
49
|
endSeconds: number;
|
|
45
50
|
/**
|
|
46
51
|
* The AI model to use for video generation.
|
|
47
|
-
*
|
|
52
|
+
*
|
|
53
|
+
* * `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`.
|
|
48
54
|
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
49
55
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
50
56
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
51
57
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
52
58
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
53
59
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
60
|
+
*
|
|
61
|
+
* Legacy models:
|
|
54
62
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
63
|
+
*
|
|
64
|
+
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
55
65
|
*/
|
|
56
66
|
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;
|
|
57
67
|
/**
|
|
@@ -63,16 +73,17 @@ export type V1TextToVideoCreateBody = {
|
|
|
63
73
|
*/
|
|
64
74
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
65
75
|
/**
|
|
66
|
-
* Controls the output video resolution. Defaults to `720p`
|
|
76
|
+
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
77
|
+
*
|
|
78
|
+
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
79
|
+
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
80
|
+
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
81
|
+
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
82
|
+
* * **`sora-2`**: Supports 720p.
|
|
83
|
+
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
67
84
|
*
|
|
68
|
-
*
|
|
69
|
-
* *
|
|
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`.
|
|
85
|
+
* Legacy models:
|
|
86
|
+
* * **`kling-1.6`**: Supports 720p, 1080p.
|
|
76
87
|
*/
|
|
77
88
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
78
89
|
style: V1TextToVideoCreateBodyStyle;
|
|
@@ -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;
|