magic-hour 0.73.0 → 0.74.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/image-to-video/request-types.d.ts +3 -3
- package/dist/resources/v1/image-to-video/request-types.js +2 -2
- package/dist/resources/v1/text-to-video/request-types.d.ts +3 -3
- package/dist/resources/v1/text-to-video/request-types.js +2 -2
- package/dist/types/v1-image-projects-get-response.d.ts +1 -1
- package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +1 -1
- package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +1 -1
- package/dist/types/v1-image-to-video-create-body.d.ts +3 -3
- package/dist/types/v1-image-to-video-create-body.js +2 -2
- package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +1 -1
- package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +1 -1
- package/dist/types/v1-text-to-video-create-body.d.ts +3 -3
- package/dist/types/v1-text-to-video-create-body.js +2 -2
- package/dist/types/v1-video-projects-get-response.d.ts +1 -1
- package/package.json +1 -1
package/dist/environment.d.ts
CHANGED
package/dist/environment.js
CHANGED
|
@@ -4,5 +4,5 @@ exports.Environment = void 0;
|
|
|
4
4
|
var Environment;
|
|
5
5
|
(function (Environment) {
|
|
6
6
|
Environment["Environment"] = "https://api.magichour.ai";
|
|
7
|
-
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.
|
|
7
|
+
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.78.1";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -59,7 +59,7 @@ export type CreateRequest = {
|
|
|
59
59
|
/**
|
|
60
60
|
* The AI model to use for video generation.
|
|
61
61
|
*
|
|
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.
|
|
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.5`.
|
|
63
63
|
* * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.
|
|
64
64
|
* * `kling-2.6`: Best for action, motion blur, and controlled camera moves.
|
|
65
65
|
* * `kling-3.0`: Best for cinematic stories, references, and optional audio.
|
|
@@ -101,7 +101,7 @@ export type CreateRequest = {
|
|
|
101
101
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
102
102
|
*
|
|
103
103
|
*/
|
|
104
|
-
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
|
|
104
|
+
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
105
105
|
/**
|
|
106
106
|
* Attributed used to dictate the style of the output
|
|
107
107
|
*/
|
|
@@ -125,7 +125,7 @@ export type External$CreateRequest = {
|
|
|
125
125
|
height?: number | null | undefined;
|
|
126
126
|
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
127
127
|
name?: string | undefined;
|
|
128
|
-
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
|
|
128
|
+
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
129
129
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
130
130
|
width?: number | null | undefined;
|
|
131
131
|
};
|
|
@@ -73,7 +73,7 @@ const SchemaIn$CreateRequest = z
|
|
|
73
73
|
])
|
|
74
74
|
.optional(),
|
|
75
75
|
name: z.string().optional(),
|
|
76
|
-
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
|
|
76
|
+
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
77
77
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.in.optional(),
|
|
78
78
|
width: z.number().int().nullable().optional(),
|
|
79
79
|
})
|
|
@@ -126,7 +126,7 @@ const SchemaOut$CreateRequest = z
|
|
|
126
126
|
])
|
|
127
127
|
.optional(),
|
|
128
128
|
name: z.string().optional(),
|
|
129
|
-
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
|
|
129
|
+
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
130
130
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.out.optional(),
|
|
131
131
|
width: z.number().int().nullable().optional(),
|
|
132
132
|
})
|
|
@@ -68,7 +68,7 @@ export type CreateRequest = {
|
|
|
68
68
|
/**
|
|
69
69
|
* The AI model to use for video generation.
|
|
70
70
|
*
|
|
71
|
-
* * `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.
|
|
71
|
+
* * `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`.
|
|
72
72
|
* * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.
|
|
73
73
|
* * `kling-2.6`: Best for action, motion blur, and controlled camera moves.
|
|
74
74
|
* * `kling-3.0`: Best for cinematic stories, references, and optional audio.
|
|
@@ -114,7 +114,7 @@ export type CreateRequest = {
|
|
|
114
114
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
115
115
|
*
|
|
116
116
|
*/
|
|
117
|
-
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
|
|
117
|
+
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
118
118
|
style: V1TextToVideoCreateBodyStyle;
|
|
119
119
|
};
|
|
120
120
|
/**
|
|
@@ -129,7 +129,7 @@ export type External$CreateRequest = {
|
|
|
129
129
|
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
130
130
|
name?: string | undefined;
|
|
131
131
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
132
|
-
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
|
|
132
|
+
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
133
133
|
style: External$V1TextToVideoCreateBodyStyle;
|
|
134
134
|
};
|
|
135
135
|
export declare const Schemas$CreateRequest: {
|
|
@@ -72,7 +72,7 @@ const SchemaIn$CreateRequest = z
|
|
|
72
72
|
.optional(),
|
|
73
73
|
name: z.string().optional(),
|
|
74
74
|
orientation: z.enum(["landscape", "portrait", "square"]).optional(),
|
|
75
|
-
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
|
|
75
|
+
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
76
76
|
style: v1_text_to_video_create_body_style_1.Schemas$V1TextToVideoCreateBodyStyle.in,
|
|
77
77
|
})
|
|
78
78
|
.transform((obj) => {
|
|
@@ -123,7 +123,7 @@ const SchemaOut$CreateRequest = z
|
|
|
123
123
|
.optional(),
|
|
124
124
|
name: z.string().optional(),
|
|
125
125
|
orientation: z.enum(["landscape", "portrait", "square"]).optional(),
|
|
126
|
-
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
|
|
126
|
+
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
127
127
|
style: v1_text_to_video_create_body_style_1.Schemas$V1TextToVideoCreateBodyStyle.out,
|
|
128
128
|
})
|
|
129
129
|
.transform((obj) => {
|
|
@@ -51,7 +51,7 @@ export type V1ImageProjectsGetResponse = {
|
|
|
51
51
|
*/
|
|
52
52
|
totalFrameCost: number;
|
|
53
53
|
/**
|
|
54
|
-
* The type of the image project. Possible values are FACE_EDITOR, AI_IMAGE_EDITOR, AI_SELFIE, AI_HEADSHOT, AI_INFLUENCER, AI_IMAGE, AI_MEME, CLOTHES_CHANGER, BACKGROUND_REMOVER, FACE_SWAP, IMAGE_UPSCALER, IMAGE_ENHANCER, AI_GIF, QR_CODE, PHOTO_EDITOR, PHOTO_COLORIZER, HEAD_SWAP, BODY_SWAP, STORYBOARD, IMAGE_EXPANDER
|
|
54
|
+
* The type of the image project. Possible values are FACE_EDITOR, AI_IMAGE_EDITOR, AI_SELFIE, AI_HEADSHOT, AI_INFLUENCER, AI_IMAGE, AI_MEME, CLOTHES_CHANGER, BACKGROUND_REMOVER, FACE_SWAP, IMAGE_UPSCALER, IMAGE_ENHANCER, AI_GIF, QR_CODE, PHOTO_EDITOR, PHOTO_COLORIZER, IMAGE_COLOR_GRADER, HEAD_SWAP, BODY_SWAP, STORYBOARD, IMAGE_EXPANDER
|
|
55
55
|
*/
|
|
56
56
|
type: string;
|
|
57
57
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
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.
|
|
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`.
|
|
5
5
|
* * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.
|
|
6
6
|
* * `kling-2.6`: Best for action, motion blur, and controlled camera moves.
|
|
7
7
|
* * `kling-3.0`: Best for cinematic stories, references, and optional audio.
|
|
@@ -59,7 +59,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
59
59
|
/**
|
|
60
60
|
* The AI model to use for video generation.
|
|
61
61
|
*
|
|
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.
|
|
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.5`.
|
|
63
63
|
* * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.
|
|
64
64
|
* * `kling-2.6`: Best for action, motion blur, and controlled camera moves.
|
|
65
65
|
* * `kling-3.0`: Best for cinematic stories, references, and optional audio.
|
|
@@ -101,7 +101,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
101
101
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
102
102
|
*
|
|
103
103
|
*/
|
|
104
|
-
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
|
|
104
|
+
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
105
105
|
/**
|
|
106
106
|
* Attributed used to dictate the style of the output
|
|
107
107
|
*/
|
|
@@ -125,7 +125,7 @@ export type External$V1ImageToVideoCreateBody = {
|
|
|
125
125
|
height?: number | null | undefined;
|
|
126
126
|
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
127
127
|
name?: string | undefined;
|
|
128
|
-
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
|
|
128
|
+
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
129
129
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
130
130
|
width?: number | null | undefined;
|
|
131
131
|
};
|
|
@@ -73,7 +73,7 @@ const SchemaIn$V1ImageToVideoCreateBody = z
|
|
|
73
73
|
])
|
|
74
74
|
.optional(),
|
|
75
75
|
name: z.string().optional(),
|
|
76
|
-
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
|
|
76
|
+
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
77
77
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.in.optional(),
|
|
78
78
|
width: z.number().int().nullable().optional(),
|
|
79
79
|
})
|
|
@@ -126,7 +126,7 @@ const SchemaOut$V1ImageToVideoCreateBody = z
|
|
|
126
126
|
])
|
|
127
127
|
.optional(),
|
|
128
128
|
name: z.string().optional(),
|
|
129
|
-
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
|
|
129
|
+
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
130
130
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.out.optional(),
|
|
131
131
|
width: z.number().int().nullable().optional(),
|
|
132
132
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
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.
|
|
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`.
|
|
5
5
|
* * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.
|
|
6
6
|
* * `kling-2.6`: Best for action, motion blur, and controlled camera moves.
|
|
7
7
|
* * `kling-3.0`: Best for cinematic stories, references, and optional audio.
|
|
@@ -68,7 +68,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
68
68
|
/**
|
|
69
69
|
* The AI model to use for video generation.
|
|
70
70
|
*
|
|
71
|
-
* * `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.
|
|
71
|
+
* * `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`.
|
|
72
72
|
* * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.
|
|
73
73
|
* * `kling-2.6`: Best for action, motion blur, and controlled camera moves.
|
|
74
74
|
* * `kling-3.0`: Best for cinematic stories, references, and optional audio.
|
|
@@ -114,7 +114,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
114
114
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
115
115
|
*
|
|
116
116
|
*/
|
|
117
|
-
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
|
|
117
|
+
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
118
118
|
style: V1TextToVideoCreateBodyStyle;
|
|
119
119
|
};
|
|
120
120
|
/**
|
|
@@ -129,7 +129,7 @@ export type External$V1TextToVideoCreateBody = {
|
|
|
129
129
|
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
130
130
|
name?: string | undefined;
|
|
131
131
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
132
|
-
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
|
|
132
|
+
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
133
133
|
style: External$V1TextToVideoCreateBodyStyle;
|
|
134
134
|
};
|
|
135
135
|
export declare const Schemas$V1TextToVideoCreateBody: {
|
|
@@ -72,7 +72,7 @@ const SchemaIn$V1TextToVideoCreateBody = z
|
|
|
72
72
|
.optional(),
|
|
73
73
|
name: z.string().optional(),
|
|
74
74
|
orientation: z.enum(["landscape", "portrait", "square"]).optional(),
|
|
75
|
-
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
|
|
75
|
+
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
76
76
|
style: v1_text_to_video_create_body_style_1.Schemas$V1TextToVideoCreateBodyStyle.in,
|
|
77
77
|
})
|
|
78
78
|
.transform((obj) => {
|
|
@@ -123,7 +123,7 @@ const SchemaOut$V1TextToVideoCreateBody = z
|
|
|
123
123
|
.optional(),
|
|
124
124
|
name: z.string().optional(),
|
|
125
125
|
orientation: z.enum(["landscape", "portrait", "square"]).optional(),
|
|
126
|
-
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
|
|
126
|
+
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
127
127
|
style: v1_text_to_video_create_body_style_1.Schemas$V1TextToVideoCreateBodyStyle.out,
|
|
128
128
|
})
|
|
129
129
|
.transform((obj) => {
|
|
@@ -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_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_COLOR_GRADER, VIDEO_TRANSLATOR, MUSIC_VIDEO, EXTEND, AUDIO_TO_VIDEO, VIDEO_EXPANDER, UGC_AD
|
|
74
74
|
*/
|
|
75
75
|
type: string;
|
|
76
76
|
/**
|