magic-hour 0.51.0 → 0.52.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/README.md +1 -1
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-clothes-changer/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-clothes-changer/resource-client.js +1 -1
- package/dist/resources/v1/ai-face-editor/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-face-editor/resource-client.js +1 -1
- package/dist/resources/v1/ai-gif-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-gif-generator/resource-client.js +1 -1
- package/dist/resources/v1/ai-headshot-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-headshot-generator/resource-client.js +1 -1
- package/dist/resources/v1/ai-image-editor/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-image-editor/resource-client.js +1 -1
- package/dist/resources/v1/ai-image-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-image-generator/resource-client.js +1 -1
- package/dist/resources/v1/ai-image-upscaler/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-image-upscaler/resource-client.js +1 -1
- package/dist/resources/v1/ai-meme-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-meme-generator/resource-client.js +1 -1
- package/dist/resources/v1/ai-qr-code-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-qr-code-generator/resource-client.js +1 -1
- package/dist/resources/v1/ai-talking-photo/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-talking-photo/resource-client.js +1 -1
- package/dist/resources/v1/ai-voice-cloner/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-voice-cloner/resource-client.js +1 -1
- package/dist/resources/v1/ai-voice-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-voice-generator/resource-client.js +1 -1
- package/dist/resources/v1/animation/resource-client.d.ts +1 -1
- package/dist/resources/v1/animation/resource-client.js +1 -1
- package/dist/resources/v1/auto-subtitle-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/auto-subtitle-generator/resource-client.js +1 -1
- package/dist/resources/v1/face-swap/resource-client.d.ts +1 -1
- package/dist/resources/v1/face-swap/resource-client.js +1 -1
- package/dist/resources/v1/face-swap-photo/resource-client.d.ts +1 -1
- package/dist/resources/v1/face-swap-photo/resource-client.js +1 -1
- package/dist/resources/v1/image-background-remover/resource-client.d.ts +1 -1
- package/dist/resources/v1/image-background-remover/resource-client.js +1 -1
- package/dist/resources/v1/image-to-video/request-types.d.ts +29 -16
- package/dist/resources/v1/image-to-video/request-types.js +8 -0
- package/dist/resources/v1/image-to-video/resource-client.d.ts +1 -1
- package/dist/resources/v1/image-to-video/resource-client.js +1 -1
- package/dist/resources/v1/lip-sync/resource-client.d.ts +1 -1
- package/dist/resources/v1/lip-sync/resource-client.js +1 -1
- package/dist/resources/v1/photo-colorizer/resource-client.d.ts +1 -1
- package/dist/resources/v1/photo-colorizer/resource-client.js +1 -1
- package/dist/resources/v1/text-to-video/request-types.d.ts +35 -22
- package/dist/resources/v1/text-to-video/request-types.js +8 -0
- package/dist/resources/v1/text-to-video/resource-client.d.ts +1 -1
- package/dist/resources/v1/text-to-video/resource-client.js +1 -1
- package/dist/resources/v1/video-to-video/resource-client.d.ts +1 -1
- package/dist/resources/v1/video-to-video/resource-client.js +1 -1
- package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +3 -3
- package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +6 -6
- package/dist/types/v1-image-to-video-create-body.d.ts +29 -16
- package/dist/types/v1-image-to-video-create-body.js +8 -0
- package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +6 -6
- package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +3 -3
- package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +6 -6
- package/dist/types/v1-text-to-video-create-body.d.ts +35 -22
- package/dist/types/v1-text-to-video-create-body.js +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
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.52.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -9,17 +9,29 @@ export type CreateRequest = {
|
|
|
9
9
|
* Provide the assets for image-to-video. Sora 2 only supports images with an aspect ratio of `9:16` or `16:9`.
|
|
10
10
|
*/
|
|
11
11
|
assets: V1ImageToVideoCreateBodyAssets;
|
|
12
|
+
/**
|
|
13
|
+
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
14
|
+
*
|
|
15
|
+
* Audio support varies by model:
|
|
16
|
+
* * **seedance**: Not supported
|
|
17
|
+
* * **kling-2.5**: Always included (cannot be disabled)
|
|
18
|
+
* * **kling-3.0**: Toggle-able (can enable/disable)
|
|
19
|
+
* * **sora-2**: Always included (cannot be disabled)
|
|
20
|
+
* * **veo3.1**: Toggle-able (can enable/disable)
|
|
21
|
+
* * **kling-1.6**: Not supported
|
|
22
|
+
*/
|
|
23
|
+
audio?: boolean | undefined;
|
|
12
24
|
/**
|
|
13
25
|
* The total duration of the output video in seconds.
|
|
14
26
|
*
|
|
15
27
|
* Supported durations depend on the chosen model:
|
|
16
28
|
* * **Default**: 5-60 seconds (2-12 seconds for 480p).
|
|
17
|
-
* * **
|
|
18
|
-
* * **
|
|
19
|
-
* * **
|
|
20
|
-
* * **
|
|
21
|
-
* * **
|
|
22
|
-
* * **
|
|
29
|
+
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
30
|
+
* * **kling-2.5**: 5, 10
|
|
31
|
+
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
32
|
+
* * **sora-2**: 4, 8, 12, 24, 36, 48, 60
|
|
33
|
+
* * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
34
|
+
* * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
23
35
|
*/
|
|
24
36
|
endSeconds: number;
|
|
25
37
|
/**
|
|
@@ -36,13 +48,13 @@ export type CreateRequest = {
|
|
|
36
48
|
* The AI model to use for video generation.
|
|
37
49
|
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to Kling 1.6.
|
|
38
50
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
39
|
-
* * `kling-2.5
|
|
51
|
+
* * `kling-2.5`: Great for motion, action, and camera control
|
|
52
|
+
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
40
53
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
41
|
-
* * `veo3.1-audio`: Great for dialogue + SFX generated natively
|
|
42
54
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
43
55
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
44
56
|
*/
|
|
45
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
57
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
46
58
|
/**
|
|
47
59
|
* Give your video a custom name for easy identification.
|
|
48
60
|
*/
|
|
@@ -51,12 +63,12 @@ export type CreateRequest = {
|
|
|
51
63
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
52
64
|
*
|
|
53
65
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
54
|
-
* * **
|
|
55
|
-
* * **
|
|
56
|
-
* * **
|
|
57
|
-
* * **
|
|
58
|
-
* * **
|
|
59
|
-
* * **
|
|
66
|
+
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
67
|
+
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
68
|
+
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
69
|
+
* * **sora-2**: Supports `720p`.
|
|
70
|
+
* * **veo3.1**: Supports `720p`, `1080p`.
|
|
71
|
+
* * **kling-1.6**: Supports `720p`, `1080p`.
|
|
60
72
|
*/
|
|
61
73
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
62
74
|
/**
|
|
@@ -81,9 +93,10 @@ export type CreateRequest = {
|
|
|
81
93
|
*/
|
|
82
94
|
export type External$CreateRequest = {
|
|
83
95
|
assets: External$V1ImageToVideoCreateBodyAssets;
|
|
96
|
+
audio?: boolean | undefined;
|
|
84
97
|
end_seconds: number;
|
|
85
98
|
height?: number | null | undefined;
|
|
86
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
99
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
87
100
|
name?: string | undefined;
|
|
88
101
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
89
102
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
@@ -44,13 +44,16 @@ const v1_image_to_video_create_body_style_1 = require("../../../types/v1-image-t
|
|
|
44
44
|
const SchemaIn$CreateRequest = z
|
|
45
45
|
.object({
|
|
46
46
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.in,
|
|
47
|
+
audio: z.boolean().optional(),
|
|
47
48
|
end_seconds: z.number(),
|
|
48
49
|
height: z.number().int().nullable().optional(),
|
|
49
50
|
model: z
|
|
50
51
|
.enum([
|
|
51
52
|
"default",
|
|
52
53
|
"kling-1.6",
|
|
54
|
+
"kling-2.5",
|
|
53
55
|
"kling-2.5-audio",
|
|
56
|
+
"kling-3.0",
|
|
54
57
|
"seedance",
|
|
55
58
|
"sora-2",
|
|
56
59
|
"veo3.1",
|
|
@@ -65,6 +68,7 @@ const SchemaIn$CreateRequest = z
|
|
|
65
68
|
.transform((obj) => {
|
|
66
69
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
67
70
|
assets: "assets",
|
|
71
|
+
audio: "audio",
|
|
68
72
|
end_seconds: "endSeconds",
|
|
69
73
|
height: "height",
|
|
70
74
|
model: "model",
|
|
@@ -81,13 +85,16 @@ const SchemaIn$CreateRequest = z
|
|
|
81
85
|
const SchemaOut$CreateRequest = z
|
|
82
86
|
.object({
|
|
83
87
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.out,
|
|
88
|
+
audio: z.boolean().optional(),
|
|
84
89
|
endSeconds: z.number(),
|
|
85
90
|
height: z.number().int().nullable().optional(),
|
|
86
91
|
model: z
|
|
87
92
|
.enum([
|
|
88
93
|
"default",
|
|
89
94
|
"kling-1.6",
|
|
95
|
+
"kling-2.5",
|
|
90
96
|
"kling-2.5-audio",
|
|
97
|
+
"kling-3.0",
|
|
91
98
|
"seedance",
|
|
92
99
|
"sora-2",
|
|
93
100
|
"veo3.1",
|
|
@@ -102,6 +109,7 @@ const SchemaOut$CreateRequest = z
|
|
|
102
109
|
.transform((obj) => {
|
|
103
110
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
104
111
|
assets: "assets",
|
|
112
|
+
audio: "audio",
|
|
105
113
|
endSeconds: "end_seconds",
|
|
106
114
|
height: "height",
|
|
107
115
|
model: "model",
|
|
@@ -6,38 +6,50 @@ import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } f
|
|
|
6
6
|
export type CreateRequest = {
|
|
7
7
|
/**
|
|
8
8
|
* Determines the aspect ratio of the output video.
|
|
9
|
-
* * **
|
|
10
|
-
* * **
|
|
11
|
-
* * **
|
|
12
|
-
* * **
|
|
13
|
-
* * **
|
|
14
|
-
* * **
|
|
9
|
+
* * **seedance**: Supports `9:16`, `16:9`, `1:1`.
|
|
10
|
+
* * **kling-2.5**: Supports `9:16`, `16:9`, `1:1`.
|
|
11
|
+
* * **kling-3.0**: Supports `9:16`, `16:9`, `1:1`.
|
|
12
|
+
* * **sora-2**: Supports `9:16`, `16:9`.
|
|
13
|
+
* * **veo3.1**: Supports `9:16`, `16:9`.
|
|
14
|
+
* * **kling-1.6**: Supports `9:16`, `16:9`, `1:1`.
|
|
15
15
|
*/
|
|
16
16
|
aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
19
|
+
*
|
|
20
|
+
* Audio support varies by model:
|
|
21
|
+
* * **seedance**: Not supported
|
|
22
|
+
* * **kling-2.5**: Always included (cannot be disabled)
|
|
23
|
+
* * **kling-3.0**: Toggle-able (can enable/disable)
|
|
24
|
+
* * **sora-2**: Always included (cannot be disabled)
|
|
25
|
+
* * **veo3.1**: Toggle-able (can enable/disable)
|
|
26
|
+
* * **kling-1.6**: Not supported
|
|
27
|
+
*/
|
|
28
|
+
audio?: boolean | undefined;
|
|
17
29
|
/**
|
|
18
30
|
* The total duration of the output video in seconds.
|
|
19
31
|
*
|
|
20
32
|
* Supported durations depend on the chosen model:
|
|
21
33
|
* * **Default**: 5-60 seconds (2-12 seconds for 480p).
|
|
22
|
-
* * **
|
|
23
|
-
* * **
|
|
24
|
-
* * **
|
|
25
|
-
* * **
|
|
26
|
-
* * **
|
|
27
|
-
* * **
|
|
34
|
+
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
35
|
+
* * **kling-2.5**: 5, 10
|
|
36
|
+
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
37
|
+
* * **sora-2**: 4, 8, 12, 24, 36, 48, 60
|
|
38
|
+
* * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
39
|
+
* * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
28
40
|
*/
|
|
29
41
|
endSeconds: number;
|
|
30
42
|
/**
|
|
31
43
|
* The AI model to use for video generation.
|
|
32
44
|
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to Kling 1.6.
|
|
33
45
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
34
|
-
* * `kling-2.5
|
|
46
|
+
* * `kling-2.5`: Great for motion, action, and camera control
|
|
47
|
+
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
35
48
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
36
|
-
* * `veo3.1-audio`: Great for dialogue + SFX generated natively
|
|
37
49
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
38
50
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
39
51
|
*/
|
|
40
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
52
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
41
53
|
/**
|
|
42
54
|
* Give your video a custom name for easy identification.
|
|
43
55
|
*/
|
|
@@ -50,12 +62,12 @@ export type CreateRequest = {
|
|
|
50
62
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
51
63
|
*
|
|
52
64
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
53
|
-
* * **
|
|
54
|
-
* * **
|
|
55
|
-
* * **
|
|
56
|
-
* * **
|
|
57
|
-
* * **
|
|
58
|
-
* * **
|
|
65
|
+
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
66
|
+
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
67
|
+
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
68
|
+
* * **sora-2**: Supports `720p`.
|
|
69
|
+
* * **veo3.1**: Supports `720p`, `1080p`.
|
|
70
|
+
* * **kling-1.6**: Supports `720p`, `1080p`.
|
|
59
71
|
*/
|
|
60
72
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
61
73
|
style: V1TextToVideoCreateBodyStyle;
|
|
@@ -67,8 +79,9 @@ export type CreateRequest = {
|
|
|
67
79
|
*/
|
|
68
80
|
export type External$CreateRequest = {
|
|
69
81
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
82
|
+
audio?: boolean | undefined;
|
|
70
83
|
end_seconds: number;
|
|
71
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
84
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
72
85
|
name?: string | undefined;
|
|
73
86
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
74
87
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
@@ -43,12 +43,15 @@ const v1_text_to_video_create_body_style_1 = require("../../../types/v1-text-to-
|
|
|
43
43
|
const SchemaIn$CreateRequest = z
|
|
44
44
|
.object({
|
|
45
45
|
aspect_ratio: z.enum(["16:9", "1:1", "9:16"]).optional(),
|
|
46
|
+
audio: z.boolean().optional(),
|
|
46
47
|
end_seconds: z.number(),
|
|
47
48
|
model: z
|
|
48
49
|
.enum([
|
|
49
50
|
"default",
|
|
50
51
|
"kling-1.6",
|
|
52
|
+
"kling-2.5",
|
|
51
53
|
"kling-2.5-audio",
|
|
54
|
+
"kling-3.0",
|
|
52
55
|
"seedance",
|
|
53
56
|
"sora-2",
|
|
54
57
|
"veo3.1",
|
|
@@ -63,6 +66,7 @@ const SchemaIn$CreateRequest = z
|
|
|
63
66
|
.transform((obj) => {
|
|
64
67
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
65
68
|
aspect_ratio: "aspectRatio",
|
|
69
|
+
audio: "audio",
|
|
66
70
|
end_seconds: "endSeconds",
|
|
67
71
|
model: "model",
|
|
68
72
|
name: "name",
|
|
@@ -78,12 +82,15 @@ const SchemaIn$CreateRequest = z
|
|
|
78
82
|
const SchemaOut$CreateRequest = z
|
|
79
83
|
.object({
|
|
80
84
|
aspectRatio: z.enum(["16:9", "1:1", "9:16"]).optional(),
|
|
85
|
+
audio: z.boolean().optional(),
|
|
81
86
|
endSeconds: z.number(),
|
|
82
87
|
model: z
|
|
83
88
|
.enum([
|
|
84
89
|
"default",
|
|
85
90
|
"kling-1.6",
|
|
91
|
+
"kling-2.5",
|
|
86
92
|
"kling-2.5-audio",
|
|
93
|
+
"kling-3.0",
|
|
87
94
|
"seedance",
|
|
88
95
|
"sora-2",
|
|
89
96
|
"veo3.1",
|
|
@@ -98,6 +105,7 @@ const SchemaOut$CreateRequest = z
|
|
|
98
105
|
.transform((obj) => {
|
|
99
106
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
100
107
|
aspectRatio: "aspect_ratio",
|
|
108
|
+
audio: "audio",
|
|
101
109
|
endSeconds: "end_seconds",
|
|
102
110
|
model: "model",
|
|
103
111
|
name: "name",
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* The AI model to use for video generation.
|
|
3
3
|
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to Kling 1.6.
|
|
4
4
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
5
|
-
* * `kling-2.5
|
|
5
|
+
* * `kling-2.5`: Great for motion, action, and camera control
|
|
6
|
+
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
6
7
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
7
|
-
* * `veo3.1-audio`: Great for dialogue + SFX generated natively
|
|
8
8
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
9
9
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
10
10
|
*/
|
|
11
|
-
export type V1ImageToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio";
|
|
11
|
+
export type V1ImageToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
3
3
|
*
|
|
4
4
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
5
|
-
* * **
|
|
6
|
-
* * **
|
|
7
|
-
* * **
|
|
8
|
-
* * **
|
|
9
|
-
* * **
|
|
10
|
-
* * **
|
|
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
|
+
* * **kling-1.6**: Supports `720p`, `1080p`.
|
|
11
11
|
*/
|
|
12
12
|
export type V1ImageToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
|
|
@@ -9,17 +9,29 @@ export type V1ImageToVideoCreateBody = {
|
|
|
9
9
|
* Provide the assets for image-to-video. Sora 2 only supports images with an aspect ratio of `9:16` or `16:9`.
|
|
10
10
|
*/
|
|
11
11
|
assets: V1ImageToVideoCreateBodyAssets;
|
|
12
|
+
/**
|
|
13
|
+
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
14
|
+
*
|
|
15
|
+
* Audio support varies by model:
|
|
16
|
+
* * **seedance**: Not supported
|
|
17
|
+
* * **kling-2.5**: Always included (cannot be disabled)
|
|
18
|
+
* * **kling-3.0**: Toggle-able (can enable/disable)
|
|
19
|
+
* * **sora-2**: Always included (cannot be disabled)
|
|
20
|
+
* * **veo3.1**: Toggle-able (can enable/disable)
|
|
21
|
+
* * **kling-1.6**: Not supported
|
|
22
|
+
*/
|
|
23
|
+
audio?: boolean | undefined;
|
|
12
24
|
/**
|
|
13
25
|
* The total duration of the output video in seconds.
|
|
14
26
|
*
|
|
15
27
|
* Supported durations depend on the chosen model:
|
|
16
28
|
* * **Default**: 5-60 seconds (2-12 seconds for 480p).
|
|
17
|
-
* * **
|
|
18
|
-
* * **
|
|
19
|
-
* * **
|
|
20
|
-
* * **
|
|
21
|
-
* * **
|
|
22
|
-
* * **
|
|
29
|
+
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
30
|
+
* * **kling-2.5**: 5, 10
|
|
31
|
+
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
32
|
+
* * **sora-2**: 4, 8, 12, 24, 36, 48, 60
|
|
33
|
+
* * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
34
|
+
* * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
23
35
|
*/
|
|
24
36
|
endSeconds: number;
|
|
25
37
|
/**
|
|
@@ -36,13 +48,13 @@ export type V1ImageToVideoCreateBody = {
|
|
|
36
48
|
* The AI model to use for video generation.
|
|
37
49
|
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to Kling 1.6.
|
|
38
50
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
39
|
-
* * `kling-2.5
|
|
51
|
+
* * `kling-2.5`: Great for motion, action, and camera control
|
|
52
|
+
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
40
53
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
41
|
-
* * `veo3.1-audio`: Great for dialogue + SFX generated natively
|
|
42
54
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
43
55
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
44
56
|
*/
|
|
45
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
57
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
46
58
|
/**
|
|
47
59
|
* Give your video a custom name for easy identification.
|
|
48
60
|
*/
|
|
@@ -51,12 +63,12 @@ export type V1ImageToVideoCreateBody = {
|
|
|
51
63
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
52
64
|
*
|
|
53
65
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
54
|
-
* * **
|
|
55
|
-
* * **
|
|
56
|
-
* * **
|
|
57
|
-
* * **
|
|
58
|
-
* * **
|
|
59
|
-
* * **
|
|
66
|
+
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
67
|
+
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
68
|
+
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
69
|
+
* * **sora-2**: Supports `720p`.
|
|
70
|
+
* * **veo3.1**: Supports `720p`, `1080p`.
|
|
71
|
+
* * **kling-1.6**: Supports `720p`, `1080p`.
|
|
60
72
|
*/
|
|
61
73
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
62
74
|
/**
|
|
@@ -81,9 +93,10 @@ export type V1ImageToVideoCreateBody = {
|
|
|
81
93
|
*/
|
|
82
94
|
export type External$V1ImageToVideoCreateBody = {
|
|
83
95
|
assets: External$V1ImageToVideoCreateBodyAssets;
|
|
96
|
+
audio?: boolean | undefined;
|
|
84
97
|
end_seconds: number;
|
|
85
98
|
height?: number | null | undefined;
|
|
86
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
99
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
87
100
|
name?: string | undefined;
|
|
88
101
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
89
102
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
@@ -44,13 +44,16 @@ const v1_image_to_video_create_body_style_1 = require("./v1-image-to-video-creat
|
|
|
44
44
|
const SchemaIn$V1ImageToVideoCreateBody = z
|
|
45
45
|
.object({
|
|
46
46
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.in,
|
|
47
|
+
audio: z.boolean().optional(),
|
|
47
48
|
end_seconds: z.number(),
|
|
48
49
|
height: z.number().int().nullable().optional(),
|
|
49
50
|
model: z
|
|
50
51
|
.enum([
|
|
51
52
|
"default",
|
|
52
53
|
"kling-1.6",
|
|
54
|
+
"kling-2.5",
|
|
53
55
|
"kling-2.5-audio",
|
|
56
|
+
"kling-3.0",
|
|
54
57
|
"seedance",
|
|
55
58
|
"sora-2",
|
|
56
59
|
"veo3.1",
|
|
@@ -65,6 +68,7 @@ const SchemaIn$V1ImageToVideoCreateBody = z
|
|
|
65
68
|
.transform((obj) => {
|
|
66
69
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
67
70
|
assets: "assets",
|
|
71
|
+
audio: "audio",
|
|
68
72
|
end_seconds: "endSeconds",
|
|
69
73
|
height: "height",
|
|
70
74
|
model: "model",
|
|
@@ -81,13 +85,16 @@ const SchemaIn$V1ImageToVideoCreateBody = z
|
|
|
81
85
|
const SchemaOut$V1ImageToVideoCreateBody = z
|
|
82
86
|
.object({
|
|
83
87
|
assets: v1_image_to_video_create_body_assets_1.Schemas$V1ImageToVideoCreateBodyAssets.out,
|
|
88
|
+
audio: z.boolean().optional(),
|
|
84
89
|
endSeconds: z.number(),
|
|
85
90
|
height: z.number().int().nullable().optional(),
|
|
86
91
|
model: z
|
|
87
92
|
.enum([
|
|
88
93
|
"default",
|
|
89
94
|
"kling-1.6",
|
|
95
|
+
"kling-2.5",
|
|
90
96
|
"kling-2.5-audio",
|
|
97
|
+
"kling-3.0",
|
|
91
98
|
"seedance",
|
|
92
99
|
"sora-2",
|
|
93
100
|
"veo3.1",
|
|
@@ -102,6 +109,7 @@ const SchemaOut$V1ImageToVideoCreateBody = z
|
|
|
102
109
|
.transform((obj) => {
|
|
103
110
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
104
111
|
assets: "assets",
|
|
112
|
+
audio: "audio",
|
|
105
113
|
endSeconds: "end_seconds",
|
|
106
114
|
height: "height",
|
|
107
115
|
model: "model",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Determines the aspect ratio of the output video.
|
|
3
|
-
* * **
|
|
4
|
-
* * **
|
|
5
|
-
* * **
|
|
6
|
-
* * **
|
|
7
|
-
* * **
|
|
8
|
-
* * **
|
|
3
|
+
* * **seedance**: Supports `9:16`, `16:9`, `1:1`.
|
|
4
|
+
* * **kling-2.5**: Supports `9:16`, `16:9`, `1:1`.
|
|
5
|
+
* * **kling-3.0**: Supports `9:16`, `16:9`, `1:1`.
|
|
6
|
+
* * **sora-2**: Supports `9:16`, `16:9`.
|
|
7
|
+
* * **veo3.1**: Supports `9:16`, `16:9`.
|
|
8
|
+
* * **kling-1.6**: Supports `9:16`, `16:9`, `1:1`.
|
|
9
9
|
*/
|
|
10
10
|
export type V1TextToVideoCreateBodyAspectRatioEnum = "16:9" | "1:1" | "9:16";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* The AI model to use for video generation.
|
|
3
3
|
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to Kling 1.6.
|
|
4
4
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
5
|
-
* * `kling-2.5
|
|
5
|
+
* * `kling-2.5`: Great for motion, action, and camera control
|
|
6
|
+
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
6
7
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
7
|
-
* * `veo3.1-audio`: Great for dialogue + SFX generated natively
|
|
8
8
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
9
9
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
10
10
|
*/
|
|
11
|
-
export type V1TextToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio";
|
|
11
|
+
export type V1TextToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
3
3
|
*
|
|
4
4
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
5
|
-
* * **
|
|
6
|
-
* * **
|
|
7
|
-
* * **
|
|
8
|
-
* * **
|
|
9
|
-
* * **
|
|
10
|
-
* * **
|
|
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
|
+
* * **kling-1.6**: Supports `720p`, `1080p`.
|
|
11
11
|
*/
|
|
12
12
|
export type V1TextToVideoCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
|
|
@@ -6,38 +6,50 @@ import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } f
|
|
|
6
6
|
export type V1TextToVideoCreateBody = {
|
|
7
7
|
/**
|
|
8
8
|
* Determines the aspect ratio of the output video.
|
|
9
|
-
* * **
|
|
10
|
-
* * **
|
|
11
|
-
* * **
|
|
12
|
-
* * **
|
|
13
|
-
* * **
|
|
14
|
-
* * **
|
|
9
|
+
* * **seedance**: Supports `9:16`, `16:9`, `1:1`.
|
|
10
|
+
* * **kling-2.5**: Supports `9:16`, `16:9`, `1:1`.
|
|
11
|
+
* * **kling-3.0**: Supports `9:16`, `16:9`, `1:1`.
|
|
12
|
+
* * **sora-2**: Supports `9:16`, `16:9`.
|
|
13
|
+
* * **veo3.1**: Supports `9:16`, `16:9`.
|
|
14
|
+
* * **kling-1.6**: Supports `9:16`, `16:9`, `1:1`.
|
|
15
15
|
*/
|
|
16
16
|
aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
19
|
+
*
|
|
20
|
+
* Audio support varies by model:
|
|
21
|
+
* * **seedance**: Not supported
|
|
22
|
+
* * **kling-2.5**: Always included (cannot be disabled)
|
|
23
|
+
* * **kling-3.0**: Toggle-able (can enable/disable)
|
|
24
|
+
* * **sora-2**: Always included (cannot be disabled)
|
|
25
|
+
* * **veo3.1**: Toggle-able (can enable/disable)
|
|
26
|
+
* * **kling-1.6**: Not supported
|
|
27
|
+
*/
|
|
28
|
+
audio?: boolean | undefined;
|
|
17
29
|
/**
|
|
18
30
|
* The total duration of the output video in seconds.
|
|
19
31
|
*
|
|
20
32
|
* Supported durations depend on the chosen model:
|
|
21
33
|
* * **Default**: 5-60 seconds (2-12 seconds for 480p).
|
|
22
|
-
* * **
|
|
23
|
-
* * **
|
|
24
|
-
* * **
|
|
25
|
-
* * **
|
|
26
|
-
* * **
|
|
27
|
-
* * **
|
|
34
|
+
* * **seedance**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
35
|
+
* * **kling-2.5**: 5, 10
|
|
36
|
+
* * **kling-3.0**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
37
|
+
* * **sora-2**: 4, 8, 12, 24, 36, 48, 60
|
|
38
|
+
* * **veo3.1**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
39
|
+
* * **kling-1.6**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
28
40
|
*/
|
|
29
41
|
endSeconds: number;
|
|
30
42
|
/**
|
|
31
43
|
* The AI model to use for video generation.
|
|
32
44
|
* * `default`: Our recommended model for general use (Kling 2.5 Audio). Note: For backward compatibility, if you use default and end_seconds > 10, we'll fall back to Kling 1.6.
|
|
33
45
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
34
|
-
* * `kling-2.5
|
|
46
|
+
* * `kling-2.5`: Great for motion, action, and camera control
|
|
47
|
+
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
35
48
|
* * `sora-2`: Great for story-telling, dialogue & creativity
|
|
36
|
-
* * `veo3.1-audio`: Great for dialogue + SFX generated natively
|
|
37
49
|
* * `veo3.1`: Great for realism, polish, & prompt adherence
|
|
38
50
|
* * `kling-1.6`: Great for dependable clips with smooth motion
|
|
39
51
|
*/
|
|
40
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
52
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
41
53
|
/**
|
|
42
54
|
* Give your video a custom name for easy identification.
|
|
43
55
|
*/
|
|
@@ -50,12 +62,12 @@ export type V1TextToVideoCreateBody = {
|
|
|
50
62
|
* Controls the output video resolution. Defaults to `720p` if not specified.
|
|
51
63
|
*
|
|
52
64
|
* * **Default**: Supports `480p`, `720p`, and `1080p`.
|
|
53
|
-
* * **
|
|
54
|
-
* * **
|
|
55
|
-
* * **
|
|
56
|
-
* * **
|
|
57
|
-
* * **
|
|
58
|
-
* * **
|
|
65
|
+
* * **seedance**: Supports `480p`, `720p`, `1080p`.
|
|
66
|
+
* * **kling-2.5**: Supports `720p`, `1080p`.
|
|
67
|
+
* * **kling-3.0**: Supports `720p`, `1080p`.
|
|
68
|
+
* * **sora-2**: Supports `720p`.
|
|
69
|
+
* * **veo3.1**: Supports `720p`, `1080p`.
|
|
70
|
+
* * **kling-1.6**: Supports `720p`, `1080p`.
|
|
59
71
|
*/
|
|
60
72
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
61
73
|
style: V1TextToVideoCreateBodyStyle;
|
|
@@ -67,8 +79,9 @@ export type V1TextToVideoCreateBody = {
|
|
|
67
79
|
*/
|
|
68
80
|
export type External$V1TextToVideoCreateBody = {
|
|
69
81
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
82
|
+
audio?: boolean | undefined;
|
|
70
83
|
end_seconds: number;
|
|
71
|
-
model?: ("default" | "kling-1.6" | "kling-2.5-audio" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
84
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
72
85
|
name?: string | undefined;
|
|
73
86
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
74
87
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
@@ -43,12 +43,15 @@ const v1_text_to_video_create_body_style_1 = require("./v1-text-to-video-create-
|
|
|
43
43
|
const SchemaIn$V1TextToVideoCreateBody = z
|
|
44
44
|
.object({
|
|
45
45
|
aspect_ratio: z.enum(["16:9", "1:1", "9:16"]).optional(),
|
|
46
|
+
audio: z.boolean().optional(),
|
|
46
47
|
end_seconds: z.number(),
|
|
47
48
|
model: z
|
|
48
49
|
.enum([
|
|
49
50
|
"default",
|
|
50
51
|
"kling-1.6",
|
|
52
|
+
"kling-2.5",
|
|
51
53
|
"kling-2.5-audio",
|
|
54
|
+
"kling-3.0",
|
|
52
55
|
"seedance",
|
|
53
56
|
"sora-2",
|
|
54
57
|
"veo3.1",
|
|
@@ -63,6 +66,7 @@ const SchemaIn$V1TextToVideoCreateBody = z
|
|
|
63
66
|
.transform((obj) => {
|
|
64
67
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
65
68
|
aspect_ratio: "aspectRatio",
|
|
69
|
+
audio: "audio",
|
|
66
70
|
end_seconds: "endSeconds",
|
|
67
71
|
model: "model",
|
|
68
72
|
name: "name",
|
|
@@ -78,12 +82,15 @@ const SchemaIn$V1TextToVideoCreateBody = z
|
|
|
78
82
|
const SchemaOut$V1TextToVideoCreateBody = z
|
|
79
83
|
.object({
|
|
80
84
|
aspectRatio: z.enum(["16:9", "1:1", "9:16"]).optional(),
|
|
85
|
+
audio: z.boolean().optional(),
|
|
81
86
|
endSeconds: z.number(),
|
|
82
87
|
model: z
|
|
83
88
|
.enum([
|
|
84
89
|
"default",
|
|
85
90
|
"kling-1.6",
|
|
91
|
+
"kling-2.5",
|
|
86
92
|
"kling-2.5-audio",
|
|
93
|
+
"kling-3.0",
|
|
87
94
|
"seedance",
|
|
88
95
|
"sora-2",
|
|
89
96
|
"veo3.1",
|
|
@@ -98,6 +105,7 @@ const SchemaOut$V1TextToVideoCreateBody = z
|
|
|
98
105
|
.transform((obj) => {
|
|
99
106
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
100
107
|
aspectRatio: "aspect_ratio",
|
|
108
|
+
audio: "audio",
|
|
101
109
|
endSeconds: "end_seconds",
|
|
102
110
|
model: "model",
|
|
103
111
|
name: "name",
|