magic-hour 0.44.0 → 0.45.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/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-clothes-changer/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-face-editor/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-gif-generator/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-headshot-generator/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-image-editor/request-types.d.ts +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/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-photo-editor/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-qr-code-generator/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-talking-photo/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-voice-cloner/request-types.d.ts +1 -1
- package/dist/resources/v1/ai-voice-generator/request-types.d.ts +1 -1
- package/dist/resources/v1/animation/request-types.d.ts +1 -1
- package/dist/resources/v1/audio-projects/resource-client.d.ts +9 -10
- package/dist/resources/v1/audio-projects/resource-client.js +8 -9
- package/dist/resources/v1/auto-subtitle-generator/request-types.d.ts +3 -3
- package/dist/resources/v1/face-swap/request-types.d.ts +3 -3
- package/dist/resources/v1/face-swap/resource-client.d.ts +20 -2
- package/dist/resources/v1/face-swap/resource-client.js +20 -2
- package/dist/resources/v1/face-swap-photo/request-types.d.ts +1 -1
- package/dist/resources/v1/files/resource-client.d.ts +13 -3
- package/dist/resources/v1/files/resource-client.js +54 -3
- package/dist/resources/v1/files/resource-client.test.js +45 -0
- package/dist/resources/v1/image-background-remover/request-types.d.ts +1 -1
- package/dist/resources/v1/image-projects/resource-client.d.ts +9 -10
- package/dist/resources/v1/image-projects/resource-client.js +8 -9
- package/dist/resources/v1/image-to-video/request-types.d.ts +1 -1
- package/dist/resources/v1/image-to-video/resource-client.d.ts +20 -2
- package/dist/resources/v1/image-to-video/resource-client.js +20 -2
- package/dist/resources/v1/lip-sync/request-types.d.ts +3 -3
- package/dist/resources/v1/lip-sync/resource-client.d.ts +20 -2
- package/dist/resources/v1/lip-sync/resource-client.js +20 -2
- package/dist/resources/v1/photo-colorizer/request-types.d.ts +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 +1 -1
- package/dist/resources/v1/text-to-video/resource-client.d.ts +20 -2
- package/dist/resources/v1/text-to-video/resource-client.js +20 -2
- package/dist/resources/v1/video-projects/resource-client.d.ts +9 -10
- package/dist/resources/v1/video-projects/resource-client.js +8 -9
- package/dist/resources/v1/video-to-video/request-types.d.ts +3 -3
- package/dist/resources/v1/video-to-video/resource-client.d.ts +20 -2
- package/dist/resources/v1/video-to-video/resource-client.js +20 -2
- package/dist/types/v1-ai-clothes-changer-create-body-assets-garment-type-enum.d.ts +6 -2
- package/dist/types/v1-ai-clothes-changer-create-body-assets.d.ts +9 -5
- package/dist/types/v1-ai-clothes-changer-create-body-assets.js +6 -2
- package/dist/types/v1-ai-clothes-changer-create-body.d.ts +1 -1
- package/dist/types/v1-ai-clothes-changer-create-response.d.ts +1 -1
- package/dist/types/v1-ai-face-editor-create-body-assets.d.ts +1 -1
- package/dist/types/v1-ai-face-editor-create-body.d.ts +1 -1
- package/dist/types/v1-ai-face-editor-create-response.d.ts +1 -1
- package/dist/types/v1-ai-gif-generator-create-body.d.ts +1 -1
- package/dist/types/v1-ai-gif-generator-create-response.d.ts +1 -1
- package/dist/types/v1-ai-headshot-generator-create-body-assets.d.ts +1 -1
- package/dist/types/v1-ai-headshot-generator-create-body.d.ts +1 -1
- package/dist/types/v1-ai-headshot-generator-create-response.d.ts +1 -1
- package/dist/types/v1-ai-image-editor-create-body-assets.d.ts +2 -2
- package/dist/types/v1-ai-image-editor-create-body.d.ts +1 -1
- package/dist/types/v1-ai-image-editor-create-response.d.ts +1 -1
- package/dist/types/v1-ai-image-generator-create-body.d.ts +1 -1
- package/dist/types/v1-ai-image-generator-create-response.d.ts +1 -1
- package/dist/types/v1-ai-image-upscaler-create-body-assets.d.ts +1 -1
- package/dist/types/v1-ai-image-upscaler-create-body.d.ts +1 -1
- package/dist/types/v1-ai-image-upscaler-create-response.d.ts +1 -1
- package/dist/types/v1-ai-meme-generator-create-response.d.ts +1 -1
- package/dist/types/v1-ai-photo-editor-create-body-assets.d.ts +1 -1
- package/dist/types/v1-ai-photo-editor-create-body.d.ts +1 -1
- package/dist/types/v1-ai-photo-editor-create-response.d.ts +1 -1
- package/dist/types/v1-ai-qr-code-generator-create-body.d.ts +1 -1
- package/dist/types/v1-ai-qr-code-generator-create-response.d.ts +1 -1
- package/dist/types/v1-ai-talking-photo-create-body-assets.d.ts +2 -2
- package/dist/types/v1-ai-talking-photo-create-body.d.ts +1 -1
- package/dist/types/v1-ai-talking-photo-create-response.d.ts +1 -1
- package/dist/types/v1-ai-voice-cloner-create-body-assets.d.ts +1 -1
- package/dist/types/v1-ai-voice-cloner-create-body.d.ts +1 -1
- package/dist/types/v1-ai-voice-cloner-create-response.d.ts +1 -1
- package/dist/types/v1-ai-voice-generator-create-body.d.ts +1 -1
- package/dist/types/v1-ai-voice-generator-create-response.d.ts +1 -1
- package/dist/types/v1-animation-create-body-assets.d.ts +2 -2
- package/dist/types/v1-animation-create-body.d.ts +1 -1
- package/dist/types/v1-animation-create-response.d.ts +1 -1
- package/dist/types/v1-audio-projects-get-response.d.ts +2 -2
- package/dist/types/v1-auto-subtitle-generator-create-body-assets.d.ts +1 -1
- package/dist/types/v1-auto-subtitle-generator-create-body.d.ts +3 -3
- package/dist/types/v1-auto-subtitle-generator-create-response.d.ts +1 -1
- package/dist/types/v1-face-detection-create-body-assets.d.ts +1 -1
- package/dist/types/v1-face-swap-create-body-assets-face-mappings-item.d.ts +1 -1
- package/dist/types/v1-face-swap-create-body-assets-face-swap-mode-enum.d.ts +3 -3
- package/dist/types/v1-face-swap-create-body-assets-video-source-enum.d.ts +1 -1
- package/dist/types/v1-face-swap-create-body-assets.d.ts +10 -7
- package/dist/types/v1-face-swap-create-body.d.ts +3 -3
- package/dist/types/v1-face-swap-create-response.d.ts +1 -1
- package/dist/types/v1-face-swap-photo-create-body-assets-face-mappings-item.d.ts +1 -1
- package/dist/types/v1-face-swap-photo-create-body-assets-face-swap-mode-enum.d.ts +3 -3
- package/dist/types/v1-face-swap-photo-create-body-assets.d.ts +5 -5
- package/dist/types/v1-face-swap-photo-create-body.d.ts +1 -1
- package/dist/types/v1-face-swap-photo-create-response.d.ts +1 -1
- package/dist/types/v1-image-background-remover-create-body-assets.d.ts +2 -2
- package/dist/types/v1-image-background-remover-create-body.d.ts +1 -1
- package/dist/types/v1-image-background-remover-create-response.d.ts +1 -1
- package/dist/types/v1-image-projects-get-response.d.ts +2 -2
- package/dist/types/v1-image-to-video-create-body-assets.d.ts +1 -1
- package/dist/types/v1-image-to-video-create-body.d.ts +1 -1
- package/dist/types/v1-image-to-video-create-response.d.ts +1 -1
- package/dist/types/v1-lip-sync-create-body-assets-video-source-enum.d.ts +1 -1
- package/dist/types/v1-lip-sync-create-body-assets.d.ts +7 -4
- package/dist/types/v1-lip-sync-create-body.d.ts +3 -3
- package/dist/types/v1-lip-sync-create-response.d.ts +1 -1
- package/dist/types/v1-photo-colorizer-create-body-assets.d.ts +1 -1
- package/dist/types/v1-photo-colorizer-create-body.d.ts +1 -1
- package/dist/types/v1-photo-colorizer-create-response.d.ts +1 -1
- package/dist/types/v1-text-to-video-create-body.d.ts +1 -1
- package/dist/types/v1-text-to-video-create-response.d.ts +1 -1
- package/dist/types/v1-video-projects-get-response.d.ts +4 -4
- package/dist/types/v1-video-to-video-create-body-assets-video-source-enum.d.ts +1 -1
- package/dist/types/v1-video-to-video-create-body-assets.d.ts +6 -3
- package/dist/types/v1-video-to-video-create-body.d.ts +3 -3
- package/dist/types/v1-video-to-video-create-response.d.ts +1 -1
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
9
9
|
*/
|
|
10
10
|
imageCount: number;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Give your image a custom name for easy identification.
|
|
13
13
|
*/
|
|
14
14
|
name?: string | undefined;
|
|
15
15
|
/**
|
|
@@ -14,7 +14,7 @@ export type V1AiImageGeneratorCreateResponse = {
|
|
|
14
14
|
*/
|
|
15
15
|
frameCost: number;
|
|
16
16
|
/**
|
|
17
|
-
* Unique ID of the image.
|
|
17
|
+
* Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
|
|
18
18
|
*/
|
|
19
19
|
id: string;
|
|
20
20
|
};
|
|
@@ -8,7 +8,7 @@ export type V1AiImageUpscalerCreateBodyAssets = {
|
|
|
8
8
|
* - a direct URL to the video file
|
|
9
9
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
imageFilePath: string;
|
|
@@ -10,7 +10,7 @@ export type V1AiImageUpscalerCreateBody = {
|
|
|
10
10
|
*/
|
|
11
11
|
assets: V1AiImageUpscalerCreateBodyAssets;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Give your image a custom name for easy identification.
|
|
14
14
|
*/
|
|
15
15
|
name?: string | undefined;
|
|
16
16
|
/**
|
|
@@ -14,7 +14,7 @@ export type V1AiImageUpscalerCreateResponse = {
|
|
|
14
14
|
*/
|
|
15
15
|
frameCost: number;
|
|
16
16
|
/**
|
|
17
|
-
* Unique ID of the image.
|
|
17
|
+
* Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
|
|
18
18
|
*/
|
|
19
19
|
id: string;
|
|
20
20
|
};
|
|
@@ -14,7 +14,7 @@ export type V1AiMemeGeneratorCreateResponse = {
|
|
|
14
14
|
*/
|
|
15
15
|
frameCost: number;
|
|
16
16
|
/**
|
|
17
|
-
* Unique ID of the image.
|
|
17
|
+
* Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
|
|
18
18
|
*/
|
|
19
19
|
id: string;
|
|
20
20
|
};
|
|
@@ -8,7 +8,7 @@ export type V1AiPhotoEditorCreateBodyAssets = {
|
|
|
8
8
|
* - a direct URL to the video file
|
|
9
9
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
imageFilePath: string;
|
|
@@ -10,7 +10,7 @@ export type V1AiPhotoEditorCreateBody = {
|
|
|
10
10
|
*/
|
|
11
11
|
assets: V1AiPhotoEditorCreateBodyAssets;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Give your image a custom name for easy identification.
|
|
14
14
|
*/
|
|
15
15
|
name?: string | undefined;
|
|
16
16
|
/**
|
|
@@ -14,7 +14,7 @@ export type V1AiPhotoEditorCreateResponse = {
|
|
|
14
14
|
*/
|
|
15
15
|
frameCost: number;
|
|
16
16
|
/**
|
|
17
|
-
* Unique ID of the image.
|
|
17
|
+
* Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
|
|
18
18
|
*/
|
|
19
19
|
id: string;
|
|
20
20
|
};
|
|
@@ -9,7 +9,7 @@ export type V1AiQrCodeGeneratorCreateBody = {
|
|
|
9
9
|
*/
|
|
10
10
|
content: string;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Give your image a custom name for easy identification.
|
|
13
13
|
*/
|
|
14
14
|
name?: string | undefined;
|
|
15
15
|
style: V1AiQrCodeGeneratorCreateBodyStyle;
|
|
@@ -14,7 +14,7 @@ export type V1AiQrCodeGeneratorCreateResponse = {
|
|
|
14
14
|
*/
|
|
15
15
|
frameCost: number;
|
|
16
16
|
/**
|
|
17
|
-
* Unique ID of the image.
|
|
17
|
+
* Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
|
|
18
18
|
*/
|
|
19
19
|
id: string;
|
|
20
20
|
};
|
|
@@ -8,7 +8,7 @@ export type V1AiTalkingPhotoCreateBodyAssets = {
|
|
|
8
8
|
* - a direct URL to the video file
|
|
9
9
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
audioFilePath: string;
|
|
@@ -17,7 +17,7 @@ export type V1AiTalkingPhotoCreateBodyAssets = {
|
|
|
17
17
|
* - a direct URL to the video file
|
|
18
18
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
23
|
imageFilePath: string;
|
|
@@ -14,7 +14,7 @@ export type V1AiTalkingPhotoCreateBody = {
|
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Give your image a custom name for easy identification.
|
|
18
18
|
*/
|
|
19
19
|
name?: string | undefined;
|
|
20
20
|
/**
|
|
@@ -16,7 +16,7 @@ export type V1AiTalkingPhotoCreateResponse = {
|
|
|
16
16
|
*/
|
|
17
17
|
estimatedFrameCost: number;
|
|
18
18
|
/**
|
|
19
|
-
* Unique ID of the video.
|
|
19
|
+
* Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
|
|
20
20
|
*/
|
|
21
21
|
id: string;
|
|
22
22
|
};
|
|
@@ -8,7 +8,7 @@ export type V1AiVoiceClonerCreateBodyAssets = {
|
|
|
8
8
|
* - a direct URL to the video file
|
|
9
9
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
audioFilePath: string;
|
|
@@ -10,7 +10,7 @@ export type V1AiVoiceClonerCreateBody = {
|
|
|
10
10
|
*/
|
|
11
11
|
assets: V1AiVoiceClonerCreateBodyAssets;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Give your audio a custom name for easy identification.
|
|
14
14
|
*/
|
|
15
15
|
name?: string | undefined;
|
|
16
16
|
style: V1AiVoiceClonerCreateBodyStyle;
|
|
@@ -10,7 +10,7 @@ export type V1AiVoiceClonerCreateResponse = {
|
|
|
10
10
|
*/
|
|
11
11
|
creditsCharged: number;
|
|
12
12
|
/**
|
|
13
|
-
* Unique ID of the audio.
|
|
13
|
+
* Unique ID of the audio. Use it with the [Get audio Project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch status and downloads.
|
|
14
14
|
*/
|
|
15
15
|
id: string;
|
|
16
16
|
};
|
|
@@ -5,7 +5,7 @@ import { External$V1AiVoiceGeneratorCreateBodyStyle, V1AiVoiceGeneratorCreateBod
|
|
|
5
5
|
*/
|
|
6
6
|
export type V1AiVoiceGeneratorCreateBody = {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Give your audio a custom name for easy identification.
|
|
9
9
|
*/
|
|
10
10
|
name?: string | undefined;
|
|
11
11
|
/**
|
|
@@ -10,7 +10,7 @@ export type V1AiVoiceGeneratorCreateResponse = {
|
|
|
10
10
|
*/
|
|
11
11
|
creditsCharged: number;
|
|
12
12
|
/**
|
|
13
|
-
* Unique ID of the audio.
|
|
13
|
+
* Unique ID of the audio. Use it with the [Get audio Project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch status and downloads.
|
|
14
14
|
*/
|
|
15
15
|
id: string;
|
|
16
16
|
};
|
|
@@ -8,7 +8,7 @@ export type V1AnimationCreateBodyAssets = {
|
|
|
8
8
|
* - a direct URL to the video file
|
|
9
9
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
audioFilePath?: string | undefined;
|
|
@@ -21,7 +21,7 @@ export type V1AnimationCreateBodyAssets = {
|
|
|
21
21
|
* - a direct URL to the video file
|
|
22
22
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
23
23
|
*
|
|
24
|
-
*
|
|
24
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
imageFilePath?: string | undefined;
|
|
@@ -22,7 +22,7 @@ export type V1AnimationCreateBody = {
|
|
|
22
22
|
*/
|
|
23
23
|
height: number;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Give your video a custom name for easy identification.
|
|
26
26
|
*/
|
|
27
27
|
name?: string | undefined;
|
|
28
28
|
/**
|
|
@@ -16,7 +16,7 @@ export type V1AnimationCreateResponse = {
|
|
|
16
16
|
*/
|
|
17
17
|
estimatedFrameCost: number;
|
|
18
18
|
/**
|
|
19
|
-
* Unique ID of the video.
|
|
19
|
+
* Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
|
|
20
20
|
*/
|
|
21
21
|
id: string;
|
|
22
22
|
};
|
|
@@ -14,7 +14,7 @@ export type V1AudioProjectsGetResponse = {
|
|
|
14
14
|
creditsCharged: number;
|
|
15
15
|
downloads: V1AudioProjectsGetResponseDownloadsItem[];
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Whether this resource is active. If false, it is deleted.
|
|
18
18
|
*/
|
|
19
19
|
enabled: boolean;
|
|
20
20
|
/**
|
|
@@ -22,7 +22,7 @@ export type V1AudioProjectsGetResponse = {
|
|
|
22
22
|
*/
|
|
23
23
|
error: V1AudioProjectsGetResponseError | null;
|
|
24
24
|
/**
|
|
25
|
-
* Unique ID of the audio.
|
|
25
|
+
* Unique ID of the audio. Use it with the [Get audio Project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch status and downloads.
|
|
26
26
|
*/
|
|
27
27
|
id: string;
|
|
28
28
|
/**
|
|
@@ -8,7 +8,7 @@ export type V1AutoSubtitleGeneratorCreateBodyAssets = {
|
|
|
8
8
|
* - a direct URL to the video file
|
|
9
9
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
videoFilePath: string;
|
|
@@ -10,15 +10,15 @@ export type V1AutoSubtitleGeneratorCreateBody = {
|
|
|
10
10
|
*/
|
|
11
11
|
assets: V1AutoSubtitleGeneratorCreateBodyAssets;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* End time of your clip (seconds). Must be greater than start_seconds.
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Give your video a custom name for easy identification.
|
|
18
18
|
*/
|
|
19
19
|
name?: string | undefined;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Start time of your clip (seconds). Must be ≥ 0.
|
|
22
22
|
*/
|
|
23
23
|
startSeconds: number;
|
|
24
24
|
/**
|
|
@@ -16,7 +16,7 @@ export type V1AutoSubtitleGeneratorCreateResponse = {
|
|
|
16
16
|
*/
|
|
17
17
|
estimatedFrameCost: number;
|
|
18
18
|
/**
|
|
19
|
-
* Unique ID of the video.
|
|
19
|
+
* Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
|
|
20
20
|
*/
|
|
21
21
|
id: string;
|
|
22
22
|
};
|
|
@@ -8,7 +8,7 @@ export type V1FaceDetectionCreateBodyAssets = {
|
|
|
8
8
|
* - a direct URL to the video file
|
|
9
9
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
targetFilePath: string;
|
|
@@ -8,7 +8,7 @@ export type V1FaceSwapCreateBodyAssetsFaceMappingsItem = {
|
|
|
8
8
|
* - a direct URL to the video file
|
|
9
9
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
newFace: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Choose how to swap faces:
|
|
3
|
+
* **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
|
|
4
|
+
* +- **individual-faces** — specify exact mappings using `face_mappings`
|
|
5
5
|
*/
|
|
6
6
|
export type V1FaceSwapCreateBodyAssetsFaceSwapModeEnum = "all-faces" | "individual-faces";
|
|
@@ -9,9 +9,9 @@ export type V1FaceSwapCreateBodyAssets = {
|
|
|
9
9
|
*/
|
|
10
10
|
faceMappings?: V1FaceSwapCreateBodyAssetsFaceMappingsItem[] | undefined;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* Choose how to swap faces:
|
|
13
|
+
* **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
|
|
14
|
+
* +- **individual-faces** — specify exact mappings using `face_mappings`
|
|
15
15
|
*/
|
|
16
16
|
faceSwapMode?: ("all-faces" | "individual-faces") | undefined;
|
|
17
17
|
/**
|
|
@@ -21,22 +21,25 @@ export type V1FaceSwapCreateBodyAssets = {
|
|
|
21
21
|
* - a direct URL to the video file
|
|
22
22
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
23
23
|
*
|
|
24
|
-
*
|
|
24
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
imageFilePath?: string | undefined;
|
|
28
28
|
/**
|
|
29
|
-
* Required if `video_source` is `file`. This value is either
|
|
29
|
+
* Your video file. Required if `video_source` is `file`. This value is either
|
|
30
30
|
* - a direct URL to the video file
|
|
31
31
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
32
32
|
*
|
|
33
|
-
*
|
|
33
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
34
34
|
*
|
|
35
35
|
*/
|
|
36
36
|
videoFilePath?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Choose your video source.
|
|
39
|
+
*/
|
|
37
40
|
videoSource: "file" | "youtube";
|
|
38
41
|
/**
|
|
39
|
-
*
|
|
42
|
+
* YouTube URL (required if `video_source` is `youtube`).
|
|
40
43
|
*/
|
|
41
44
|
youtubeUrl?: string | undefined;
|
|
42
45
|
};
|
|
@@ -10,7 +10,7 @@ export type V1FaceSwapCreateBody = {
|
|
|
10
10
|
*/
|
|
11
11
|
assets: V1FaceSwapCreateBodyAssets;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* End time of your clip (seconds). Must be greater than start_seconds.
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
16
|
/**
|
|
@@ -24,11 +24,11 @@ export type V1FaceSwapCreateBody = {
|
|
|
24
24
|
*/
|
|
25
25
|
height?: number | null | undefined;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Give your video a custom name for easy identification.
|
|
28
28
|
*/
|
|
29
29
|
name?: string | undefined;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Start time of your clip (seconds). Must be ≥ 0.
|
|
32
32
|
*/
|
|
33
33
|
startSeconds: number;
|
|
34
34
|
/**
|
|
@@ -16,7 +16,7 @@ export type V1FaceSwapCreateResponse = {
|
|
|
16
16
|
*/
|
|
17
17
|
estimatedFrameCost: number;
|
|
18
18
|
/**
|
|
19
|
-
* Unique ID of the video.
|
|
19
|
+
* Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
|
|
20
20
|
*/
|
|
21
21
|
id: string;
|
|
22
22
|
};
|
|
@@ -8,7 +8,7 @@ export type V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem = {
|
|
|
8
8
|
* - a direct URL to the video file
|
|
9
9
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
newFace: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Choose how to swap faces:
|
|
3
|
+
* **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
|
|
4
|
+
* +- **individual-faces** — specify exact mappings using `face_mappings`
|
|
5
5
|
*/
|
|
6
6
|
export type V1FaceSwapPhotoCreateBodyAssetsFaceSwapModeEnum = "all-faces" | "individual-faces";
|
|
@@ -9,9 +9,9 @@ export type V1FaceSwapPhotoCreateBodyAssets = {
|
|
|
9
9
|
*/
|
|
10
10
|
faceMappings?: V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem[] | undefined;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* Choose how to swap faces:
|
|
13
|
+
* **all-faces** (recommended) — swap all detected faces using one source image (`source_file_path` required)
|
|
14
|
+
* +- **individual-faces** — specify exact mappings using `face_mappings`
|
|
15
15
|
*/
|
|
16
16
|
faceSwapMode?: ("all-faces" | "individual-faces") | undefined;
|
|
17
17
|
/**
|
|
@@ -21,7 +21,7 @@ export type V1FaceSwapPhotoCreateBodyAssets = {
|
|
|
21
21
|
* - a direct URL to the video file
|
|
22
22
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
23
23
|
*
|
|
24
|
-
*
|
|
24
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
sourceFilePath?: string | undefined;
|
|
@@ -30,7 +30,7 @@ export type V1FaceSwapPhotoCreateBodyAssets = {
|
|
|
30
30
|
* - a direct URL to the video file
|
|
31
31
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
32
32
|
*
|
|
33
|
-
*
|
|
33
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
34
34
|
*
|
|
35
35
|
*/
|
|
36
36
|
targetFilePath: string;
|
|
@@ -9,7 +9,7 @@ export type V1FaceSwapPhotoCreateBody = {
|
|
|
9
9
|
*/
|
|
10
10
|
assets: V1FaceSwapPhotoCreateBodyAssets;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Give your image a custom name for easy identification.
|
|
13
13
|
*/
|
|
14
14
|
name?: string | undefined;
|
|
15
15
|
};
|
|
@@ -14,7 +14,7 @@ export type V1FaceSwapPhotoCreateResponse = {
|
|
|
14
14
|
*/
|
|
15
15
|
frameCost: number;
|
|
16
16
|
/**
|
|
17
|
-
* Unique ID of the image.
|
|
17
|
+
* Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
|
|
18
18
|
*/
|
|
19
19
|
id: string;
|
|
20
20
|
};
|
|
@@ -10,7 +10,7 @@ export type V1ImageBackgroundRemoverCreateBodyAssets = {
|
|
|
10
10
|
* - a direct URL to the video file
|
|
11
11
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
16
|
backgroundImageFilePath?: string | undefined;
|
|
@@ -19,7 +19,7 @@ export type V1ImageBackgroundRemoverCreateBodyAssets = {
|
|
|
19
19
|
* - a direct URL to the video file
|
|
20
20
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
21
21
|
*
|
|
22
|
-
*
|
|
22
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
25
|
imageFilePath: string;
|
|
@@ -9,7 +9,7 @@ export type V1ImageBackgroundRemoverCreateBody = {
|
|
|
9
9
|
*/
|
|
10
10
|
assets: V1ImageBackgroundRemoverCreateBodyAssets;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Give your image a custom name for easy identification.
|
|
13
13
|
*/
|
|
14
14
|
name?: string | undefined;
|
|
15
15
|
};
|
|
@@ -14,7 +14,7 @@ export type V1ImageBackgroundRemoverCreateResponse = {
|
|
|
14
14
|
*/
|
|
15
15
|
frameCost: number;
|
|
16
16
|
/**
|
|
17
|
-
* Unique ID of the image.
|
|
17
|
+
* Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
|
|
18
18
|
*/
|
|
19
19
|
id: string;
|
|
20
20
|
};
|
|
@@ -14,7 +14,7 @@ export type V1ImageProjectsGetResponse = {
|
|
|
14
14
|
creditsCharged: number;
|
|
15
15
|
downloads: V1ImageProjectsGetResponseDownloadsItem[];
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Whether this resource is active. If false, it is deleted.
|
|
18
18
|
*/
|
|
19
19
|
enabled: boolean;
|
|
20
20
|
/**
|
|
@@ -22,7 +22,7 @@ export type V1ImageProjectsGetResponse = {
|
|
|
22
22
|
*/
|
|
23
23
|
error: V1ImageProjectsGetResponseError | null;
|
|
24
24
|
/**
|
|
25
|
-
* Unique ID of the image.
|
|
25
|
+
* Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
|
|
26
26
|
*/
|
|
27
27
|
id: string;
|
|
28
28
|
/**
|
|
@@ -8,7 +8,7 @@ export type V1ImageToVideoCreateBodyAssets = {
|
|
|
8
8
|
* - a direct URL to the video file
|
|
9
9
|
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
14
|
imageFilePath: string;
|
|
@@ -24,7 +24,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
24
24
|
*/
|
|
25
25
|
height?: number | null | undefined;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Give your video a custom name for easy identification.
|
|
28
28
|
*/
|
|
29
29
|
name?: string | undefined;
|
|
30
30
|
/**
|
|
@@ -16,7 +16,7 @@ export type V1ImageToVideoCreateResponse = {
|
|
|
16
16
|
*/
|
|
17
17
|
estimatedFrameCost: number;
|
|
18
18
|
/**
|
|
19
|
-
* Unique ID of the video.
|
|
19
|
+
* Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
|
|
20
20
|
*/
|
|
21
21
|
id: string;
|
|
22
22
|
};
|