magic-hour 0.53.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.
@@ -1,4 +1,4 @@
1
1
  export declare enum Environment {
2
2
  Environment = "https://api.magichour.ai",
3
- MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.53.0"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.53.1"
4
4
  }
@@ -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.53.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,49 +13,51 @@ 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)
17
- * * **seedance**: Not supported
18
- * * **kling-2.5**: Always included (cannot be disabled)
19
- * * **kling-3.0**: Toggle-able (can enable/disable)
20
- * * **sora-2**: Always included (cannot be disabled)
21
- * * **veo3.1**: Toggle-able (can enable/disable)
22
- * * **kling-1.6**: Not supported
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
23
24
  */
24
25
  audio?: boolean | undefined;
25
26
  /**
26
- * 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
27
35
  *
28
- * Supported durations depend on the chosen model:
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
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
36
+ * Legacy models:
37
+ * * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
37
38
  */
38
39
  endSeconds: number;
39
40
  /**
40
41
  * `height` is deprecated and no longer influences the output video's resolution.
41
42
  *
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
43
  * This field is retained only for backward compatibility and will be removed in a future release.
47
44
  */
48
45
  height?: number | null | undefined;
49
46
  /**
50
47
  * The AI model to use for video generation.
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.
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`.
52
50
  * * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
53
51
  * * `seedance`: Great for fast iteration and start/end frame
54
52
  * * `kling-2.5`: Great for motion, action, and camera control
55
53
  * * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
56
54
  * * `sora-2`: Great for story-telling, dialogue & creativity
57
55
  * * `veo3.1`: Great for realism, polish, & prompt adherence
56
+ *
57
+ * Legacy models:
58
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`.
59
61
  */
60
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;
61
63
  /**
@@ -63,16 +65,16 @@ export type CreateRequest = {
63
65
  */
64
66
  name?: string | undefined;
65
67
  /**
66
- * Controls the output video resolution. Defaults to `720p` if not specified.
68
+ * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
67
69
  *
68
- * * **Default**: Supports `480p`, `720p`, and `1080p`.
69
- * * **ltx-2**: Supports `480p`, `720p`, `1080p`.
70
- * * **seedance**: Supports `480p`, `720p`, `1080p`.
71
- * * **kling-2.5**: Supports `720p`, `1080p`.
72
- * * **kling-3.0**: Supports `720p`, `1080p`.
73
- * * **sora-2**: Supports `720p`.
74
- * * **veo3.1**: Supports `720p`, `1080p`.
75
- * * **kling-1.6**: Supports `720p`, `1080p`.
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.
76
78
  */
77
79
  resolution?: ("1080p" | "480p" | "720p") | undefined;
78
80
  /**
@@ -82,10 +84,6 @@ export type CreateRequest = {
82
84
  /**
83
85
  * `width` is deprecated and no longer influences the output video's resolution.
84
86
  *
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
87
  * This field is retained only for backward compatibility and will be removed in a future release.
90
88
  */
91
89
  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,61 @@ 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`.
10
- * * **seedance**: Supports `9:16`, `16:9`, `1:1`.
11
- * * **kling-2.5**: Supports `9:16`, `16:9`, `1:1`.
12
- * * **kling-3.0**: Supports `9:16`, `16:9`, `1:1`.
13
- * * **sora-2**: Supports `9:16`, `16:9`.
14
- * * **veo3.1**: Supports `9:16`, `16:9`.
15
- * * **kling-1.6**: Supports `9:16`, `16:9`, `1:1`.
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
- * * **ltx-2**: Always included (cannot be disabled)
23
- * * **seedance**: Not supported
24
- * * **kling-2.5**: Always included (cannot be disabled)
25
- * * **kling-3.0**: Toggle-able (can enable/disable)
26
- * * **sora-2**: Always included (cannot be disabled)
27
- * * **veo3.1**: Toggle-able (can enable/disable)
28
- * * **kling-1.6**: Not supported
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
29
33
  */
30
34
  audio?: boolean | undefined;
31
35
  /**
32
- * 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
33
44
  *
34
- * Supported durations depend on the chosen model:
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
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
45
+ * Legacy models:
46
+ * * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
43
47
  */
44
48
  endSeconds: number;
45
49
  /**
46
50
  * The AI model to use for video generation.
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.
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`.
48
53
  * * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
49
54
  * * `seedance`: Great for fast iteration and start/end frame
50
55
  * * `kling-2.5`: Great for motion, action, and camera control
51
56
  * * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
52
57
  * * `sora-2`: Great for story-telling, dialogue & creativity
53
58
  * * `veo3.1`: Great for realism, polish, & prompt adherence
59
+ *
60
+ * Legacy models:
54
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`.
55
64
  */
56
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;
57
66
  /**
@@ -63,16 +72,16 @@ export type CreateRequest = {
63
72
  */
64
73
  orientation?: ("landscape" | "portrait" | "square") | undefined;
65
74
  /**
66
- * Controls the output video resolution. Defaults to `720p` if not specified.
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.
67
83
  *
68
- * * **Default**: Supports `480p`, `720p`, and `1080p`.
69
- * * **ltx-2**: Supports `480p`, `720p`, `1080p`.
70
- * * **seedance**: Supports `480p`, `720p`, `1080p`.
71
- * * **kling-2.5**: Supports `720p`, `1080p`.
72
- * * **kling-3.0**: Supports `720p`, `1080p`.
73
- * * **sora-2**: Supports `720p`.
74
- * * **veo3.1**: Supports `720p`, `1080p`.
75
- * * **kling-1.6**: Supports `720p`, `1080p`.
84
+ * * **`kling-1.6`**: Supports 720p, 1080p.
76
85
  */
77
86
  resolution?: ("1080p" | "480p" | "720p") | undefined;
78
87
  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;
@@ -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
- * * `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.
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,13 @@
1
1
  /**
2
- * Controls the output video resolution. Defaults to `720p` if not specified.
2
+ * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
3
3
  *
4
- * * **Default**: Supports `480p`, `720p`, and `1080p`.
5
- * * **ltx-2**: Supports `480p`, `720p`, `1080p`.
6
- * * **seedance**: Supports `480p`, `720p`, `1080p`.
7
- * * **kling-2.5**: Supports `720p`, `1080p`.
8
- * * **kling-3.0**: Supports `720p`, `1080p`.
9
- * * **sora-2**: Supports `720p`.
10
- * * **veo3.1**: Supports `720p`, `1080p`.
11
- * * **kling-1.6**: Supports `720p`, `1080p`.
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.
12
12
  */
13
13
  export type V1ImageToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
@@ -13,49 +13,51 @@ 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)
17
- * * **seedance**: Not supported
18
- * * **kling-2.5**: Always included (cannot be disabled)
19
- * * **kling-3.0**: Toggle-able (can enable/disable)
20
- * * **sora-2**: Always included (cannot be disabled)
21
- * * **veo3.1**: Toggle-able (can enable/disable)
22
- * * **kling-1.6**: Not supported
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
23
24
  */
24
25
  audio?: boolean | undefined;
25
26
  /**
26
- * 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
27
35
  *
28
- * Supported durations depend on the chosen model:
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
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
36
+ * Legacy models:
37
+ * * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
37
38
  */
38
39
  endSeconds: number;
39
40
  /**
40
41
  * `height` is deprecated and no longer influences the output video's resolution.
41
42
  *
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
43
  * This field is retained only for backward compatibility and will be removed in a future release.
47
44
  */
48
45
  height?: number | null | undefined;
49
46
  /**
50
47
  * The AI model to use for video generation.
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.
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`.
52
50
  * * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
53
51
  * * `seedance`: Great for fast iteration and start/end frame
54
52
  * * `kling-2.5`: Great for motion, action, and camera control
55
53
  * * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
56
54
  * * `sora-2`: Great for story-telling, dialogue & creativity
57
55
  * * `veo3.1`: Great for realism, polish, & prompt adherence
56
+ *
57
+ * Legacy models:
58
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`.
59
61
  */
60
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;
61
63
  /**
@@ -63,16 +65,16 @@ export type V1ImageToVideoCreateBody = {
63
65
  */
64
66
  name?: string | undefined;
65
67
  /**
66
- * Controls the output video resolution. Defaults to `720p` if not specified.
68
+ * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
67
69
  *
68
- * * **Default**: Supports `480p`, `720p`, and `1080p`.
69
- * * **ltx-2**: Supports `480p`, `720p`, `1080p`.
70
- * * **seedance**: Supports `480p`, `720p`, `1080p`.
71
- * * **kling-2.5**: Supports `720p`, `1080p`.
72
- * * **kling-3.0**: Supports `720p`, `1080p`.
73
- * * **sora-2**: Supports `720p`.
74
- * * **veo3.1**: Supports `720p`, `1080p`.
75
- * * **kling-1.6**: Supports `720p`, `1080p`.
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.
76
78
  */
77
79
  resolution?: ("1080p" | "480p" | "720p") | undefined;
78
80
  /**
@@ -82,10 +84,6 @@ export type V1ImageToVideoCreateBody = {
82
84
  /**
83
85
  * `width` is deprecated and no longer influences the output video's resolution.
84
86
  *
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
87
  * This field is retained only for backward compatibility and will be removed in a future release.
90
88
  */
91
89
  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
- * * **ltx-2**: Supports `9:16`, `16:9`, `1:1`.
4
- * * **seedance**: Supports `9:16`, `16:9`, `1:1`.
5
- * * **kling-2.5**: Supports `9:16`, `16:9`, `1:1`.
6
- * * **kling-3.0**: Supports `9:16`, `16:9`, `1:1`.
7
- * * **sora-2**: Supports `9:16`, `16:9`.
8
- * * **veo3.1**: Supports `9:16`, `16:9`.
9
- * * **kling-1.6**: Supports `9:16`, `16:9`, `1:1`.
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
- * * `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.
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,13 @@
1
1
  /**
2
- * Controls the output video resolution. Defaults to `720p` if not specified.
2
+ * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
3
3
  *
4
- * * **Default**: Supports `480p`, `720p`, and `1080p`.
5
- * * **ltx-2**: Supports `480p`, `720p`, `1080p`.
6
- * * **seedance**: Supports `480p`, `720p`, `1080p`.
7
- * * **kling-2.5**: Supports `720p`, `1080p`.
8
- * * **kling-3.0**: Supports `720p`, `1080p`.
9
- * * **sora-2**: Supports `720p`.
10
- * * **veo3.1**: Supports `720p`, `1080p`.
11
- * * **kling-1.6**: Supports `720p`, `1080p`.
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.
12
12
  */
13
13
  export type V1TextToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
@@ -6,52 +6,61 @@ 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`.
10
- * * **seedance**: Supports `9:16`, `16:9`, `1:1`.
11
- * * **kling-2.5**: Supports `9:16`, `16:9`, `1:1`.
12
- * * **kling-3.0**: Supports `9:16`, `16:9`, `1:1`.
13
- * * **sora-2**: Supports `9:16`, `16:9`.
14
- * * **veo3.1**: Supports `9:16`, `16:9`.
15
- * * **kling-1.6**: Supports `9:16`, `16:9`, `1:1`.
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
- * * **ltx-2**: Always included (cannot be disabled)
23
- * * **seedance**: Not supported
24
- * * **kling-2.5**: Always included (cannot be disabled)
25
- * * **kling-3.0**: Toggle-able (can enable/disable)
26
- * * **sora-2**: Always included (cannot be disabled)
27
- * * **veo3.1**: Toggle-able (can enable/disable)
28
- * * **kling-1.6**: Not supported
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
29
33
  */
30
34
  audio?: boolean | undefined;
31
35
  /**
32
- * 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
33
44
  *
34
- * Supported durations depend on the chosen model:
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
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
45
+ * Legacy models:
46
+ * * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
43
47
  */
44
48
  endSeconds: number;
45
49
  /**
46
50
  * The AI model to use for video generation.
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.
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`.
48
53
  * * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
49
54
  * * `seedance`: Great for fast iteration and start/end frame
50
55
  * * `kling-2.5`: Great for motion, action, and camera control
51
56
  * * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
52
57
  * * `sora-2`: Great for story-telling, dialogue & creativity
53
58
  * * `veo3.1`: Great for realism, polish, & prompt adherence
59
+ *
60
+ * Legacy models:
54
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`.
55
64
  */
56
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;
57
66
  /**
@@ -63,16 +72,16 @@ export type V1TextToVideoCreateBody = {
63
72
  */
64
73
  orientation?: ("landscape" | "portrait" | "square") | undefined;
65
74
  /**
66
- * Controls the output video resolution. Defaults to `720p` if not specified.
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.
67
83
  *
68
- * * **Default**: Supports `480p`, `720p`, and `1080p`.
69
- * * **ltx-2**: Supports `480p`, `720p`, `1080p`.
70
- * * **seedance**: Supports `480p`, `720p`, `1080p`.
71
- * * **kling-2.5**: Supports `720p`, `1080p`.
72
- * * **kling-3.0**: Supports `720p`, `1080p`.
73
- * * **sora-2**: Supports `720p`.
74
- * * **veo3.1**: Supports `720p`, `1080p`.
75
- * * **kling-1.6**: Supports `720p`, `1080p`.
84
+ * * **`kling-1.6`**: Supports 720p, 1080p.
76
85
  */
77
86
  resolution?: ("1080p" | "480p" | "720p") | undefined;
78
87
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.53.0",
3
+ "version": "0.53.1",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {