magic-hour 0.92.0 → 0.92.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/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/animation/resource-client.d.ts +2 -2
- package/dist/resources/v1/animation/resource-client.js +2 -2
- package/dist/resources/v1/audio-to-video/resource-client.d.ts +2 -2
- package/dist/resources/v1/audio-to-video/resource-client.js +2 -2
- package/dist/resources/v1/auto-subtitle-generator/resource-client.d.ts +2 -2
- package/dist/resources/v1/auto-subtitle-generator/resource-client.js +2 -2
- package/dist/resources/v1/body-swap/resource-client.d.ts +1 -1
- package/dist/resources/v1/body-swap/resource-client.js +1 -1
- package/dist/resources/v1/character-replace/resource-client.d.ts +2 -2
- package/dist/resources/v1/character-replace/resource-client.js +2 -2
- 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/head-swap/resource-client.d.ts +1 -1
- package/dist/resources/v1/head-swap/resource-client.js +1 -1
- package/dist/resources/v1/image-to-video/request-types.d.ts +1 -1
- 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/text-to-video/request-types.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/types/v1-text-to-video-create-body.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.96.
|
|
7
|
+
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.96.1";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -40,7 +40,7 @@ export declare class AiTalkingPhotoClient extends CoreResourceClient {
|
|
|
40
40
|
* audioFilePath: "/path/to/1234.mp3",
|
|
41
41
|
* imageFilePath: "/path/to/1234.png",
|
|
42
42
|
* },
|
|
43
|
-
* endSeconds:
|
|
43
|
+
* endSeconds: 5.0,
|
|
44
44
|
* name: "Talking Photo image",
|
|
45
45
|
* startSeconds: 0.0,
|
|
46
46
|
* },
|
|
@@ -49,7 +49,7 @@ class AiTalkingPhotoClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
49
49
|
* audioFilePath: "/path/to/1234.mp3",
|
|
50
50
|
* imageFilePath: "/path/to/1234.png",
|
|
51
51
|
* },
|
|
52
|
-
* endSeconds:
|
|
52
|
+
* endSeconds: 5.0,
|
|
53
53
|
* name: "Talking Photo image",
|
|
54
54
|
* startSeconds: 0.0,
|
|
55
55
|
* },
|
|
@@ -41,9 +41,9 @@ export declare class AnimationClient extends CoreResourceClient {
|
|
|
41
41
|
* audioSource: "file",
|
|
42
42
|
* imageFilePath: "/path/to/1234.png",
|
|
43
43
|
* },
|
|
44
|
-
* endSeconds:
|
|
44
|
+
* endSeconds: 5.0,
|
|
45
45
|
* fps: 12.0,
|
|
46
|
-
* height:
|
|
46
|
+
* height: 512,
|
|
47
47
|
* name: "Animation video",
|
|
48
48
|
* style: {
|
|
49
49
|
* artStyle: "Painterly Illustration",
|
|
@@ -50,9 +50,9 @@ class AnimationClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
50
50
|
* audioSource: "file",
|
|
51
51
|
* imageFilePath: "/path/to/1234.png",
|
|
52
52
|
* },
|
|
53
|
-
* endSeconds:
|
|
53
|
+
* endSeconds: 5.0,
|
|
54
54
|
* fps: 12.0,
|
|
55
|
-
* height:
|
|
55
|
+
* height: 512,
|
|
56
56
|
* name: "Animation video",
|
|
57
57
|
* style: {
|
|
58
58
|
* artStyle: "Painterly Illustration",
|
|
@@ -40,9 +40,9 @@ export declare class AudioToVideoClient extends CoreResourceClient {
|
|
|
40
40
|
* audioFilePath: "/path/to/1234.mp3",
|
|
41
41
|
* imageFilePath: "/path/to/1234.png",
|
|
42
42
|
* },
|
|
43
|
-
* endSeconds:
|
|
43
|
+
* endSeconds: 5.0,
|
|
44
44
|
* name: "Audio To Video video",
|
|
45
|
-
* resolution: "
|
|
45
|
+
* resolution: "480p",
|
|
46
46
|
* startSeconds: 0.0,
|
|
47
47
|
* },
|
|
48
48
|
* {
|
|
@@ -49,9 +49,9 @@ class AudioToVideoClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
49
49
|
* audioFilePath: "/path/to/1234.mp3",
|
|
50
50
|
* imageFilePath: "/path/to/1234.png",
|
|
51
51
|
* },
|
|
52
|
-
* endSeconds:
|
|
52
|
+
* endSeconds: 5.0,
|
|
53
53
|
* name: "Audio To Video video",
|
|
54
|
-
* resolution: "
|
|
54
|
+
* resolution: "480p",
|
|
55
55
|
* startSeconds: 0.0,
|
|
56
56
|
* },
|
|
57
57
|
* {
|
|
@@ -29,10 +29,10 @@ export declare class AutoSubtitleGeneratorClient extends CoreResourceClient {
|
|
|
29
29
|
* const res = await client.v1.autoSubtitleGenerator.generate(
|
|
30
30
|
* {
|
|
31
31
|
* assets: { videoFilePath: "/path/to/1234.mp4" },
|
|
32
|
-
* endSeconds:
|
|
32
|
+
* endSeconds: 5.0,
|
|
33
33
|
* name: "Auto Subtitle video",
|
|
34
34
|
* startSeconds: 0.0,
|
|
35
|
-
* style: {},
|
|
35
|
+
* style: { template: "karaoke" },
|
|
36
36
|
* },
|
|
37
37
|
* {
|
|
38
38
|
* waitForCompletion: true,
|
|
@@ -46,10 +46,10 @@ class AutoSubtitleGeneratorClient extends make_api_request_js_1.CoreResourceClie
|
|
|
46
46
|
* const res = await client.v1.autoSubtitleGenerator.generate(
|
|
47
47
|
* {
|
|
48
48
|
* assets: { videoFilePath: "/path/to/1234.mp4" },
|
|
49
|
-
* endSeconds:
|
|
49
|
+
* endSeconds: 5.0,
|
|
50
50
|
* name: "Auto Subtitle video",
|
|
51
51
|
* startSeconds: 0.0,
|
|
52
|
-
* style: {},
|
|
52
|
+
* style: { template: "karaoke" },
|
|
53
53
|
* },
|
|
54
54
|
* {
|
|
55
55
|
* waitForCompletion: true,
|
|
@@ -40,9 +40,9 @@ export declare class CharacterReplaceClient extends CoreResourceClient {
|
|
|
40
40
|
* imageFilePath: "/path/to/5678.png",
|
|
41
41
|
* videoFilePath: "/path/to/1234.mp4",
|
|
42
42
|
* },
|
|
43
|
-
* endSeconds:
|
|
43
|
+
* endSeconds: 5.0,
|
|
44
44
|
* name: "My Character Replace video",
|
|
45
|
-
* resolution: "
|
|
45
|
+
* resolution: "480p",
|
|
46
46
|
* startSeconds: 0.0,
|
|
47
47
|
* style: { mode: "replace", selectionMode: "auto" },
|
|
48
48
|
* },
|
|
@@ -49,9 +49,9 @@ class CharacterReplaceClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
49
49
|
* imageFilePath: "/path/to/5678.png",
|
|
50
50
|
* videoFilePath: "/path/to/1234.mp4",
|
|
51
51
|
* },
|
|
52
|
-
* endSeconds:
|
|
52
|
+
* endSeconds: 5.0,
|
|
53
53
|
* name: "My Character Replace video",
|
|
54
|
-
* resolution: "
|
|
54
|
+
* resolution: "480p",
|
|
55
55
|
* startSeconds: 0.0,
|
|
56
56
|
* style: { mode: "replace", selectionMode: "auto" },
|
|
57
57
|
* },
|
|
@@ -65,7 +65,7 @@ export declare class FaceSwapClient extends CoreResourceClient {
|
|
|
65
65
|
* videoFilePath: "/path/to/1234.mp4",
|
|
66
66
|
* videoSource: "file",
|
|
67
67
|
* },
|
|
68
|
-
* endSeconds:
|
|
68
|
+
* endSeconds: 5.0,
|
|
69
69
|
* name: "Face Swap video",
|
|
70
70
|
* startSeconds: 0.0,
|
|
71
71
|
* style: { version: "default" },
|
|
@@ -57,7 +57,7 @@ class FaceSwapClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
57
57
|
* videoFilePath: "/path/to/1234.mp4",
|
|
58
58
|
* videoSource: "file",
|
|
59
59
|
* },
|
|
60
|
-
* endSeconds:
|
|
60
|
+
* endSeconds: 5.0,
|
|
61
61
|
* name: "Face Swap video",
|
|
62
62
|
* startSeconds: 0.0,
|
|
63
63
|
* style: { version: "default" },
|
|
@@ -13,7 +13,7 @@ export type CreateRequest = {
|
|
|
13
13
|
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
14
14
|
*
|
|
15
15
|
* Audio support varies by model:
|
|
16
|
-
* * **`gemini-omni-1.2`**:
|
|
16
|
+
* * **`gemini-omni-1.2`**: Toggle-able: no additional credits for audio
|
|
17
17
|
* * **`kling-2.6`**: Not supported
|
|
18
18
|
* * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
|
|
19
19
|
* * **`kling-4.0`**: Toggle-able: no additional credits for audio
|
|
@@ -31,7 +31,7 @@ export declare class ImageToVideoClient extends CoreResourceClient {
|
|
|
31
31
|
* assets: { imageFilePath: "/path/to/1234.png" },
|
|
32
32
|
* endSeconds: 5.0,
|
|
33
33
|
* name: "Image To Video video",
|
|
34
|
-
* resolution: "
|
|
34
|
+
* resolution: "480p",
|
|
35
35
|
* },
|
|
36
36
|
* {
|
|
37
37
|
* waitForCompletion: true,
|
|
@@ -48,7 +48,7 @@ class ImageToVideoClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
48
48
|
* assets: { imageFilePath: "/path/to/1234.png" },
|
|
49
49
|
* endSeconds: 5.0,
|
|
50
50
|
* name: "Image To Video video",
|
|
51
|
-
* resolution: "
|
|
51
|
+
* resolution: "480p",
|
|
52
52
|
* },
|
|
53
53
|
* {
|
|
54
54
|
* waitForCompletion: true,
|
|
@@ -41,7 +41,7 @@ export declare class LipSyncClient extends CoreResourceClient {
|
|
|
41
41
|
* videoFilePath: "/path/to/1234.mp4",
|
|
42
42
|
* videoSource: "file",
|
|
43
43
|
* },
|
|
44
|
-
* endSeconds:
|
|
44
|
+
* endSeconds: 5.0,
|
|
45
45
|
* maxFpsLimit: 12.0,
|
|
46
46
|
* name: "Lip Sync video",
|
|
47
47
|
* startSeconds: 0.0,
|
|
@@ -50,7 +50,7 @@ class LipSyncClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
50
50
|
* videoFilePath: "/path/to/1234.mp4",
|
|
51
51
|
* videoSource: "file",
|
|
52
52
|
* },
|
|
53
|
-
* endSeconds:
|
|
53
|
+
* endSeconds: 5.0,
|
|
54
54
|
* maxFpsLimit: 12.0,
|
|
55
55
|
* name: "Lip Sync video",
|
|
56
56
|
* startSeconds: 0.0,
|
|
@@ -30,7 +30,7 @@ export type CreateRequest = {
|
|
|
30
30
|
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
31
31
|
*
|
|
32
32
|
* Audio support varies by model:
|
|
33
|
-
* * **`gemini-omni-1.2`**:
|
|
33
|
+
* * **`gemini-omni-1.2`**: Toggle-able: no additional credits for audio
|
|
34
34
|
* * **`kling-2.6`**: Not supported
|
|
35
35
|
* * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
|
|
36
36
|
* * **`kling-4.0`**: Toggle-able: no additional credits for audio
|
|
@@ -22,7 +22,7 @@ export declare class TextToVideoClient extends CoreResourceClient {
|
|
|
22
22
|
* endSeconds: 5.0,
|
|
23
23
|
* name: "Text To Video video",
|
|
24
24
|
* orientation: "landscape",
|
|
25
|
-
* resolution: "
|
|
25
|
+
* resolution: "480p",
|
|
26
26
|
* style: { prompt: "a dog running" },
|
|
27
27
|
* },
|
|
28
28
|
* {
|
|
@@ -47,7 +47,7 @@ class TextToVideoClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
47
47
|
* endSeconds: 5.0,
|
|
48
48
|
* name: "Text To Video video",
|
|
49
49
|
* orientation: "landscape",
|
|
50
|
-
* resolution: "
|
|
50
|
+
* resolution: "480p",
|
|
51
51
|
* style: { prompt: "a dog running" },
|
|
52
52
|
* },
|
|
53
53
|
* {
|
|
@@ -29,7 +29,7 @@ export declare class VideoToVideoClient extends CoreResourceClient {
|
|
|
29
29
|
* const res = await client.v1.videoToVideo.generate(
|
|
30
30
|
* {
|
|
31
31
|
* assets: { videoFilePath: "/path/to/1234.mp4", videoSource: "file" },
|
|
32
|
-
* endSeconds:
|
|
32
|
+
* endSeconds: 5.0,
|
|
33
33
|
* fpsResolution: "HALF",
|
|
34
34
|
* name: "Video To Video video",
|
|
35
35
|
* startSeconds: 0.0,
|
|
@@ -46,7 +46,7 @@ class VideoToVideoClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
46
46
|
* const res = await client.v1.videoToVideo.generate(
|
|
47
47
|
* {
|
|
48
48
|
* assets: { videoFilePath: "/path/to/1234.mp4", videoSource: "file" },
|
|
49
|
-
* endSeconds:
|
|
49
|
+
* endSeconds: 5.0,
|
|
50
50
|
* fpsResolution: "HALF",
|
|
51
51
|
* name: "Video To Video video",
|
|
52
52
|
* startSeconds: 0.0,
|
|
@@ -13,7 +13,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
13
13
|
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
14
14
|
*
|
|
15
15
|
* Audio support varies by model:
|
|
16
|
-
* * **`gemini-omni-1.2`**:
|
|
16
|
+
* * **`gemini-omni-1.2`**: Toggle-able: no additional credits for audio
|
|
17
17
|
* * **`kling-2.6`**: Not supported
|
|
18
18
|
* * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
|
|
19
19
|
* * **`kling-4.0`**: Toggle-able: no additional credits for audio
|
|
@@ -30,7 +30,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
30
30
|
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
31
31
|
*
|
|
32
32
|
* Audio support varies by model:
|
|
33
|
-
* * **`gemini-omni-1.2`**:
|
|
33
|
+
* * **`gemini-omni-1.2`**: Toggle-able: no additional credits for audio
|
|
34
34
|
* * **`kling-2.6`**: Not supported
|
|
35
35
|
* * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
|
|
36
36
|
* * **`kling-4.0`**: Toggle-able: no additional credits for audio
|