magic-hour 0.60.0 → 0.62.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.
Files changed (53) hide show
  1. package/README.md +5 -0
  2. package/dist/environment.d.ts +1 -1
  3. package/dist/environment.js +1 -1
  4. package/dist/resources/v1/ai-image-editor/request-types.d.ts +7 -2
  5. package/dist/resources/v1/ai-image-editor/request-types.js +2 -0
  6. package/dist/resources/v1/ai-image-generator/request-types.d.ts +8 -3
  7. package/dist/resources/v1/ai-image-generator/request-types.js +2 -0
  8. package/dist/resources/v1/body-swap/index.d.ts +2 -0
  9. package/dist/resources/v1/body-swap/index.js +5 -0
  10. package/dist/resources/v1/body-swap/request-types.d.ts +33 -0
  11. package/dist/resources/v1/body-swap/request-types.js +76 -0
  12. package/dist/resources/v1/body-swap/resource-client.d.ts +64 -0
  13. package/dist/resources/v1/body-swap/resource-client.js +105 -0
  14. package/dist/resources/v1/files/upload-urls/resource-client.d.ts +1 -1
  15. package/dist/resources/v1/files/upload-urls/resource-client.js +1 -1
  16. package/dist/resources/v1/image-to-video/request-types.d.ts +27 -36
  17. package/dist/resources/v1/image-to-video/request-types.js +4 -2
  18. package/dist/resources/v1/index.d.ts +1 -0
  19. package/dist/resources/v1/index.js +2 -1
  20. package/dist/resources/v1/resource-client.d.ts +3 -0
  21. package/dist/resources/v1/resource-client.js +5 -0
  22. package/dist/resources/v1/text-to-video/request-types.d.ts +32 -43
  23. package/dist/resources/v1/text-to-video/request-types.js +4 -2
  24. package/dist/types/index.d.ts +4 -0
  25. package/dist/types/v1-ai-image-editor-create-body-model-enum.d.ts +5 -1
  26. package/dist/types/v1-ai-image-editor-create-body-resolution-enum.d.ts +1 -0
  27. package/dist/types/v1-ai-image-editor-create-body.d.ts +7 -2
  28. package/dist/types/v1-ai-image-editor-create-body.js +2 -0
  29. package/dist/types/v1-ai-image-generator-create-body-model-enum.d.ts +6 -2
  30. package/dist/types/v1-ai-image-generator-create-body-resolution-enum.d.ts +1 -0
  31. package/dist/types/v1-ai-image-generator-create-body.d.ts +8 -3
  32. package/dist/types/v1-ai-image-generator-create-body.js +2 -0
  33. package/dist/types/v1-body-swap-create-body-assets.d.ts +37 -0
  34. package/dist/types/v1-body-swap-create-body-assets.js +71 -0
  35. package/dist/types/v1-body-swap-create-body-resolution-enum.d.ts +4 -0
  36. package/dist/types/v1-body-swap-create-body-resolution-enum.js +2 -0
  37. package/dist/types/v1-body-swap-create-body.d.ts +33 -0
  38. package/dist/types/v1-body-swap-create-body.js +76 -0
  39. package/dist/types/v1-body-swap-create-response.d.ts +34 -0
  40. package/dist/types/v1-body-swap-create-response.js +75 -0
  41. package/dist/types/v1-files-upload-urls-create-body-items-item.d.ts +1 -1
  42. package/dist/types/v1-image-to-video-create-body-assets.d.ts +5 -7
  43. package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +7 -10
  44. package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +6 -8
  45. package/dist/types/v1-image-to-video-create-body.d.ts +27 -36
  46. package/dist/types/v1-image-to-video-create-body.js +4 -2
  47. package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +5 -7
  48. package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +7 -10
  49. package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +6 -8
  50. package/dist/types/v1-text-to-video-create-body.d.ts +32 -43
  51. package/dist/types/v1-text-to-video-create-body.js +4 -2
  52. package/dist/types/v1-video-projects-get-response.d.ts +1 -1
  53. package/package.json +1 -1
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Schemas$V1BodySwapCreateResponse = void 0;
37
+ const make_api_request_js_1 = require("make-api-request-js");
38
+ const z = __importStar(require("zod"));
39
+ /**
40
+ * Takes network data, validates it, and transforms keys to match typescript object V1BodySwapCreateResponse
41
+ */
42
+ const SchemaIn$V1BodySwapCreateResponse = z
43
+ .object({
44
+ credits_charged: z.number().int(),
45
+ frame_cost: z.number().int(),
46
+ id: z.string(),
47
+ })
48
+ .transform((obj) => {
49
+ return (0, make_api_request_js_1.zodTransform)(obj, {
50
+ credits_charged: "creditsCharged",
51
+ frame_cost: "frameCost",
52
+ id: "id",
53
+ });
54
+ });
55
+ /**
56
+ * @internal
57
+ * Takes typescript data, validates it, and maps keys to match the expected external object External$V1BodySwapCreateResponse
58
+ */
59
+ const SchemaOut$V1BodySwapCreateResponse = z
60
+ .object({
61
+ creditsCharged: z.number().int(),
62
+ frameCost: z.number().int(),
63
+ id: z.string(),
64
+ })
65
+ .transform((obj) => {
66
+ return (0, make_api_request_js_1.zodTransform)(obj, {
67
+ creditsCharged: "credits_charged",
68
+ frameCost: "frame_cost",
69
+ id: "id",
70
+ });
71
+ });
72
+ exports.Schemas$V1BodySwapCreateResponse = {
73
+ in: SchemaIn$V1BodySwapCreateResponse,
74
+ out: SchemaOut$V1BodySwapCreateResponse,
75
+ };
@@ -4,7 +4,7 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1FilesUploadUrlsCreateBodyItemsItem = {
6
6
  /**
7
- * The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,m4a,png,jpg,jpeg,heic,webp,avif,jp2,tiff,bmp,gif,webp,webm
7
+ * The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,m4a,png,jpg,jpeg,heic,heif,webp,avif,jp2,tiff,bmp,gif,webp,webm
8
8
  */
9
9
  extension: string;
10
10
  /**
@@ -6,18 +6,16 @@ export type V1ImageToVideoCreateBodyAssets = {
6
6
  /**
7
7
  * The image to use as the last frame of the video.
8
8
  *
9
- * * **`ltx-2`**: Not supported
9
+ * * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
10
10
  * * **`wan-2.2`**: Not supported
11
+ * * **`kling-2.5`**: Supports 1080p.
12
+ * * **`kling-3.0`**: Supports 720p, 1080p, 4k.
13
+ * * **`veo3.1-lite`**: Not supported
14
+ * * **`veo3.1`**: Not supported
11
15
  * * **`seedance`**: Supports 480p, 720p, 1080p.
12
16
  * * **`seedance-2.0`**: Supports 480p, 720p.
13
- * * **`kling-2.5`**: Supports 1080p.
14
- * * **`kling-3.0`**: Supports 1080p.
15
17
  * * **`sora-2`**: Not supported
16
- * * **`veo3.1`**: Not supported
17
- * * **`veo3.1-lite`**: Not supported
18
18
  *
19
- * Legacy models:
20
- * * **`kling-1.6`**: Not supported
21
19
  */
22
20
  endImageFilePath?: string | undefined;
23
21
  /**
@@ -1,20 +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-3.0`. For free tiers, it defaults to `ltx-2`.
5
- * * `ltx-2`: Fast iteration with audio and lip-sync
4
+ * * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2.3`.
5
+ * * `ltx-2.3`: Fast iteration with audio, lip-sync, and end frame
6
6
  * * `wan-2.2`: Fast, strong visuals with effects
7
- * * `seedance`: Fast iteration and start/end frames
8
- * * `seedance-2.0`: State-of-the-art quality and consistency
9
7
  * * `kling-2.5`: Motion, action, and camera control
10
8
  * * `kling-3.0`: Cinematic, multi-scene storytelling
11
- * * `sora-2`: Story-first concepts and creativity
9
+ * * `veo3.1-lite`: Fast, affordable, high-quality
12
10
  * * `veo3.1`: Realistic visuals and prompt adherence
13
- * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation.
14
- *
15
- * Legacy models:
16
- * * `kling-1.6`: Reliable baseline with smooth motion
11
+ * * `seedance`: Fast iteration and start/end frames
12
+ * * `seedance-2.0`: State-of-the-art quality and consistency
13
+ * * `sora-2`: Story-first concepts and creativity
17
14
  *
18
15
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
19
16
  */
20
- export type V1ImageToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2";
17
+ export type V1ImageToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2";
@@ -1,17 +1,15 @@
1
1
  /**
2
2
  * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
3
3
  *
4
- * * **`ltx-2`**: Supports 480p, 720p, 1080p.
4
+ * * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
5
5
  * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
6
+ * * **`kling-2.5`**: Supports 720p, 1080p.
7
+ * * **`kling-3.0`**: Supports 720p, 1080p, 4k.
8
+ * * **`veo3.1-lite`**: Supports 720p, 1080p.
9
+ * * **`veo3.1`**: Supports 720p, 1080p.
6
10
  * * **`seedance`**: Supports 480p, 720p, 1080p.
7
11
  * * **`seedance-2.0`**: Supports 480p, 720p.
8
- * * **`kling-2.5`**: Supports 720p, 1080p.
9
- * * **`kling-3.0`**: Supports 720p, 1080p.
10
12
  * * **`sora-2`**: Supports 720p.
11
- * * **`veo3.1`**: Supports 720p, 1080p.
12
- * * **`veo3.1-lite`**: Supports 720p, 1080p.
13
13
  *
14
- * Legacy models:
15
- * * **`kling-1.6`**: Supports 720p, 1080p.
16
14
  */
17
- export type V1ImageToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
15
+ export type V1ImageToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "4k" | "720p";
@@ -13,35 +13,31 @@ 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`**: Automatically included with no extra credits
16
+ * * **`ltx-2.3`**: Toggle-able: no additional credits for audio
17
17
  * * **`wan-2.2`**: Not supported
18
+ * * **`kling-2.5`**: Toggle-able: no additional credits for audio
19
+ * * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
20
+ * * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
21
+ * * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
18
22
  * * **`seedance`**: Not supported
19
- * * **`seedance-2.0`**: Not supported
20
- * * **`kling-2.5`**: Automatically included with no extra credits
21
- * * **`kling-3.0`**: Toggle-able (can enable/disable)
22
- * * **`sora-2`**: Automatically included with no extra credits
23
- * * **`veo3.1`**: Toggle-able (can enable/disable)
24
- * * **`veo3.1-lite`**: Toggle-able (can enable/disable)
23
+ * * **`seedance-2.0`**: Toggle-able: no additional credits for audio
24
+ * * **`sora-2`**: Toggle-able: no additional credits for audio
25
25
  *
26
- * Legacy models:
27
- * * **`kling-1.6`**: Not supported
28
26
  */
29
27
  audio?: boolean | undefined;
30
28
  /**
31
29
  * The total duration of the output video in seconds. Supported durations depend on the chosen model:
32
30
  *
33
- * * **`ltx-2`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
31
+ * * **`ltx-2.3`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
34
32
  * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
35
- * * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
36
- * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
37
33
  * * **`kling-2.5`**: 5, 10
38
34
  * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
39
- * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
40
- * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
41
35
  * * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56
36
+ * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
37
+ * * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
38
+ * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
39
+ * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
42
40
  *
43
- * Legacy models:
44
- * * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
45
41
  */
46
42
  endSeconds: number;
47
43
  /**
@@ -53,23 +49,20 @@ export type V1ImageToVideoCreateBody = {
53
49
  /**
54
50
  * The AI model to use for video generation.
55
51
  *
56
- * * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2`.
57
- * * `ltx-2`: Fast iteration with audio and lip-sync
52
+ * * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2.3`.
53
+ * * `ltx-2.3`: Fast iteration with audio, lip-sync, and end frame
58
54
  * * `wan-2.2`: Fast, strong visuals with effects
59
- * * `seedance`: Fast iteration and start/end frames
60
- * * `seedance-2.0`: State-of-the-art quality and consistency
61
55
  * * `kling-2.5`: Motion, action, and camera control
62
56
  * * `kling-3.0`: Cinematic, multi-scene storytelling
63
- * * `sora-2`: Story-first concepts and creativity
57
+ * * `veo3.1-lite`: Fast, affordable, high-quality
64
58
  * * `veo3.1`: Realistic visuals and prompt adherence
65
- * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation.
66
- *
67
- * Legacy models:
68
- * * `kling-1.6`: Reliable baseline with smooth motion
59
+ * * `seedance`: Fast iteration and start/end frames
60
+ * * `seedance-2.0`: State-of-the-art quality and consistency
61
+ * * `sora-2`: Story-first concepts and creativity
69
62
  *
70
63
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
71
64
  */
72
- model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
65
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
73
66
  /**
74
67
  * Give your video a custom name for easy identification.
75
68
  */
@@ -77,20 +70,18 @@ export type V1ImageToVideoCreateBody = {
77
70
  /**
78
71
  * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
79
72
  *
80
- * * **`ltx-2`**: Supports 480p, 720p, 1080p.
73
+ * * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
81
74
  * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
75
+ * * **`kling-2.5`**: Supports 720p, 1080p.
76
+ * * **`kling-3.0`**: Supports 720p, 1080p, 4k.
77
+ * * **`veo3.1-lite`**: Supports 720p, 1080p.
78
+ * * **`veo3.1`**: Supports 720p, 1080p.
82
79
  * * **`seedance`**: Supports 480p, 720p, 1080p.
83
80
  * * **`seedance-2.0`**: Supports 480p, 720p.
84
- * * **`kling-2.5`**: Supports 720p, 1080p.
85
- * * **`kling-3.0`**: Supports 720p, 1080p.
86
81
  * * **`sora-2`**: Supports 720p.
87
- * * **`veo3.1`**: Supports 720p, 1080p.
88
- * * **`veo3.1-lite`**: Supports 720p, 1080p.
89
82
  *
90
- * Legacy models:
91
- * * **`kling-1.6`**: Supports 720p, 1080p.
92
83
  */
93
- resolution?: ("1080p" | "480p" | "720p") | undefined;
84
+ resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
94
85
  /**
95
86
  * Attributed used to dictate the style of the output
96
87
  */
@@ -112,9 +103,9 @@ export type External$V1ImageToVideoCreateBody = {
112
103
  audio?: boolean | undefined;
113
104
  end_seconds: number;
114
105
  height?: number | null | undefined;
115
- model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
106
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
116
107
  name?: string | undefined;
117
- resolution?: ("1080p" | "480p" | "720p") | undefined;
108
+ resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
118
109
  style?: External$V1ImageToVideoCreateBodyStyle | undefined;
119
110
  width?: number | null | undefined;
120
111
  };
@@ -55,6 +55,7 @@ const SchemaIn$V1ImageToVideoCreateBody = z
55
55
  "kling-2.5-audio",
56
56
  "kling-3.0",
57
57
  "ltx-2",
58
+ "ltx-2.3",
58
59
  "seedance",
59
60
  "seedance-2.0",
60
61
  "sora-2",
@@ -65,7 +66,7 @@ const SchemaIn$V1ImageToVideoCreateBody = z
65
66
  ])
66
67
  .optional(),
67
68
  name: z.string().optional(),
68
- resolution: z.enum(["1080p", "480p", "720p"]).optional(),
69
+ resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
69
70
  style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.in.optional(),
70
71
  width: z.number().int().nullable().optional(),
71
72
  })
@@ -100,6 +101,7 @@ const SchemaOut$V1ImageToVideoCreateBody = z
100
101
  "kling-2.5-audio",
101
102
  "kling-3.0",
102
103
  "ltx-2",
104
+ "ltx-2.3",
103
105
  "seedance",
104
106
  "seedance-2.0",
105
107
  "sora-2",
@@ -110,7 +112,7 @@ const SchemaOut$V1ImageToVideoCreateBody = z
110
112
  ])
111
113
  .optional(),
112
114
  name: z.string().optional(),
113
- resolution: z.enum(["1080p", "480p", "720p"]).optional(),
115
+ resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
114
116
  style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.out.optional(),
115
117
  width: z.number().int().nullable().optional(),
116
118
  })
@@ -1,17 +1,15 @@
1
1
  /**
2
2
  * Determines the aspect ratio of the output video.
3
3
  *
4
- * * **`ltx-2`**: Supports 9:16, 16:9, 1:1.
4
+ * * **`ltx-2.3`**: Supports 9:16, 16:9, 1:1.
5
5
  * * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
6
- * * **`seedance`**: Supports 9:16, 16:9, 1:1.
7
- * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
8
6
  * * **`kling-2.5`**: Supports 9:16, 16:9, 1:1.
9
7
  * * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
10
- * * **`sora-2`**: Supports 9:16, 16:9.
11
- * * **`veo3.1`**: Supports 9:16, 16:9.
12
8
  * * **`veo3.1-lite`**: Supports 9:16, 16:9.
9
+ * * **`veo3.1`**: Supports 9:16, 16:9.
10
+ * * **`seedance`**: Supports 9:16, 16:9, 1:1.
11
+ * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
12
+ * * **`sora-2`**: Supports 9:16, 16:9.
13
13
  *
14
- * Legacy models:
15
- * * **`kling-1.6`**: Supports 9:16, 16:9, 1:1.
16
14
  */
17
15
  export type V1TextToVideoCreateBodyAspectRatioEnum = "16:9" | "1:1" | "9:16";
@@ -1,20 +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-3.0`. For free tiers, it defaults to `ltx-2`.
5
- * * `ltx-2`: Fast iteration with audio and lip-sync
4
+ * * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2.3`.
5
+ * * `ltx-2.3`: Fast iteration with audio, lip-sync, and end frame
6
6
  * * `wan-2.2`: Fast, strong visuals with effects
7
- * * `seedance`: Fast iteration and start/end frames
8
- * * `seedance-2.0`: State-of-the-art quality and consistency
9
7
  * * `kling-2.5`: Motion, action, and camera control
10
8
  * * `kling-3.0`: Cinematic, multi-scene storytelling
11
- * * `sora-2`: Story-first concepts and creativity
9
+ * * `veo3.1-lite`: Fast, affordable, high-quality
12
10
  * * `veo3.1`: Realistic visuals and prompt adherence
13
- * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation.
14
- *
15
- * Legacy models:
16
- * * `kling-1.6`: Reliable baseline with smooth motion
11
+ * * `seedance`: Fast iteration and start/end frames
12
+ * * `seedance-2.0`: State-of-the-art quality and consistency
13
+ * * `sora-2`: Story-first concepts and creativity
17
14
  *
18
15
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
19
16
  */
20
- export type V1TextToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2";
17
+ export type V1TextToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2";
@@ -1,17 +1,15 @@
1
1
  /**
2
2
  * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
3
3
  *
4
- * * **`ltx-2`**: Supports 480p, 720p, 1080p.
4
+ * * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
5
5
  * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
6
+ * * **`kling-2.5`**: Supports 720p, 1080p.
7
+ * * **`kling-3.0`**: Supports 720p, 1080p, 4k.
8
+ * * **`veo3.1-lite`**: Supports 720p, 1080p.
9
+ * * **`veo3.1`**: Supports 720p, 1080p.
6
10
  * * **`seedance`**: Supports 480p, 720p, 1080p.
7
11
  * * **`seedance-2.0`**: Supports 480p, 720p.
8
- * * **`kling-2.5`**: Supports 720p, 1080p.
9
- * * **`kling-3.0`**: Supports 720p, 1080p.
10
12
  * * **`sora-2`**: Supports 720p.
11
- * * **`veo3.1`**: Supports 720p, 1080p.
12
- * * **`veo3.1-lite`**: Supports 720p, 1080p.
13
13
  *
14
- * Legacy models:
15
- * * **`kling-1.6`**: Supports 720p, 1080p.
16
14
  */
17
- export type V1TextToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
15
+ export type V1TextToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "4k" | "720p";
@@ -7,75 +7,66 @@ export type V1TextToVideoCreateBody = {
7
7
  /**
8
8
  * Determines the aspect ratio of the output video.
9
9
  *
10
- * * **`ltx-2`**: Supports 9:16, 16:9, 1:1.
10
+ * * **`ltx-2.3`**: Supports 9:16, 16:9, 1:1.
11
11
  * * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
12
- * * **`seedance`**: Supports 9:16, 16:9, 1:1.
13
- * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
14
12
  * * **`kling-2.5`**: Supports 9:16, 16:9, 1:1.
15
13
  * * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
16
- * * **`sora-2`**: Supports 9:16, 16:9.
17
- * * **`veo3.1`**: Supports 9:16, 16:9.
18
14
  * * **`veo3.1-lite`**: Supports 9:16, 16:9.
15
+ * * **`veo3.1`**: Supports 9:16, 16:9.
16
+ * * **`seedance`**: Supports 9:16, 16:9, 1:1.
17
+ * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
18
+ * * **`sora-2`**: Supports 9:16, 16:9.
19
19
  *
20
- * Legacy models:
21
- * * **`kling-1.6`**: Supports 9:16, 16:9, 1:1.
22
20
  */
23
21
  aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
24
22
  /**
25
23
  * Whether to include audio in the video. Defaults to `false` if not specified.
26
24
  *
27
25
  * Audio support varies by model:
28
- * * **`ltx-2`**: Automatically included with no extra credits
26
+ * * **`ltx-2.3`**: Toggle-able: no additional credits for audio
29
27
  * * **`wan-2.2`**: Not supported
28
+ * * **`kling-2.5`**: Toggle-able: no additional credits for audio
29
+ * * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
30
+ * * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
31
+ * * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
30
32
  * * **`seedance`**: Not supported
31
- * * **`seedance-2.0`**: Not supported
32
- * * **`kling-2.5`**: Automatically included with no extra credits
33
- * * **`kling-3.0`**: Toggle-able (can enable/disable)
34
- * * **`sora-2`**: Automatically included with no extra credits
35
- * * **`veo3.1`**: Toggle-able (can enable/disable)
36
- * * **`veo3.1-lite`**: Toggle-able (can enable/disable)
33
+ * * **`seedance-2.0`**: Toggle-able: no additional credits for audio
34
+ * * **`sora-2`**: Toggle-able: no additional credits for audio
37
35
  *
38
- * Legacy models:
39
- * * **`kling-1.6`**: Not supported
40
36
  */
41
37
  audio?: boolean | undefined;
42
38
  /**
43
39
  * The total duration of the output video in seconds. Supported durations depend on the chosen model:
44
40
  *
45
- * * **`ltx-2`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
41
+ * * **`ltx-2.3`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
46
42
  * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
47
- * * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
48
- * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
49
43
  * * **`kling-2.5`**: 5, 10
50
44
  * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
51
- * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
52
- * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
53
45
  * * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56
46
+ * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
47
+ * * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
48
+ * * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
49
+ * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
54
50
  *
55
- * Legacy models:
56
- * * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
57
51
  */
58
52
  endSeconds: number;
59
53
  /**
60
54
  * The AI model to use for video generation.
61
55
  *
62
- * * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2`.
63
- * * `ltx-2`: Fast iteration with audio and lip-sync
56
+ * * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2.3`.
57
+ * * `ltx-2.3`: Fast iteration with audio, lip-sync, and end frame
64
58
  * * `wan-2.2`: Fast, strong visuals with effects
65
- * * `seedance`: Fast iteration and start/end frames
66
- * * `seedance-2.0`: State-of-the-art quality and consistency
67
59
  * * `kling-2.5`: Motion, action, and camera control
68
60
  * * `kling-3.0`: Cinematic, multi-scene storytelling
69
- * * `sora-2`: Story-first concepts and creativity
61
+ * * `veo3.1-lite`: Fast, affordable, high-quality
70
62
  * * `veo3.1`: Realistic visuals and prompt adherence
71
- * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation.
72
- *
73
- * Legacy models:
74
- * * `kling-1.6`: Reliable baseline with smooth motion
63
+ * * `seedance`: Fast iteration and start/end frames
64
+ * * `seedance-2.0`: State-of-the-art quality and consistency
65
+ * * `sora-2`: Story-first concepts and creativity
75
66
  *
76
67
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
77
68
  */
78
- model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
69
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
79
70
  /**
80
71
  * Give your video a custom name for easy identification.
81
72
  */
@@ -87,20 +78,18 @@ export type V1TextToVideoCreateBody = {
87
78
  /**
88
79
  * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
89
80
  *
90
- * * **`ltx-2`**: Supports 480p, 720p, 1080p.
81
+ * * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
91
82
  * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
83
+ * * **`kling-2.5`**: Supports 720p, 1080p.
84
+ * * **`kling-3.0`**: Supports 720p, 1080p, 4k.
85
+ * * **`veo3.1-lite`**: Supports 720p, 1080p.
86
+ * * **`veo3.1`**: Supports 720p, 1080p.
92
87
  * * **`seedance`**: Supports 480p, 720p, 1080p.
93
88
  * * **`seedance-2.0`**: Supports 480p, 720p.
94
- * * **`kling-2.5`**: Supports 720p, 1080p.
95
- * * **`kling-3.0`**: Supports 720p, 1080p.
96
89
  * * **`sora-2`**: Supports 720p.
97
- * * **`veo3.1`**: Supports 720p, 1080p.
98
- * * **`veo3.1-lite`**: Supports 720p, 1080p.
99
90
  *
100
- * Legacy models:
101
- * * **`kling-1.6`**: Supports 720p, 1080p.
102
91
  */
103
- resolution?: ("1080p" | "480p" | "720p") | undefined;
92
+ resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
104
93
  style: V1TextToVideoCreateBodyStyle;
105
94
  };
106
95
  /**
@@ -112,10 +101,10 @@ export type External$V1TextToVideoCreateBody = {
112
101
  aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
113
102
  audio?: boolean | undefined;
114
103
  end_seconds: number;
115
- model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
104
+ model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
116
105
  name?: string | undefined;
117
106
  orientation?: ("landscape" | "portrait" | "square") | undefined;
118
- resolution?: ("1080p" | "480p" | "720p") | undefined;
107
+ resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
119
108
  style: External$V1TextToVideoCreateBodyStyle;
120
109
  };
121
110
  export declare const Schemas$V1TextToVideoCreateBody: {
@@ -53,6 +53,7 @@ const SchemaIn$V1TextToVideoCreateBody = z
53
53
  "kling-2.5-audio",
54
54
  "kling-3.0",
55
55
  "ltx-2",
56
+ "ltx-2.3",
56
57
  "seedance",
57
58
  "seedance-2.0",
58
59
  "sora-2",
@@ -64,7 +65,7 @@ const SchemaIn$V1TextToVideoCreateBody = z
64
65
  .optional(),
65
66
  name: z.string().optional(),
66
67
  orientation: z.enum(["landscape", "portrait", "square"]).optional(),
67
- resolution: z.enum(["1080p", "480p", "720p"]).optional(),
68
+ resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
68
69
  style: v1_text_to_video_create_body_style_1.Schemas$V1TextToVideoCreateBodyStyle.in,
69
70
  })
70
71
  .transform((obj) => {
@@ -96,6 +97,7 @@ const SchemaOut$V1TextToVideoCreateBody = z
96
97
  "kling-2.5-audio",
97
98
  "kling-3.0",
98
99
  "ltx-2",
100
+ "ltx-2.3",
99
101
  "seedance",
100
102
  "seedance-2.0",
101
103
  "sora-2",
@@ -107,7 +109,7 @@ const SchemaOut$V1TextToVideoCreateBody = z
107
109
  .optional(),
108
110
  name: z.string().optional(),
109
111
  orientation: z.enum(["landscape", "portrait", "square"]).optional(),
110
- resolution: z.enum(["1080p", "480p", "720p"]).optional(),
112
+ resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
111
113
  style: v1_text_to_video_create_body_style_1.Schemas$V1TextToVideoCreateBodyStyle.out,
112
114
  })
113
115
  .transform((obj) => {
@@ -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, AUTO_SUBTITLE, VIDEO_TO_VIDEO, FACE_SWAP, TEXT_TO_VIDEO, IMAGE_TO_VIDEO, LIP_SYNC, TALKING_PHOTO, VIDEO_UPSCALER, EXTEND, AUDIO_TO_VIDEO, UGC_AD
64
+ * The type of the video project. Possible values are ANIMATION, AUTO_SUBTITLE, VIDEO_TO_VIDEO, FACE_SWAP, TEXT_TO_VIDEO, IMAGE_TO_VIDEO, LIP_SYNC, TALKING_PHOTO, VIDEO_UPSCALER, EXTEND, AUDIO_TO_VIDEO, VIDEO_EXPANDER, UGC_AD
65
65
  */
66
66
  type: string;
67
67
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.60.0",
3
+ "version": "0.62.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {