magic-hour 0.0.8 → 0.1.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 +55 -4
- package/dist/resources/v1/ai-headshot-generator/request-types.d.ts +3 -0
- package/dist/resources/v1/ai-headshot-generator/resource-client.d.ts +2 -0
- package/dist/resources/v1/ai-headshot-generator/resource-client.js +2 -0
- package/dist/resources/v1/ai-image-generator/request-types.d.ts +3 -0
- package/dist/resources/v1/ai-image-generator/resource-client.d.ts +2 -0
- package/dist/resources/v1/ai-image-generator/resource-client.js +2 -0
- package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +3 -0
- package/dist/resources/v1/ai-image-upscaler/resource-client.d.ts +2 -0
- package/dist/resources/v1/ai-image-upscaler/resource-client.js +2 -0
- package/dist/resources/v1/ai-qr-code-generator/request-types.d.ts +3 -0
- package/dist/resources/v1/ai-qr-code-generator/resource-client.d.ts +2 -0
- package/dist/resources/v1/ai-qr-code-generator/resource-client.js +2 -0
- package/dist/resources/v1/face-swap/request-types.d.ts +3 -0
- package/dist/resources/v1/face-swap/resource-client.d.ts +2 -0
- package/dist/resources/v1/face-swap/resource-client.js +2 -0
- package/dist/resources/v1/face-swap-photo/request-types.d.ts +3 -0
- package/dist/resources/v1/face-swap-photo/resource-client.d.ts +2 -0
- package/dist/resources/v1/face-swap-photo/resource-client.js +2 -0
- package/dist/resources/v1/files/upload-urls/request-types.d.ts +3 -0
- package/dist/resources/v1/files/upload-urls/resource-client.d.ts +2 -0
- package/dist/resources/v1/files/upload-urls/resource-client.js +2 -0
- package/dist/resources/v1/image-projects/request-types.d.ts +3 -0
- package/dist/resources/v1/image-projects/resource-client.d.ts +2 -0
- package/dist/resources/v1/image-projects/resource-client.js +2 -0
- package/dist/resources/v1/image-to-video/request-types.d.ts +3 -0
- package/dist/resources/v1/image-to-video/resource-client.d.ts +2 -0
- package/dist/resources/v1/image-to-video/resource-client.js +2 -0
- package/dist/resources/v1/lip-sync/request-types.d.ts +3 -0
- package/dist/resources/v1/lip-sync/resource-client.d.ts +2 -0
- package/dist/resources/v1/lip-sync/resource-client.js +2 -0
- package/dist/resources/v1/text-to-video/request-types.d.ts +3 -0
- package/dist/resources/v1/text-to-video/resource-client.d.ts +2 -0
- package/dist/resources/v1/text-to-video/resource-client.js +2 -0
- package/dist/resources/v1/video-projects/request-types.d.ts +3 -0
- package/dist/resources/v1/video-projects/resource-client.d.ts +2 -0
- package/dist/resources/v1/video-projects/resource-client.js +2 -0
- package/dist/resources/v1/video-to-video/request-types.d.ts +3 -0
- package/dist/resources/v1/video-to-video/resource-client.d.ts +2 -0
- package/dist/resources/v1/video-to-video/resource-client.js +2 -0
- package/dist/types/get-v1-image-projects-id-response-downloads-item.d.ts +3 -0
- package/dist/types/get-v1-image-projects-id-response.d.ts +3 -0
- package/dist/types/get-v1-image-projects-id-response400.d.ts +3 -0
- package/dist/types/get-v1-image-projects-id-response401.d.ts +3 -0
- package/dist/types/get-v1-image-projects-id-response404.d.ts +3 -0
- package/dist/types/get-v1-video-projects-id-response-download.d.ts +3 -0
- package/dist/types/get-v1-video-projects-id-response.d.ts +5 -2
- package/dist/types/get-v1-video-projects-id-response400.d.ts +3 -0
- package/dist/types/get-v1-video-projects-id-response401.d.ts +3 -0
- package/dist/types/get-v1-video-projects-id-response404.d.ts +3 -0
- package/dist/types/post-v1-ai-headshot-generator-body-assets.d.ts +4 -1
- package/dist/types/post-v1-ai-headshot-generator-body.d.ts +4 -1
- package/dist/types/post-v1-ai-headshot-generator-response.d.ts +3 -0
- package/dist/types/post-v1-ai-headshot-generator-response400.d.ts +3 -0
- package/dist/types/post-v1-ai-headshot-generator-response401.d.ts +3 -0
- package/dist/types/post-v1-ai-headshot-generator-response404.d.ts +3 -0
- package/dist/types/post-v1-ai-headshot-generator-response422.d.ts +3 -0
- package/dist/types/post-v1-ai-image-generator-body-style.d.ts +3 -0
- package/dist/types/post-v1-ai-image-generator-body.d.ts +4 -1
- package/dist/types/post-v1-ai-image-generator-response.d.ts +3 -0
- package/dist/types/post-v1-ai-image-generator-response400.d.ts +3 -0
- package/dist/types/post-v1-ai-image-generator-response401.d.ts +3 -0
- package/dist/types/post-v1-ai-image-generator-response404.d.ts +3 -0
- package/dist/types/post-v1-ai-image-generator-response422.d.ts +3 -0
- package/dist/types/post-v1-ai-image-upscaler-body-assets.d.ts +4 -1
- package/dist/types/post-v1-ai-image-upscaler-body-style.d.ts +4 -1
- package/dist/types/post-v1-ai-image-upscaler-body.d.ts +4 -1
- package/dist/types/post-v1-ai-image-upscaler-response.d.ts +3 -0
- package/dist/types/post-v1-ai-image-upscaler-response400.d.ts +3 -0
- package/dist/types/post-v1-ai-image-upscaler-response401.d.ts +3 -0
- package/dist/types/post-v1-ai-image-upscaler-response404.d.ts +3 -0
- package/dist/types/post-v1-ai-image-upscaler-response422.d.ts +3 -0
- package/dist/types/post-v1-ai-qr-code-generator-body-style.d.ts +3 -0
- package/dist/types/post-v1-ai-qr-code-generator-body.d.ts +4 -1
- package/dist/types/post-v1-ai-qr-code-generator-response.d.ts +3 -0
- package/dist/types/post-v1-ai-qr-code-generator-response400.d.ts +3 -0
- package/dist/types/post-v1-ai-qr-code-generator-response401.d.ts +3 -0
- package/dist/types/post-v1-ai-qr-code-generator-response404.d.ts +3 -0
- package/dist/types/post-v1-ai-qr-code-generator-response422.d.ts +3 -0
- package/dist/types/post-v1-face-swap-body-assets.d.ts +6 -3
- package/dist/types/post-v1-face-swap-body.d.ts +5 -2
- package/dist/types/post-v1-face-swap-photo-body-assets.d.ts +5 -2
- package/dist/types/post-v1-face-swap-photo-body.d.ts +4 -1
- package/dist/types/post-v1-face-swap-photo-response.d.ts +3 -0
- package/dist/types/post-v1-face-swap-photo-response400.d.ts +3 -0
- package/dist/types/post-v1-face-swap-photo-response401.d.ts +3 -0
- package/dist/types/post-v1-face-swap-photo-response404.d.ts +3 -0
- package/dist/types/post-v1-face-swap-photo-response422.d.ts +3 -0
- package/dist/types/post-v1-face-swap-response.d.ts +3 -0
- package/dist/types/post-v1-face-swap-response400.d.ts +3 -0
- package/dist/types/post-v1-face-swap-response401.d.ts +3 -0
- package/dist/types/post-v1-face-swap-response404.d.ts +3 -0
- package/dist/types/post-v1-face-swap-response422.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-body-items-item.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-body.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-response-items-item.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-response.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-response400.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-response401.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-response404.d.ts +3 -0
- package/dist/types/post-v1-files-upload-urls-response422.d.ts +3 -0
- package/dist/types/post-v1-image-to-video-body-assets.d.ts +4 -1
- package/dist/types/post-v1-image-to-video-body-style.d.ts +3 -0
- package/dist/types/post-v1-image-to-video-body.d.ts +4 -1
- package/dist/types/post-v1-image-to-video-response.d.ts +3 -0
- package/dist/types/post-v1-image-to-video-response400.d.ts +3 -0
- package/dist/types/post-v1-image-to-video-response401.d.ts +3 -0
- package/dist/types/post-v1-image-to-video-response404.d.ts +3 -0
- package/dist/types/post-v1-image-to-video-response422.d.ts +3 -0
- package/dist/types/post-v1-lip-sync-body-assets.d.ts +6 -3
- package/dist/types/post-v1-lip-sync-body.d.ts +9 -2
- package/dist/types/post-v1-lip-sync-response.d.ts +3 -0
- package/dist/types/post-v1-lip-sync-response400.d.ts +3 -0
- package/dist/types/post-v1-lip-sync-response401.d.ts +3 -0
- package/dist/types/post-v1-lip-sync-response404.d.ts +3 -0
- package/dist/types/post-v1-lip-sync-response422.d.ts +3 -0
- package/dist/types/post-v1-text-to-video-body-style.d.ts +3 -0
- package/dist/types/post-v1-text-to-video-body.d.ts +4 -1
- package/dist/types/post-v1-text-to-video-response.d.ts +3 -0
- package/dist/types/post-v1-text-to-video-response400.d.ts +3 -0
- package/dist/types/post-v1-text-to-video-response401.d.ts +3 -0
- package/dist/types/post-v1-text-to-video-response404.d.ts +3 -0
- package/dist/types/post-v1-text-to-video-response422.d.ts +3 -0
- package/dist/types/post-v1-video-to-video-body-assets.d.ts +5 -2
- package/dist/types/post-v1-video-to-video-body-style.d.ts +14 -11
- package/dist/types/post-v1-video-to-video-body.d.ts +7 -4
- package/dist/types/post-v1-video-to-video-response.d.ts +3 -0
- package/dist/types/post-v1-video-to-video-response400.d.ts +3 -0
- package/dist/types/post-v1-video-to-video-response401.d.ts +3 -0
- package/dist/types/post-v1-video-to-video-response404.d.ts +3 -0
- package/dist/types/post-v1-video-to-video-response422.d.ts +3 -0
- package/package.json +12 -2
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* PostV1ImageToVideoBody
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1ImageToVideoBody = {
|
|
6
9
|
/**
|
|
7
10
|
* Provide the assets for image-to-video.
|
|
@@ -18,7 +21,7 @@ export declare type PostV1ImageToVideoBody = {
|
|
|
18
21
|
/**
|
|
19
22
|
* The name of video
|
|
20
23
|
*/
|
|
21
|
-
name?: string
|
|
24
|
+
name?: string;
|
|
22
25
|
style: types.PostV1ImageToVideoBodyStyle;
|
|
23
26
|
/**
|
|
24
27
|
* The width of the input video. This value will help determine the final orientation of the output video. The output video resolution may not match the input.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
/**
|
|
5
|
+
* Success
|
|
6
|
+
*/
|
|
4
7
|
export declare type PostV1ImageToVideoResponse = {
|
|
5
8
|
/**
|
|
6
9
|
* Estimated cost of the video in terms of number of frames needed to render the video. Frames will be adjusted when the video completes
|
|
@@ -2,18 +2,21 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Provide the assets for lip-sync. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1LipSyncBodyAssets = {
|
|
6
9
|
/**
|
|
7
|
-
* The path of the audio file. This is the
|
|
10
|
+
* The path of the audio file. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
|
|
8
11
|
*/
|
|
9
12
|
audio_file_path: string;
|
|
10
13
|
/**
|
|
11
|
-
* The path of the input video. This is the
|
|
14
|
+
* The path of the input video. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls). This field is required if `video_source` is `file`
|
|
12
15
|
*/
|
|
13
16
|
video_file_path?: string;
|
|
14
17
|
video_source: types.PostV1LipSyncBodyAssetsVideoSourceEnum;
|
|
15
18
|
/**
|
|
16
|
-
* Using a youtube video as the input source. This field is required if
|
|
19
|
+
* Using a youtube video as the input source. This field is required if `video_source` is `youtube`
|
|
17
20
|
*/
|
|
18
21
|
youtube_url?: string;
|
|
19
22
|
};
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* PostV1LipSyncBody
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1LipSyncBody = {
|
|
6
9
|
/**
|
|
7
|
-
* Provide the assets for lip-sync. For video, The
|
|
10
|
+
* Provide the assets for lip-sync. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
|
|
8
11
|
*/
|
|
9
12
|
assets: types.PostV1LipSyncBodyAssets;
|
|
10
13
|
/**
|
|
@@ -15,10 +18,14 @@ export declare type PostV1LipSyncBody = {
|
|
|
15
18
|
* The height of the final output video. The maximum height depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
|
|
16
19
|
*/
|
|
17
20
|
height: number;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the maximum FPS (frames per second) for the output video. If the input video's FPS is lower than this limit, the output video will retain the input FPS. This is useful for reducing unnecessary frame usage in scenarios where high FPS is not required.
|
|
23
|
+
*/
|
|
24
|
+
max_fps_limit?: number;
|
|
18
25
|
/**
|
|
19
26
|
* The name of video
|
|
20
27
|
*/
|
|
21
|
-
name?: string
|
|
28
|
+
name?: string;
|
|
22
29
|
/**
|
|
23
30
|
* The start time of the input video in seconds
|
|
24
31
|
*/
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* PostV1TextToVideoBody
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1TextToVideoBody = {
|
|
6
9
|
/**
|
|
7
10
|
* The total duration of the output video in seconds.
|
|
@@ -10,7 +13,7 @@ export declare type PostV1TextToVideoBody = {
|
|
|
10
13
|
/**
|
|
11
14
|
* The name of video
|
|
12
15
|
*/
|
|
13
|
-
name?: string
|
|
16
|
+
name?: string;
|
|
14
17
|
/**
|
|
15
18
|
* Determines the orientation of the output video
|
|
16
19
|
*/
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
/**
|
|
5
|
+
* Success
|
|
6
|
+
*/
|
|
4
7
|
export declare type PostV1TextToVideoResponse = {
|
|
5
8
|
/**
|
|
6
9
|
* Estimated cost of the video in terms of number of frames needed to render the video. Frames will be adjusted when the video completes
|
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Provide the assets for video-to-video. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1VideoToVideoBodyAssets = {
|
|
6
9
|
/**
|
|
7
|
-
* The path of the input video. This is the
|
|
10
|
+
* The path of the input video. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls). This field is required if `video_source` is `file`
|
|
8
11
|
*/
|
|
9
12
|
video_file_path?: string;
|
|
10
13
|
video_source: types.PostV1VideoToVideoBodyAssetsVideoSourceEnum;
|
|
11
14
|
/**
|
|
12
|
-
* Using a youtube video as the input source. This field is required if
|
|
15
|
+
* Using a youtube video as the input source. This field is required if `video_source` is `youtube`
|
|
13
16
|
*/
|
|
14
17
|
youtube_url?: string;
|
|
15
18
|
};
|
|
@@ -2,29 +2,32 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* PostV1VideoToVideoBodyStyle
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1VideoToVideoBodyStyle = {
|
|
6
9
|
art_style: types.PostV1VideoToVideoBodyStyleArtStyleEnum;
|
|
7
10
|
/**
|
|
8
|
-
* *
|
|
9
|
-
* *
|
|
10
|
-
* *
|
|
11
|
-
* *
|
|
11
|
+
* * `Dreamshaper` - a good all-around model that works for both animations as well as realism.
|
|
12
|
+
* * `Absolute Reality` - better at realism, but you'll often get similar results with Dreamshaper as well.
|
|
13
|
+
* * `Flat 2D Anime` - best for a flat illustration style that's common in most anime.
|
|
14
|
+
* * `default` - use the default recommended model for the selected art style.
|
|
12
15
|
*/
|
|
13
16
|
model: types.PostV1VideoToVideoBodyStyleModelEnum;
|
|
14
17
|
/**
|
|
15
|
-
* The prompt used for the video. Prompt is required if
|
|
18
|
+
* The prompt used for the video. Prompt is required if `prompt_type` is `custom` or `append_default`. If `prompt_type` is `default`, then the `prompt` value passed will be ignored.
|
|
16
19
|
*/
|
|
17
20
|
prompt?: string | null;
|
|
18
21
|
/**
|
|
19
|
-
* *
|
|
20
|
-
* *
|
|
21
|
-
* *
|
|
22
|
+
* * `default` - Use the default recommended prompt for the art style.
|
|
23
|
+
* * `custom` - Only use the prompt passed in the API. Note: for v1, lora prompt will still be auto added to apply the art style properly.
|
|
24
|
+
* * `append_default` - Add the default recommended prompt to the end of the prompt passed in the API.
|
|
22
25
|
*/
|
|
23
26
|
prompt_type: types.PostV1VideoToVideoBodyStylePromptTypeEnum;
|
|
24
27
|
/**
|
|
25
|
-
* *
|
|
26
|
-
* *
|
|
27
|
-
* *
|
|
28
|
+
* * `v1` - more detail, closer prompt adherence, and frame-by-frame previews.
|
|
29
|
+
* * `v2` - faster, more consistent, and less noisy.
|
|
30
|
+
* * `default` - use the default version for the selected art style.
|
|
28
31
|
*/
|
|
29
32
|
version: types.PostV1VideoToVideoBodyStyleVersionEnum;
|
|
30
33
|
};
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
4
|
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* PostV1VideoToVideoBody
|
|
7
|
+
*/
|
|
5
8
|
export declare type PostV1VideoToVideoBody = {
|
|
6
9
|
/**
|
|
7
|
-
* Provide the assets for video-to-video. For video, The
|
|
10
|
+
* Provide the assets for video-to-video. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
|
|
8
11
|
*/
|
|
9
12
|
assets: types.PostV1VideoToVideoBodyAssets;
|
|
10
13
|
/**
|
|
@@ -13,8 +16,8 @@ export declare type PostV1VideoToVideoBody = {
|
|
|
13
16
|
end_seconds: number;
|
|
14
17
|
/**
|
|
15
18
|
* Determines whether the resulting video will have the same frame per second as the original video, or half.
|
|
16
|
-
* *
|
|
17
|
-
* *
|
|
19
|
+
* * `FULL` - the result video will have the same FPS as the input video
|
|
20
|
+
* * `HALF` - the result video will have half the FPS as the input video
|
|
18
21
|
*/
|
|
19
22
|
fps_resolution?: types.PostV1VideoToVideoBodyFpsResolutionEnum;
|
|
20
23
|
/**
|
|
@@ -24,7 +27,7 @@ export declare type PostV1VideoToVideoBody = {
|
|
|
24
27
|
/**
|
|
25
28
|
* The name of video
|
|
26
29
|
*/
|
|
27
|
-
name?: string
|
|
30
|
+
name?: string;
|
|
28
31
|
/**
|
|
29
32
|
* The start time of the input video in seconds
|
|
30
33
|
*/
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
/**
|
|
5
|
+
* Success
|
|
6
|
+
*/
|
|
4
7
|
export declare type PostV1VideoToVideoResponse = {
|
|
5
8
|
/**
|
|
6
9
|
* Estimated cost of the video in terms of number of frames needed to render the video. Frames will be adjusted when the video completes
|
package/package.json
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magic-hour",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"default": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./types": {
|
|
12
|
+
"types": "./dist/types/index.d.ts",
|
|
13
|
+
"default": "./dist/types/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
6
16
|
"files": [
|
|
7
17
|
"dist",
|
|
8
18
|
"README.md",
|
|
@@ -34,5 +44,5 @@
|
|
|
34
44
|
"tsc-alias": "^1.8.10",
|
|
35
45
|
"typescript": "4.6.4"
|
|
36
46
|
},
|
|
37
|
-
"packageManager": "yarn@
|
|
47
|
+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
38
48
|
}
|