magic-hour 0.80.0 → 0.82.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 -0
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-image-editor/request-types.d.ts +7 -2
- package/dist/resources/v1/ai-image-editor/request-types.js +2 -0
- package/dist/resources/v1/ai-image-generator/request-types.d.ts +7 -2
- package/dist/resources/v1/ai-image-generator/request-types.js +2 -0
- package/dist/resources/v1/ai-video-editor/request-types.d.ts +1 -1
- package/dist/resources/v1/character-replace/request-types.d.ts +11 -3
- package/dist/resources/v1/character-replace/request-types.js +6 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/v1-ai-image-editor-create-body-model-enum.d.ts +5 -1
- package/dist/types/v1-ai-image-editor-create-body-resolution-enum.d.ts +1 -0
- package/dist/types/v1-ai-image-editor-create-body.d.ts +7 -2
- package/dist/types/v1-ai-image-editor-create-body.js +2 -0
- package/dist/types/v1-ai-image-generator-create-body-model-enum.d.ts +5 -1
- package/dist/types/v1-ai-image-generator-create-body-resolution-enum.d.ts +1 -0
- package/dist/types/v1-ai-image-generator-create-body.d.ts +7 -2
- package/dist/types/v1-ai-image-generator-create-body.js +2 -0
- package/dist/types/v1-ai-video-editor-create-body.d.ts +1 -1
- package/dist/types/v1-character-replace-create-body-model-enum.d.ts +7 -0
- package/dist/types/v1-character-replace-create-body-model-enum.js +2 -0
- package/dist/types/v1-character-replace-create-body-resolution-enum.d.ts +2 -2
- package/dist/types/v1-character-replace-create-body-style-selection-mode-enum.d.ts +1 -1
- package/dist/types/v1-character-replace-create-body-style.d.ts +2 -2
- package/dist/types/v1-character-replace-create-body.d.ts +11 -3
- package/dist/types/v1-character-replace-create-body.js +6 -2
- package/dist/types/v1-lip-sync-create-body-style-generation-mode-enum.d.ts +5 -3
- package/dist/types/v1-lip-sync-create-body-style.d.ts +5 -3
- package/dist/types/v1-video-projects-get-response.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -263,6 +263,7 @@ Valid values are: `none`, `error`, `warn`, `info`, `debug` (case insensitive). I
|
|
|
263
263
|
### [v1.aiVideoTranslator](src/resources/v1/ai-video-translator/README.md)
|
|
264
264
|
|
|
265
265
|
- [create](src/resources/v1/ai-video-translator/README.md#create) - AI Video Translator
|
|
266
|
+
- [generate](src/resources/v1/ai-video-translator/README.md#generate) - Generate video translation
|
|
266
267
|
|
|
267
268
|
### [v1.aiVoiceCloner](src/resources/v1/ai-voice-cloner/README.md)
|
|
268
269
|
|
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.86.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -58,6 +58,10 @@ export type CreateRequest = {
|
|
|
58
58
|
* - Supported resolutions: 640px, 1k, 2k
|
|
59
59
|
* - Available for tiers: free, creator, pro, business
|
|
60
60
|
* - Max additional input images: 2
|
|
61
|
+
* - `qwen-image-2.1` - from 10 credits/image
|
|
62
|
+
* - Supported resolutions: 640px, 1k, 2k
|
|
63
|
+
* - Available for tiers: free, creator, pro, business
|
|
64
|
+
* - Max additional input images: 2
|
|
61
65
|
* - `seedream-v4` - from 40 credits/image
|
|
62
66
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
63
67
|
* - Available for tiers: creator, pro, business
|
|
@@ -72,7 +76,7 @@ export type CreateRequest = {
|
|
|
72
76
|
* - Max additional input images: 9
|
|
73
77
|
*
|
|
74
78
|
*/
|
|
75
|
-
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
|
|
79
|
+
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "qwen-image-2.1" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
|
|
76
80
|
/**
|
|
77
81
|
* Give your image a custom name for easy identification.
|
|
78
82
|
*/
|
|
@@ -97,6 +101,7 @@ export type CreateRequest = {
|
|
|
97
101
|
* - `nano-banana-2-lite` - 640px, 1k
|
|
98
102
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
99
103
|
* - `qwen-edit` - 640px, 1k, 2k
|
|
104
|
+
* - `qwen-image-2.1` - 640px, 1k, 2k
|
|
100
105
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
101
106
|
* - `seedream-v4.5` - 640px, 1k, 2k, 4k
|
|
102
107
|
* - `seedream-v5-pro` - 640px, 1k, 2k
|
|
@@ -115,7 +120,7 @@ export type External$CreateRequest = {
|
|
|
115
120
|
aspect_ratio?: ("16:9" | "1:1" | "2:3" | "3:2" | "4:3" | "4:5" | "9:16" | "auto") | undefined;
|
|
116
121
|
assets: External$V1AiImageEditorCreateBodyAssets;
|
|
117
122
|
image_count?: number | undefined;
|
|
118
|
-
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
|
|
123
|
+
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "qwen-image-2.1" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
|
|
119
124
|
name?: string | undefined;
|
|
120
125
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
121
126
|
style: External$V1AiImageEditorCreateBodyStyle;
|
|
@@ -60,6 +60,7 @@ const SchemaIn$CreateRequest = z
|
|
|
60
60
|
"nano-banana-2-lite",
|
|
61
61
|
"nano-banana-pro",
|
|
62
62
|
"qwen-edit",
|
|
63
|
+
"qwen-image-2.1",
|
|
63
64
|
"seedream-v4",
|
|
64
65
|
"seedream-v4.5",
|
|
65
66
|
"seedream-v5-pro",
|
|
@@ -103,6 +104,7 @@ const SchemaOut$CreateRequest = z
|
|
|
103
104
|
"nano-banana-2-lite",
|
|
104
105
|
"nano-banana-pro",
|
|
105
106
|
"qwen-edit",
|
|
107
|
+
"qwen-image-2.1",
|
|
106
108
|
"seedream-v4",
|
|
107
109
|
"seedream-v4.5",
|
|
108
110
|
"seedream-v5-pro",
|
|
@@ -53,6 +53,10 @@ export type CreateRequest = {
|
|
|
53
53
|
* - Supported resolutions: 1k, 2k, 4k
|
|
54
54
|
* - Available for tiers: creator, pro, business
|
|
55
55
|
* - Image count allowed: 1, 4, 9, 16
|
|
56
|
+
* - `qwen-image-2.1` - from 10 credits/image
|
|
57
|
+
* - Supported resolutions: 640px, 1k, 2k
|
|
58
|
+
* - Available for tiers: free, creator, pro, business
|
|
59
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
56
60
|
* - `seedream-v4` - from 40 credits/image
|
|
57
61
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
58
62
|
* - Available for tiers: creator, pro, business
|
|
@@ -70,7 +74,7 @@ export type CreateRequest = {
|
|
|
70
74
|
* - `seedream` - Use `seedream-v4` instead.
|
|
71
75
|
*
|
|
72
76
|
*/
|
|
73
|
-
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
77
|
+
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
74
78
|
/**
|
|
75
79
|
* Give your image a custom name for easy identification.
|
|
76
80
|
*/
|
|
@@ -101,6 +105,7 @@ export type CreateRequest = {
|
|
|
101
105
|
* - `nano-banana-2` - 640px, 1k, 2k, 4k
|
|
102
106
|
* - `nano-banana-2-lite` - 640px, 1k
|
|
103
107
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
108
|
+
* - `qwen-image-2.1` - 640px, 1k, 2k
|
|
104
109
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
105
110
|
* - `seedream-v5-pro` - 640px, 1k, 2k
|
|
106
111
|
* - `z-image-turbo` - 640px, 1k, 2k
|
|
@@ -121,7 +126,7 @@ export type CreateRequest = {
|
|
|
121
126
|
export type External$CreateRequest = {
|
|
122
127
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
123
128
|
image_count: number;
|
|
124
|
-
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
129
|
+
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
125
130
|
name?: string | undefined;
|
|
126
131
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
127
132
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
@@ -56,6 +56,7 @@ const SchemaIn$CreateRequest = z
|
|
|
56
56
|
"nano-banana-2",
|
|
57
57
|
"nano-banana-2-lite",
|
|
58
58
|
"nano-banana-pro",
|
|
59
|
+
"qwen-image-2.1",
|
|
59
60
|
"seedream",
|
|
60
61
|
"seedream-v4",
|
|
61
62
|
"seedream-v5-pro",
|
|
@@ -98,6 +99,7 @@ const SchemaOut$CreateRequest = z
|
|
|
98
99
|
"nano-banana-2",
|
|
99
100
|
"nano-banana-2-lite",
|
|
100
101
|
"nano-banana-pro",
|
|
102
|
+
"qwen-image-2.1",
|
|
101
103
|
"seedream",
|
|
102
104
|
"seedream-v4",
|
|
103
105
|
"seedream-v5-pro",
|
|
@@ -10,7 +10,7 @@ export type CreateRequest = {
|
|
|
10
10
|
*/
|
|
11
11
|
assets: V1AiVideoEditorCreateBodyAssets;
|
|
12
12
|
/**
|
|
13
|
-
* End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni-1.1`: 3s, LTX 2.5: 0.5s. Maximum duration depends on model: `gemini-omni-1.1`: 10s, LTX 2.5:
|
|
13
|
+
* End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni-1.1`: 3s, LTX 2.5: 0.5s. Maximum duration depends on model: `gemini-omni-1.1`: 10s, LTX 2.5: 20s.
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
16
|
/**
|
|
@@ -13,14 +13,21 @@ export type CreateRequest = {
|
|
|
13
13
|
* End time of your clip (seconds). Must be greater than start_seconds.
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
|
+
/**
|
|
17
|
+
* Model to use. Defaults to `wan-animate`.
|
|
18
|
+
*
|
|
19
|
+
* * **`wan-animate`**: 480p, 720p. Supports `points` subject selection.
|
|
20
|
+
* * **`kling-3.0`**: 720p, 1080p. Clips of 3–10 seconds in `replace` mode or 3–30 seconds in `animate` mode. Picks the main person automatically, so `points` are rejected.
|
|
21
|
+
*/
|
|
22
|
+
model?: ("kling-3.0" | "wan-animate") | undefined;
|
|
16
23
|
/**
|
|
17
24
|
* Give your video a custom name for easy identification.
|
|
18
25
|
*/
|
|
19
26
|
name?: string | undefined;
|
|
20
27
|
/**
|
|
21
|
-
* Output video resolution. Defaults to
|
|
28
|
+
* Output video resolution. Must be supported by `model`. Defaults to the lowest resolution available on your plan for that model.
|
|
22
29
|
*/
|
|
23
|
-
resolution?: ("480p" | "720p") | undefined;
|
|
30
|
+
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
24
31
|
/**
|
|
25
32
|
* Start time of your clip (seconds). Must be ≥ 0.
|
|
26
33
|
*/
|
|
@@ -38,8 +45,9 @@ export type CreateRequest = {
|
|
|
38
45
|
export type External$CreateRequest = {
|
|
39
46
|
assets: External$V1CharacterReplaceCreateBodyAssets;
|
|
40
47
|
end_seconds: number;
|
|
48
|
+
model?: ("kling-3.0" | "wan-animate") | undefined;
|
|
41
49
|
name?: string | undefined;
|
|
42
|
-
resolution?: ("480p" | "720p") | undefined;
|
|
50
|
+
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
43
51
|
start_seconds?: number | undefined;
|
|
44
52
|
style?: External$V1CharacterReplaceCreateBodyStyle | undefined;
|
|
45
53
|
};
|
|
@@ -45,8 +45,9 @@ const SchemaIn$CreateRequest = z
|
|
|
45
45
|
.object({
|
|
46
46
|
assets: v1_character_replace_create_body_assets_1.Schemas$V1CharacterReplaceCreateBodyAssets.in,
|
|
47
47
|
end_seconds: z.number(),
|
|
48
|
+
model: z.enum(["kling-3.0", "wan-animate"]).optional(),
|
|
48
49
|
name: z.string().optional(),
|
|
49
|
-
resolution: z.enum(["480p", "720p"]).optional(),
|
|
50
|
+
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
50
51
|
start_seconds: z.number().optional(),
|
|
51
52
|
style: v1_character_replace_create_body_style_1.Schemas$V1CharacterReplaceCreateBodyStyle.in.optional(),
|
|
52
53
|
})
|
|
@@ -54,6 +55,7 @@ const SchemaIn$CreateRequest = z
|
|
|
54
55
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
55
56
|
assets: "assets",
|
|
56
57
|
end_seconds: "endSeconds",
|
|
58
|
+
model: "model",
|
|
57
59
|
name: "name",
|
|
58
60
|
resolution: "resolution",
|
|
59
61
|
start_seconds: "startSeconds",
|
|
@@ -68,8 +70,9 @@ const SchemaOut$CreateRequest = z
|
|
|
68
70
|
.object({
|
|
69
71
|
assets: v1_character_replace_create_body_assets_1.Schemas$V1CharacterReplaceCreateBodyAssets.out,
|
|
70
72
|
endSeconds: z.number(),
|
|
73
|
+
model: z.enum(["kling-3.0", "wan-animate"]).optional(),
|
|
71
74
|
name: z.string().optional(),
|
|
72
|
-
resolution: z.enum(["480p", "720p"]).optional(),
|
|
75
|
+
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
73
76
|
startSeconds: z.number().optional(),
|
|
74
77
|
style: v1_character_replace_create_body_style_1.Schemas$V1CharacterReplaceCreateBodyStyle.out.optional(),
|
|
75
78
|
})
|
|
@@ -77,6 +80,7 @@ const SchemaOut$CreateRequest = z
|
|
|
77
80
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
78
81
|
assets: "assets",
|
|
79
82
|
endSeconds: "end_seconds",
|
|
83
|
+
model: "model",
|
|
80
84
|
name: "name",
|
|
81
85
|
resolution: "resolution",
|
|
82
86
|
startSeconds: "start_seconds",
|
package/dist/types/index.d.ts
CHANGED
|
@@ -104,6 +104,7 @@ export { V1BodySwapCreateBodyResolutionEnum } from "./v1-body-swap-create-body-r
|
|
|
104
104
|
export { V1BodySwapCreateResponse } from "./v1-body-swap-create-response";
|
|
105
105
|
export { V1CharacterReplaceCreateBody } from "./v1-character-replace-create-body";
|
|
106
106
|
export { V1CharacterReplaceCreateBodyAssets } from "./v1-character-replace-create-body-assets";
|
|
107
|
+
export { V1CharacterReplaceCreateBodyModelEnum } from "./v1-character-replace-create-body-model-enum";
|
|
107
108
|
export { V1CharacterReplaceCreateBodyResolutionEnum } from "./v1-character-replace-create-body-resolution-enum";
|
|
108
109
|
export { V1CharacterReplaceCreateBodyStyle } from "./v1-character-replace-create-body-style";
|
|
109
110
|
export { V1CharacterReplaceCreateBodyStyleModeEnum } from "./v1-character-replace-create-body-style-mode-enum";
|
|
@@ -39,6 +39,10 @@
|
|
|
39
39
|
* - Supported resolutions: 640px, 1k, 2k
|
|
40
40
|
* - Available for tiers: free, creator, pro, business
|
|
41
41
|
* - Max additional input images: 2
|
|
42
|
+
* - `qwen-image-2.1` - from 10 credits/image
|
|
43
|
+
* - Supported resolutions: 640px, 1k, 2k
|
|
44
|
+
* - Available for tiers: free, creator, pro, business
|
|
45
|
+
* - Max additional input images: 2
|
|
42
46
|
* - `seedream-v4` - from 40 credits/image
|
|
43
47
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
44
48
|
* - Available for tiers: creator, pro, business
|
|
@@ -53,4 +57,4 @@
|
|
|
53
57
|
* - Max additional input images: 9
|
|
54
58
|
*
|
|
55
59
|
*/
|
|
56
|
-
export type V1AiImageEditorCreateBodyModelEnum = "default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro";
|
|
60
|
+
export type V1AiImageEditorCreateBodyModelEnum = "default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "qwen-image-2.1" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro";
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* - `nano-banana-2-lite` - 640px, 1k
|
|
19
19
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
20
20
|
* - `qwen-edit` - 640px, 1k, 2k
|
|
21
|
+
* - `qwen-image-2.1` - 640px, 1k, 2k
|
|
21
22
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
22
23
|
* - `seedream-v4.5` - 640px, 1k, 2k, 4k
|
|
23
24
|
* - `seedream-v5-pro` - 640px, 1k, 2k
|
|
@@ -58,6 +58,10 @@ export type V1AiImageEditorCreateBody = {
|
|
|
58
58
|
* - Supported resolutions: 640px, 1k, 2k
|
|
59
59
|
* - Available for tiers: free, creator, pro, business
|
|
60
60
|
* - Max additional input images: 2
|
|
61
|
+
* - `qwen-image-2.1` - from 10 credits/image
|
|
62
|
+
* - Supported resolutions: 640px, 1k, 2k
|
|
63
|
+
* - Available for tiers: free, creator, pro, business
|
|
64
|
+
* - Max additional input images: 2
|
|
61
65
|
* - `seedream-v4` - from 40 credits/image
|
|
62
66
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
63
67
|
* - Available for tiers: creator, pro, business
|
|
@@ -72,7 +76,7 @@ export type V1AiImageEditorCreateBody = {
|
|
|
72
76
|
* - Max additional input images: 9
|
|
73
77
|
*
|
|
74
78
|
*/
|
|
75
|
-
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
|
|
79
|
+
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "qwen-image-2.1" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
|
|
76
80
|
/**
|
|
77
81
|
* Give your image a custom name for easy identification.
|
|
78
82
|
*/
|
|
@@ -97,6 +101,7 @@ export type V1AiImageEditorCreateBody = {
|
|
|
97
101
|
* - `nano-banana-2-lite` - 640px, 1k
|
|
98
102
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
99
103
|
* - `qwen-edit` - 640px, 1k, 2k
|
|
104
|
+
* - `qwen-image-2.1` - 640px, 1k, 2k
|
|
100
105
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
101
106
|
* - `seedream-v4.5` - 640px, 1k, 2k, 4k
|
|
102
107
|
* - `seedream-v5-pro` - 640px, 1k, 2k
|
|
@@ -115,7 +120,7 @@ export type External$V1AiImageEditorCreateBody = {
|
|
|
115
120
|
aspect_ratio?: ("16:9" | "1:1" | "2:3" | "3:2" | "4:3" | "4:5" | "9:16" | "auto") | undefined;
|
|
116
121
|
assets: External$V1AiImageEditorCreateBodyAssets;
|
|
117
122
|
image_count?: number | undefined;
|
|
118
|
-
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
|
|
123
|
+
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "qwen-image-2.1" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
|
|
119
124
|
name?: string | undefined;
|
|
120
125
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
121
126
|
style: External$V1AiImageEditorCreateBodyStyle;
|
|
@@ -60,6 +60,7 @@ const SchemaIn$V1AiImageEditorCreateBody = z
|
|
|
60
60
|
"nano-banana-2-lite",
|
|
61
61
|
"nano-banana-pro",
|
|
62
62
|
"qwen-edit",
|
|
63
|
+
"qwen-image-2.1",
|
|
63
64
|
"seedream-v4",
|
|
64
65
|
"seedream-v4.5",
|
|
65
66
|
"seedream-v5-pro",
|
|
@@ -103,6 +104,7 @@ const SchemaOut$V1AiImageEditorCreateBody = z
|
|
|
103
104
|
"nano-banana-2-lite",
|
|
104
105
|
"nano-banana-pro",
|
|
105
106
|
"qwen-edit",
|
|
107
|
+
"qwen-image-2.1",
|
|
106
108
|
"seedream-v4",
|
|
107
109
|
"seedream-v4.5",
|
|
108
110
|
"seedream-v5-pro",
|
|
@@ -39,6 +39,10 @@
|
|
|
39
39
|
* - Supported resolutions: 1k, 2k, 4k
|
|
40
40
|
* - Available for tiers: creator, pro, business
|
|
41
41
|
* - Image count allowed: 1, 4, 9, 16
|
|
42
|
+
* - `qwen-image-2.1` - from 10 credits/image
|
|
43
|
+
* - Supported resolutions: 640px, 1k, 2k
|
|
44
|
+
* - Available for tiers: free, creator, pro, business
|
|
45
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
42
46
|
* - `seedream-v4` - from 40 credits/image
|
|
43
47
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
44
48
|
* - Available for tiers: creator, pro, business
|
|
@@ -56,4 +60,4 @@
|
|
|
56
60
|
* - `seedream` - Use `seedream-v4` instead.
|
|
57
61
|
*
|
|
58
62
|
*/
|
|
59
|
-
export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo";
|
|
63
|
+
export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo";
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* - `nano-banana-2` - 640px, 1k, 2k, 4k
|
|
19
19
|
* - `nano-banana-2-lite` - 640px, 1k
|
|
20
20
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
21
|
+
* - `qwen-image-2.1` - 640px, 1k, 2k
|
|
21
22
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
22
23
|
* - `seedream-v5-pro` - 640px, 1k, 2k
|
|
23
24
|
* - `z-image-turbo` - 640px, 1k, 2k
|
|
@@ -53,6 +53,10 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
53
53
|
* - Supported resolutions: 1k, 2k, 4k
|
|
54
54
|
* - Available for tiers: creator, pro, business
|
|
55
55
|
* - Image count allowed: 1, 4, 9, 16
|
|
56
|
+
* - `qwen-image-2.1` - from 10 credits/image
|
|
57
|
+
* - Supported resolutions: 640px, 1k, 2k
|
|
58
|
+
* - Available for tiers: free, creator, pro, business
|
|
59
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
56
60
|
* - `seedream-v4` - from 40 credits/image
|
|
57
61
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
58
62
|
* - Available for tiers: creator, pro, business
|
|
@@ -70,7 +74,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
70
74
|
* - `seedream` - Use `seedream-v4` instead.
|
|
71
75
|
*
|
|
72
76
|
*/
|
|
73
|
-
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
77
|
+
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
74
78
|
/**
|
|
75
79
|
* Give your image a custom name for easy identification.
|
|
76
80
|
*/
|
|
@@ -101,6 +105,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
101
105
|
* - `nano-banana-2` - 640px, 1k, 2k, 4k
|
|
102
106
|
* - `nano-banana-2-lite` - 640px, 1k
|
|
103
107
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
108
|
+
* - `qwen-image-2.1` - 640px, 1k, 2k
|
|
104
109
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
105
110
|
* - `seedream-v5-pro` - 640px, 1k, 2k
|
|
106
111
|
* - `z-image-turbo` - 640px, 1k, 2k
|
|
@@ -121,7 +126,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
121
126
|
export type External$V1AiImageGeneratorCreateBody = {
|
|
122
127
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
123
128
|
image_count: number;
|
|
124
|
-
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
129
|
+
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
125
130
|
name?: string | undefined;
|
|
126
131
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
127
132
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
@@ -56,6 +56,7 @@ const SchemaIn$V1AiImageGeneratorCreateBody = z
|
|
|
56
56
|
"nano-banana-2",
|
|
57
57
|
"nano-banana-2-lite",
|
|
58
58
|
"nano-banana-pro",
|
|
59
|
+
"qwen-image-2.1",
|
|
59
60
|
"seedream",
|
|
60
61
|
"seedream-v4",
|
|
61
62
|
"seedream-v5-pro",
|
|
@@ -98,6 +99,7 @@ const SchemaOut$V1AiImageGeneratorCreateBody = z
|
|
|
98
99
|
"nano-banana-2",
|
|
99
100
|
"nano-banana-2-lite",
|
|
100
101
|
"nano-banana-pro",
|
|
102
|
+
"qwen-image-2.1",
|
|
101
103
|
"seedream",
|
|
102
104
|
"seedream-v4",
|
|
103
105
|
"seedream-v5-pro",
|
|
@@ -10,7 +10,7 @@ export type V1AiVideoEditorCreateBody = {
|
|
|
10
10
|
*/
|
|
11
11
|
assets: V1AiVideoEditorCreateBodyAssets;
|
|
12
12
|
/**
|
|
13
|
-
* End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni-1.1`: 3s, LTX 2.5: 0.5s. Maximum duration depends on model: `gemini-omni-1.1`: 10s, LTX 2.5:
|
|
13
|
+
* End time of your clip in seconds. Must be greater than `start_seconds`. Minimum duration depends on model: `gemini-omni-1.1`: 3s, LTX 2.5: 0.5s. Maximum duration depends on model: `gemini-omni-1.1`: 10s, LTX 2.5: 20s.
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
16
|
/**
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model to use. Defaults to `wan-animate`.
|
|
3
|
+
*
|
|
4
|
+
* * **`wan-animate`**: 480p, 720p. Supports `points` subject selection.
|
|
5
|
+
* * **`kling-3.0`**: 720p, 1080p. Clips of 3–10 seconds in `replace` mode or 3–30 seconds in `animate` mode. Picks the main person automatically, so `points` are rejected.
|
|
6
|
+
*/
|
|
7
|
+
export type V1CharacterReplaceCreateBodyModelEnum = "kling-3.0" | "wan-animate";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Output video resolution. Defaults to
|
|
2
|
+
* Output video resolution. Must be supported by `model`. Defaults to the lowest resolution available on your plan for that model.
|
|
3
3
|
*/
|
|
4
|
-
export type V1CharacterReplaceCreateBodyResolutionEnum = "480p" | "720p";
|
|
4
|
+
export type V1CharacterReplaceCreateBodyResolutionEnum = "1080p" | "480p" | "720p";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* How to locate the subject in the source video. `auto` detects a person automatically. `point` uses your `points` to mark the subject
|
|
2
|
+
* How to locate the subject in the source video. `auto` detects a person automatically. `point` uses your `points` to mark the subject and is supported by `wan-animate`. Defaults to `auto`.
|
|
3
3
|
*/
|
|
4
4
|
export type V1CharacterReplaceCreateBodyStyleSelectionModeEnum = "auto" | "point";
|
|
@@ -9,11 +9,11 @@ export type V1CharacterReplaceCreateBodyStyle = {
|
|
|
9
9
|
*/
|
|
10
10
|
mode?: ("animate" | "replace") | undefined;
|
|
11
11
|
/**
|
|
12
|
-
* On-frame markers for manual subject selection. Required when `selection_mode` is `point`. Ignored when `selection_mode` is `auto` or omitted.
|
|
12
|
+
* On-frame markers for manual subject selection. Required when `selection_mode` is `point`. Ignored when `selection_mode` is `auto` or omitted. Rejected for models without subject selection (supported by `wan-animate`).
|
|
13
13
|
*/
|
|
14
14
|
points?: V1CharacterReplaceCreateBodyStylePointsItem[] | undefined;
|
|
15
15
|
/**
|
|
16
|
-
* How to locate the subject in the source video. `auto` detects a person automatically. `point` uses your `points` to mark the subject
|
|
16
|
+
* How to locate the subject in the source video. `auto` detects a person automatically. `point` uses your `points` to mark the subject and is supported by `wan-animate`. Defaults to `auto`.
|
|
17
17
|
*/
|
|
18
18
|
selectionMode?: ("auto" | "point") | undefined;
|
|
19
19
|
};
|
|
@@ -13,14 +13,21 @@ export type V1CharacterReplaceCreateBody = {
|
|
|
13
13
|
* End time of your clip (seconds). Must be greater than start_seconds.
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
|
+
/**
|
|
17
|
+
* Model to use. Defaults to `wan-animate`.
|
|
18
|
+
*
|
|
19
|
+
* * **`wan-animate`**: 480p, 720p. Supports `points` subject selection.
|
|
20
|
+
* * **`kling-3.0`**: 720p, 1080p. Clips of 3–10 seconds in `replace` mode or 3–30 seconds in `animate` mode. Picks the main person automatically, so `points` are rejected.
|
|
21
|
+
*/
|
|
22
|
+
model?: ("kling-3.0" | "wan-animate") | undefined;
|
|
16
23
|
/**
|
|
17
24
|
* Give your video a custom name for easy identification.
|
|
18
25
|
*/
|
|
19
26
|
name?: string | undefined;
|
|
20
27
|
/**
|
|
21
|
-
* Output video resolution. Defaults to
|
|
28
|
+
* Output video resolution. Must be supported by `model`. Defaults to the lowest resolution available on your plan for that model.
|
|
22
29
|
*/
|
|
23
|
-
resolution?: ("480p" | "720p") | undefined;
|
|
30
|
+
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
24
31
|
/**
|
|
25
32
|
* Start time of your clip (seconds). Must be ≥ 0.
|
|
26
33
|
*/
|
|
@@ -38,8 +45,9 @@ export type V1CharacterReplaceCreateBody = {
|
|
|
38
45
|
export type External$V1CharacterReplaceCreateBody = {
|
|
39
46
|
assets: External$V1CharacterReplaceCreateBodyAssets;
|
|
40
47
|
end_seconds: number;
|
|
48
|
+
model?: ("kling-3.0" | "wan-animate") | undefined;
|
|
41
49
|
name?: string | undefined;
|
|
42
|
-
resolution?: ("480p" | "720p") | undefined;
|
|
50
|
+
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
43
51
|
start_seconds?: number | undefined;
|
|
44
52
|
style?: External$V1CharacterReplaceCreateBodyStyle | undefined;
|
|
45
53
|
};
|
|
@@ -45,8 +45,9 @@ const SchemaIn$V1CharacterReplaceCreateBody = z
|
|
|
45
45
|
.object({
|
|
46
46
|
assets: v1_character_replace_create_body_assets_1.Schemas$V1CharacterReplaceCreateBodyAssets.in,
|
|
47
47
|
end_seconds: z.number(),
|
|
48
|
+
model: z.enum(["kling-3.0", "wan-animate"]).optional(),
|
|
48
49
|
name: z.string().optional(),
|
|
49
|
-
resolution: z.enum(["480p", "720p"]).optional(),
|
|
50
|
+
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
50
51
|
start_seconds: z.number().optional(),
|
|
51
52
|
style: v1_character_replace_create_body_style_1.Schemas$V1CharacterReplaceCreateBodyStyle.in.optional(),
|
|
52
53
|
})
|
|
@@ -54,6 +55,7 @@ const SchemaIn$V1CharacterReplaceCreateBody = z
|
|
|
54
55
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
55
56
|
assets: "assets",
|
|
56
57
|
end_seconds: "endSeconds",
|
|
58
|
+
model: "model",
|
|
57
59
|
name: "name",
|
|
58
60
|
resolution: "resolution",
|
|
59
61
|
start_seconds: "startSeconds",
|
|
@@ -68,8 +70,9 @@ const SchemaOut$V1CharacterReplaceCreateBody = z
|
|
|
68
70
|
.object({
|
|
69
71
|
assets: v1_character_replace_create_body_assets_1.Schemas$V1CharacterReplaceCreateBodyAssets.out,
|
|
70
72
|
endSeconds: z.number(),
|
|
73
|
+
model: z.enum(["kling-3.0", "wan-animate"]).optional(),
|
|
71
74
|
name: z.string().optional(),
|
|
72
|
-
resolution: z.enum(["480p", "720p"]).optional(),
|
|
75
|
+
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
73
76
|
startSeconds: z.number().optional(),
|
|
74
77
|
style: v1_character_replace_create_body_style_1.Schemas$V1CharacterReplaceCreateBodyStyle.out.optional(),
|
|
75
78
|
})
|
|
@@ -77,6 +80,7 @@ const SchemaOut$V1CharacterReplaceCreateBody = z
|
|
|
77
80
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
78
81
|
assets: "assets",
|
|
79
82
|
endSeconds: "end_seconds",
|
|
83
|
+
model: "model",
|
|
80
84
|
name: "name",
|
|
81
85
|
resolution: "resolution",
|
|
82
86
|
startSeconds: "start_seconds",
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A specific version of our lip sync system, optimized for different needs.
|
|
3
3
|
* * `lite` - Fast lip sync - best for simple videos. Costs 1 credit per frame of video.
|
|
4
|
-
* * `standard` - Natural, accurate lip sync - best for most creators. Costs 1 credit per frame of video.
|
|
5
|
-
* * `pro` - Premium fidelity with enhanced detail - best for professionals. Costs 2 credits per frame of video.
|
|
4
|
+
* * `standard` - Natural, accurate lip sync - best for most creators. Requires visible mouth movement in the opening seconds of the input video. Costs 1 credit per frame of video.
|
|
5
|
+
* * `pro` - Premium fidelity with enhanced detail - best for professionals. Requires visible mouth movement in the opening seconds of the input video. Costs 2 credits per frame of video.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* If your source is a still image, including a still image saved as a static video, use [AI Talking Photo](https://docs.magichour.ai/api-reference/video-projects/ai-talking-photo) with the original image and your audio instead.
|
|
8
|
+
*
|
|
9
|
+
* Note: `pro` is only available for users on Creator, Pro, and Business tiers.
|
|
8
10
|
*
|
|
9
11
|
*/
|
|
10
12
|
export type V1LipSyncCreateBodyStyleGenerationModeEnum = "lite" | "pro" | "standard";
|
|
@@ -6,10 +6,12 @@ export type V1LipSyncCreateBodyStyle = {
|
|
|
6
6
|
/**
|
|
7
7
|
* A specific version of our lip sync system, optimized for different needs.
|
|
8
8
|
* * `lite` - Fast lip sync - best for simple videos. Costs 1 credit per frame of video.
|
|
9
|
-
* * `standard` - Natural, accurate lip sync - best for most creators. Costs 1 credit per frame of video.
|
|
10
|
-
* * `pro` - Premium fidelity with enhanced detail - best for professionals. Costs 2 credits per frame of video.
|
|
9
|
+
* * `standard` - Natural, accurate lip sync - best for most creators. Requires visible mouth movement in the opening seconds of the input video. Costs 1 credit per frame of video.
|
|
10
|
+
* * `pro` - Premium fidelity with enhanced detail - best for professionals. Requires visible mouth movement in the opening seconds of the input video. Costs 2 credits per frame of video.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* If your source is a still image, including a still image saved as a static video, use [AI Talking Photo](https://docs.magichour.ai/api-reference/video-projects/ai-talking-photo) with the original image and your audio instead.
|
|
13
|
+
*
|
|
14
|
+
* Note: `pro` is only available for users on Creator, Pro, and Business tiers.
|
|
13
15
|
*
|
|
14
16
|
*/
|
|
15
17
|
generationMode?: ("lite" | "pro" | "standard") | undefined;
|
|
@@ -70,7 +70,7 @@ export type V1VideoProjectsGetResponse = {
|
|
|
70
70
|
*/
|
|
71
71
|
totalFrameCost: number;
|
|
72
72
|
/**
|
|
73
|
-
* 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, AVATAR, VIDEO_UPSCALER, VIDEO_EDITOR, CHARACTER_REPLACE, VIDEO_COLORIZER, VIDEO_COLOR_GRADER, VIDEO_TRANSLATOR, MUSIC_VIDEO, EXTEND, AUDIO_TO_VIDEO, VIDEO_EXPANDER, UGC_AD
|
|
73
|
+
* 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, AVATAR, VIDEO_UPSCALER, VIDEO_EDITOR, CHARACTER_REPLACE, VIDEO_COLORIZER, VIDEO_WATERMARK_REMOVER, VIDEO_COLOR_GRADER, VIDEO_TRANSLATOR, MUSIC_VIDEO, EXTEND, AUDIO_TO_VIDEO, VIDEO_EXPANDER, UGC_AD
|
|
74
74
|
*/
|
|
75
75
|
type: string;
|
|
76
76
|
/**
|