magic-hour 0.0.9 → 0.2.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 +59 -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-photo-editor/index.d.ts +5 -0
- package/dist/resources/v1/ai-photo-editor/index.js +8 -0
- package/dist/resources/v1/ai-photo-editor/request-types.d.ts +10 -0
- package/dist/resources/v1/ai-photo-editor/request-types.js +5 -0
- package/dist/resources/v1/ai-photo-editor/resource-client.d.ts +17 -0
- package/dist/resources/v1/ai-photo-editor/resource-client.js +31 -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/index.d.ts +1 -0
- package/dist/resources/v1/index.js +2 -1
- 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/resource-client.d.ts +2 -0
- package/dist/resources/v1/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-type-enum.d.ts +1 -1
- 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/index.d.ts +10 -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 +3 -0
- 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 +3 -0
- 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 +3 -0
- 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-photo-editor-body-assets.d.ts +12 -0
- package/dist/types/post-v1-ai-photo-editor-body-assets.js +5 -0
- package/dist/types/post-v1-ai-photo-editor-body-style.d.ts +28 -0
- package/dist/types/post-v1-ai-photo-editor-body-style.js +5 -0
- package/dist/types/post-v1-ai-photo-editor-body.d.ts +26 -0
- package/dist/types/post-v1-ai-photo-editor-body.js +5 -0
- package/dist/types/post-v1-ai-photo-editor-response.d.ts +13 -0
- package/dist/types/post-v1-ai-photo-editor-response.js +5 -0
- package/dist/types/post-v1-ai-photo-editor-response400.d.ts +9 -0
- package/dist/types/post-v1-ai-photo-editor-response400.js +5 -0
- package/dist/types/post-v1-ai-photo-editor-response401-message-enum.d.ts +4 -0
- package/dist/types/post-v1-ai-photo-editor-response401-message-enum.js +2 -0
- package/dist/types/post-v1-ai-photo-editor-response401.d.ts +10 -0
- package/dist/types/post-v1-ai-photo-editor-response401.js +5 -0
- package/dist/types/post-v1-ai-photo-editor-response404-message-enum.d.ts +4 -0
- package/dist/types/post-v1-ai-photo-editor-response404-message-enum.js +2 -0
- package/dist/types/post-v1-ai-photo-editor-response404.d.ts +10 -0
- package/dist/types/post-v1-ai-photo-editor-response404.js +5 -0
- package/dist/types/post-v1-ai-photo-editor-response422.d.ts +9 -0
- package/dist/types/post-v1-ai-photo-editor-response422.js +5 -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 +3 -0
- 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 +4 -1
- 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 +3 -0
- 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 +12 -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 +3 -0
- 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 +8 -1
- 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 +3 -0
- 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 +6 -3
- 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
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
# Magic Hour API Typescript SDK
|
|
3
3
|
|
|
4
|
-
|
|
5
4
|
## Overview
|
|
6
5
|
|
|
7
6
|
# Introduction
|
|
@@ -27,7 +26,6 @@ Then, add the `Authorization` header to the request.
|
|
|
27
26
|
> **Warning**: any API call that renders a video will utilize frames in your account.
|
|
28
27
|
|
|
29
28
|
|
|
30
|
-
|
|
31
29
|
### Example Client Initialization
|
|
32
30
|
|
|
33
31
|
```typescript
|
|
@@ -36,5 +34,62 @@ import Client from "magic-hour";
|
|
|
36
34
|
const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
37
35
|
```
|
|
38
36
|
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
## Module Documentation and Snippets
|
|
38
|
+
|
|
39
|
+
### [v1.ai_headshot_generator](src/resources/v1/ai-headshot-generator/README.md)
|
|
40
|
+
|
|
41
|
+
* [create](src/resources/v1/ai-headshot-generator/README.md#create) - Create AI Headshots
|
|
42
|
+
|
|
43
|
+
### [v1.ai_image_generator](src/resources/v1/ai-image-generator/README.md)
|
|
44
|
+
|
|
45
|
+
* [create](src/resources/v1/ai-image-generator/README.md#create) - Create AI Images
|
|
46
|
+
|
|
47
|
+
### [v1.ai_image_upscaler](src/resources/v1/ai-image-upscaler/README.md)
|
|
48
|
+
|
|
49
|
+
* [create](src/resources/v1/ai-image-upscaler/README.md#create) - Create Upscaled Image
|
|
50
|
+
|
|
51
|
+
### [v1.ai_photo_editor](src/resources/v1/ai-photo-editor/README.md)
|
|
52
|
+
|
|
53
|
+
* [create](src/resources/v1/ai-photo-editor/README.md#create) - AI Photo Editor
|
|
54
|
+
|
|
55
|
+
### [v1.ai_qr_code_generator](src/resources/v1/ai-qr-code-generator/README.md)
|
|
56
|
+
|
|
57
|
+
* [create](src/resources/v1/ai-qr-code-generator/README.md#create) - Create AI QR Code
|
|
58
|
+
|
|
59
|
+
### [v1.face_swap](src/resources/v1/face-swap/README.md)
|
|
60
|
+
|
|
61
|
+
* [create](src/resources/v1/face-swap/README.md#create) - Create Face Swap video
|
|
62
|
+
|
|
63
|
+
### [v1.face_swap_photo](src/resources/v1/face-swap-photo/README.md)
|
|
64
|
+
|
|
65
|
+
* [create](src/resources/v1/face-swap-photo/README.md#create) - Create Face Swap Photo
|
|
66
|
+
|
|
67
|
+
### [v1.files.upload_urls](src/resources/v1/files/upload-urls/README.md)
|
|
68
|
+
|
|
69
|
+
* [create](src/resources/v1/files/upload-urls/README.md#create) - Generate asset upload urls
|
|
70
|
+
|
|
71
|
+
### [v1.image_projects](src/resources/v1/image-projects/README.md)
|
|
72
|
+
|
|
73
|
+
* [get](src/resources/v1/image-projects/README.md#get) - Get image project details
|
|
74
|
+
|
|
75
|
+
### [v1.image_to_video](src/resources/v1/image-to-video/README.md)
|
|
76
|
+
|
|
77
|
+
* [create](src/resources/v1/image-to-video/README.md#create) - Create Image-to-Video
|
|
78
|
+
|
|
79
|
+
### [v1.lip_sync](src/resources/v1/lip-sync/README.md)
|
|
80
|
+
|
|
81
|
+
* [create](src/resources/v1/lip-sync/README.md#create) - Create Lip Sync video
|
|
82
|
+
|
|
83
|
+
### [v1.text_to_video](src/resources/v1/text-to-video/README.md)
|
|
84
|
+
|
|
85
|
+
* [create](src/resources/v1/text-to-video/README.md#create) - Create Text-to-Video
|
|
86
|
+
|
|
87
|
+
### [v1.video_projects](src/resources/v1/video-projects/README.md)
|
|
88
|
+
|
|
89
|
+
* [get](src/resources/v1/video-projects/README.md#get) - Get video project details
|
|
90
|
+
|
|
91
|
+
### [v1.video_to_video](src/resources/v1/video-to-video/README.md)
|
|
92
|
+
|
|
93
|
+
* [create](src/resources/v1/video-to-video/README.md#create) - Create Video-to-Video
|
|
94
|
+
|
|
95
|
+
<!-- MODULE DOCS END -->
|
|
@@ -8,6 +8,8 @@ export declare class AiHeadshotGeneratorClient extends CoreResourceClient {
|
|
|
8
8
|
constructor(client: CoreClient);
|
|
9
9
|
/**
|
|
10
10
|
* Create an AI headshot. Each headshot costs 50 frames.
|
|
11
|
+
*
|
|
12
|
+
* POST /v1/ai-headshot-generator
|
|
11
13
|
*/
|
|
12
14
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AiHeadshotGeneratorResponse>;
|
|
13
15
|
}
|
|
@@ -8,6 +8,8 @@ export declare class AiImageGeneratorClient extends CoreResourceClient {
|
|
|
8
8
|
constructor(client: CoreClient);
|
|
9
9
|
/**
|
|
10
10
|
* Create an AI image. Each image costs 5 frames.
|
|
11
|
+
*
|
|
12
|
+
* POST /v1/ai-image-generator
|
|
11
13
|
*/
|
|
12
14
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AiImageGeneratorResponse>;
|
|
13
15
|
}
|
|
@@ -8,6 +8,8 @@ export declare class AiImageUpscalerClient extends CoreResourceClient {
|
|
|
8
8
|
constructor(client: CoreClient);
|
|
9
9
|
/**
|
|
10
10
|
* Upscale your image using AI. Each 2x upscale costs 50 frames, and 4x upscale costs 200 frames.
|
|
11
|
+
*
|
|
12
|
+
* POST /v1/ai-image-upscaler
|
|
11
13
|
*/
|
|
12
14
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AiImageUpscalerResponse>;
|
|
13
15
|
}
|
|
@@ -11,6 +11,8 @@ class AiImageUpscalerClient extends core_1.CoreResourceClient {
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Upscale your image using AI. Each 2x upscale costs 50 frames, and 4x upscale costs 200 frames.
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/ai-image-upscaler
|
|
14
16
|
*/
|
|
15
17
|
create(request, opts) {
|
|
16
18
|
return this._client.makeRequest({
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AiPhotoEditorClient = void 0;
|
|
7
|
+
var resource_client_1 = require("./resource-client");
|
|
8
|
+
Object.defineProperty(exports, "AiPhotoEditorClient", { enumerable: true, get: function () { return resource_client_1.AiPhotoEditorClient; } });
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../../../index.js";
|
|
5
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
6
|
+
import * as requests from "../../../resources/v1/ai-photo-editor/request-types";
|
|
7
|
+
export declare class AiPhotoEditorClient extends CoreResourceClient {
|
|
8
|
+
constructor(client: CoreClient);
|
|
9
|
+
/**
|
|
10
|
+
* > **NOTE**: this API is still in early development stages, and should be avoided. Please reach out to us if you're interested in this API.
|
|
11
|
+
*
|
|
12
|
+
* Edit photo using AI. Each photo costs 10 frames.
|
|
13
|
+
*
|
|
14
|
+
* POST /v1/ai-photo-editor
|
|
15
|
+
*/
|
|
16
|
+
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AiPhotoEditorResponse>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AiPhotoEditorClient = void 0;
|
|
7
|
+
const core_1 = require("../../../core");
|
|
8
|
+
class AiPhotoEditorClient extends core_1.CoreResourceClient {
|
|
9
|
+
constructor(client) {
|
|
10
|
+
super(client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* > **NOTE**: this API is still in early development stages, and should be avoided. Please reach out to us if you're interested in this API.
|
|
14
|
+
*
|
|
15
|
+
* Edit photo using AI. Each photo costs 10 frames.
|
|
16
|
+
*
|
|
17
|
+
* POST /v1/ai-photo-editor
|
|
18
|
+
*/
|
|
19
|
+
create(request, opts) {
|
|
20
|
+
return this._client.makeRequest({
|
|
21
|
+
method: "post",
|
|
22
|
+
path: "/v1/ai-photo-editor",
|
|
23
|
+
auth: ["bearerAuth"],
|
|
24
|
+
contentType: "application/json",
|
|
25
|
+
body: request.data,
|
|
26
|
+
responseType: "json",
|
|
27
|
+
opts,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.AiPhotoEditorClient = AiPhotoEditorClient;
|
|
@@ -8,6 +8,8 @@ export declare class AiQrCodeGeneratorClient extends CoreResourceClient {
|
|
|
8
8
|
constructor(client: CoreClient);
|
|
9
9
|
/**
|
|
10
10
|
* Create an AI QR code. Each QR code costs 20 frames.
|
|
11
|
+
*
|
|
12
|
+
* POST /v1/ai-qr-code-generator
|
|
11
13
|
*/
|
|
12
14
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AiQrCodeGeneratorResponse>;
|
|
13
15
|
}
|
|
@@ -11,6 +11,8 @@ export declare class FaceSwapClient extends CoreResourceClient {
|
|
|
11
11
|
*
|
|
12
12
|
* Get more information about this mode at our [product page](/products/face-swap).
|
|
13
13
|
*
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/face-swap
|
|
14
16
|
*/
|
|
15
17
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1FaceSwapResponse>;
|
|
16
18
|
}
|
|
@@ -8,6 +8,8 @@ export declare class FaceSwapPhotoClient extends CoreResourceClient {
|
|
|
8
8
|
constructor(client: CoreClient);
|
|
9
9
|
/**
|
|
10
10
|
* Create a face swap photo. Each photo costs 5 frames. The height/width of the output image depends on your subscription. Please refer to our [pricing](/pricing) page for more details
|
|
11
|
+
*
|
|
12
|
+
* POST /v1/face-swap-photo
|
|
11
13
|
*/
|
|
12
14
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1FaceSwapPhotoResponse>;
|
|
13
15
|
}
|
|
@@ -11,6 +11,8 @@ class FaceSwapPhotoClient extends core_1.CoreResourceClient {
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Create a face swap photo. Each photo costs 5 frames. The height/width of the output image depends on your subscription. Please refer to our [pricing](/pricing) page for more details
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/face-swap-photo
|
|
14
16
|
*/
|
|
15
17
|
create(request, opts) {
|
|
16
18
|
return this._client.makeRequest({
|
|
@@ -27,6 +27,8 @@ export declare class UploadUrlsClient extends CoreResourceClient {
|
|
|
27
27
|
* https://videos.magichour.ai/api-assets/id/video.mp4?auth-value=1234567890
|
|
28
28
|
* ```
|
|
29
29
|
*
|
|
30
|
+
*
|
|
31
|
+
* POST /v1/files/upload-urls
|
|
30
32
|
*/
|
|
31
33
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1FilesUploadUrlsResponse>;
|
|
32
34
|
}
|
|
@@ -17,6 +17,8 @@ export declare class ImageProjectsClient extends CoreResourceClient {
|
|
|
17
17
|
* - `error` - an error occurred during rendering
|
|
18
18
|
* - `canceled` - image render is canceled by the user
|
|
19
19
|
*
|
|
20
|
+
*
|
|
21
|
+
* GET /v1/image-projects/{id}
|
|
20
22
|
*/
|
|
21
23
|
get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.GetV1ImageProjectsIdResponse>;
|
|
22
24
|
}
|
|
@@ -20,6 +20,8 @@ class ImageProjectsClient extends core_1.CoreResourceClient {
|
|
|
20
20
|
* - `error` - an error occurred during rendering
|
|
21
21
|
* - `canceled` - image render is canceled by the user
|
|
22
22
|
*
|
|
23
|
+
*
|
|
24
|
+
* GET /v1/image-projects/{id}
|
|
23
25
|
*/
|
|
24
26
|
get(request, opts) {
|
|
25
27
|
return this._client.makeRequest({
|
|
@@ -11,6 +11,8 @@ export declare class ImageToVideoClient extends CoreResourceClient {
|
|
|
11
11
|
*
|
|
12
12
|
* Get more information about this mode at our [product page](/products/image-to-video).
|
|
13
13
|
*
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/image-to-video
|
|
14
16
|
*/
|
|
15
17
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1ImageToVideoResponse>;
|
|
16
18
|
}
|
|
@@ -14,6 +14,8 @@ class ImageToVideoClient extends core_1.CoreResourceClient {
|
|
|
14
14
|
*
|
|
15
15
|
* Get more information about this mode at our [product page](/products/image-to-video).
|
|
16
16
|
*
|
|
17
|
+
*
|
|
18
|
+
* POST /v1/image-to-video
|
|
17
19
|
*/
|
|
18
20
|
create(request, opts) {
|
|
19
21
|
return this._client.makeRequest({
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
export * as aiHeadshotGenerator from "./ai-headshot-generator";
|
|
5
5
|
export * as aiImageGenerator from "./ai-image-generator";
|
|
6
6
|
export * as aiImageUpscaler from "./ai-image-upscaler";
|
|
7
|
+
export * as aiPhotoEditor from "./ai-photo-editor";
|
|
7
8
|
export * as aiQrCodeGenerator from "./ai-qr-code-generator";
|
|
8
9
|
export * as faceSwap from "./face-swap";
|
|
9
10
|
export * as faceSwapPhoto from "./face-swap-photo";
|
|
@@ -26,10 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.V1Client = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.aiQrCodeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiHeadshotGenerator = void 0;
|
|
29
|
+
exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.V1Client = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.aiQrCodeGenerator = exports.aiPhotoEditor = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiHeadshotGenerator = void 0;
|
|
30
30
|
exports.aiHeadshotGenerator = __importStar(require("./ai-headshot-generator"));
|
|
31
31
|
exports.aiImageGenerator = __importStar(require("./ai-image-generator"));
|
|
32
32
|
exports.aiImageUpscaler = __importStar(require("./ai-image-upscaler"));
|
|
33
|
+
exports.aiPhotoEditor = __importStar(require("./ai-photo-editor"));
|
|
33
34
|
exports.aiQrCodeGenerator = __importStar(require("./ai-qr-code-generator"));
|
|
34
35
|
exports.faceSwap = __importStar(require("./face-swap"));
|
|
35
36
|
exports.faceSwapPhoto = __importStar(require("./face-swap-photo"));
|
|
@@ -11,6 +11,8 @@ export declare class LipSyncClient extends CoreResourceClient {
|
|
|
11
11
|
*
|
|
12
12
|
* Get more information about this mode at our [product page](/products/lip-sync).
|
|
13
13
|
*
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/lip-sync
|
|
14
16
|
*/
|
|
15
17
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1LipSyncResponse>;
|
|
16
18
|
}
|
|
@@ -5,6 +5,7 @@ import { CoreClient, CoreResourceClient } from "../../core";
|
|
|
5
5
|
import { AiHeadshotGeneratorClient } from "../../resources/v1/ai-headshot-generator";
|
|
6
6
|
import { AiImageGeneratorClient } from "../../resources/v1/ai-image-generator";
|
|
7
7
|
import { AiImageUpscalerClient } from "../../resources/v1/ai-image-upscaler";
|
|
8
|
+
import { AiPhotoEditorClient } from "../../resources/v1/ai-photo-editor";
|
|
8
9
|
import { AiQrCodeGeneratorClient } from "../../resources/v1/ai-qr-code-generator";
|
|
9
10
|
import { FaceSwapClient } from "../../resources/v1/face-swap";
|
|
10
11
|
import { FaceSwapPhotoClient } from "../../resources/v1/face-swap-photo";
|
|
@@ -21,6 +22,7 @@ export declare class V1Client extends CoreResourceClient {
|
|
|
21
22
|
aiHeadshotGenerator: AiHeadshotGeneratorClient;
|
|
22
23
|
aiImageGenerator: AiImageGeneratorClient;
|
|
23
24
|
aiImageUpscaler: AiImageUpscalerClient;
|
|
25
|
+
aiPhotoEditor: AiPhotoEditorClient;
|
|
24
26
|
aiQrCodeGenerator: AiQrCodeGeneratorClient;
|
|
25
27
|
faceSwap: FaceSwapClient;
|
|
26
28
|
faceSwapPhoto: FaceSwapPhotoClient;
|
|
@@ -8,6 +8,7 @@ const core_1 = require("../../core");
|
|
|
8
8
|
const ai_headshot_generator_1 = require("../../resources/v1/ai-headshot-generator");
|
|
9
9
|
const ai_image_generator_1 = require("../../resources/v1/ai-image-generator");
|
|
10
10
|
const ai_image_upscaler_1 = require("../../resources/v1/ai-image-upscaler");
|
|
11
|
+
const ai_photo_editor_1 = require("../../resources/v1/ai-photo-editor");
|
|
11
12
|
const ai_qr_code_generator_1 = require("../../resources/v1/ai-qr-code-generator");
|
|
12
13
|
const face_swap_1 = require("../../resources/v1/face-swap");
|
|
13
14
|
const face_swap_photo_1 = require("../../resources/v1/face-swap-photo");
|
|
@@ -26,6 +27,7 @@ class V1Client extends core_1.CoreResourceClient {
|
|
|
26
27
|
this.aiHeadshotGenerator = new ai_headshot_generator_1.AiHeadshotGeneratorClient(this._client);
|
|
27
28
|
this.aiImageGenerator = new ai_image_generator_1.AiImageGeneratorClient(this._client);
|
|
28
29
|
this.aiImageUpscaler = new ai_image_upscaler_1.AiImageUpscalerClient(this._client);
|
|
30
|
+
this.aiPhotoEditor = new ai_photo_editor_1.AiPhotoEditorClient(this._client);
|
|
29
31
|
this.aiQrCodeGenerator = new ai_qr_code_generator_1.AiQrCodeGeneratorClient(this._client);
|
|
30
32
|
this.faceSwap = new face_swap_1.FaceSwapClient(this._client);
|
|
31
33
|
this.faceSwapPhoto = new face_swap_photo_1.FaceSwapPhotoClient(this._client);
|
|
@@ -11,6 +11,8 @@ export declare class TextToVideoClient extends CoreResourceClient {
|
|
|
11
11
|
*
|
|
12
12
|
* Get more information about this mode at our [product page](/products/text-to-video).
|
|
13
13
|
*
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/text-to-video
|
|
14
16
|
*/
|
|
15
17
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1TextToVideoResponse>;
|
|
16
18
|
}
|
|
@@ -14,6 +14,8 @@ class TextToVideoClient extends core_1.CoreResourceClient {
|
|
|
14
14
|
*
|
|
15
15
|
* Get more information about this mode at our [product page](/products/text-to-video).
|
|
16
16
|
*
|
|
17
|
+
*
|
|
18
|
+
* POST /v1/text-to-video
|
|
17
19
|
*/
|
|
18
20
|
create(request, opts) {
|
|
19
21
|
return this._client.makeRequest({
|
|
@@ -17,6 +17,8 @@ export declare class VideoProjectsClient extends CoreResourceClient {
|
|
|
17
17
|
* - `error` - an error occurred during rendering
|
|
18
18
|
* - `canceled` - video render is canceled by the user
|
|
19
19
|
*
|
|
20
|
+
*
|
|
21
|
+
* GET /v1/video-projects/{id}
|
|
20
22
|
*/
|
|
21
23
|
get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.GetV1VideoProjectsIdResponse>;
|
|
22
24
|
}
|
|
@@ -20,6 +20,8 @@ class VideoProjectsClient extends core_1.CoreResourceClient {
|
|
|
20
20
|
* - `error` - an error occurred during rendering
|
|
21
21
|
* - `canceled` - video render is canceled by the user
|
|
22
22
|
*
|
|
23
|
+
*
|
|
24
|
+
* GET /v1/video-projects/{id}
|
|
23
25
|
*/
|
|
24
26
|
get(request, opts) {
|
|
25
27
|
return this._client.makeRequest({
|
|
@@ -11,6 +11,8 @@ export declare class VideoToVideoClient extends CoreResourceClient {
|
|
|
11
11
|
*
|
|
12
12
|
* Get more information about this mode at our [product page](/products/video-to-video).
|
|
13
13
|
*
|
|
14
|
+
*
|
|
15
|
+
* POST /v1/video-to-video
|
|
14
16
|
*/
|
|
15
17
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1VideoToVideoResponse>;
|
|
16
18
|
}
|
|
@@ -14,6 +14,8 @@ class VideoToVideoClient extends core_1.CoreResourceClient {
|
|
|
14
14
|
*
|
|
15
15
|
* Get more information about this mode at our [product page](/products/video-to-video).
|
|
16
16
|
*
|
|
17
|
+
*
|
|
18
|
+
* POST /v1/video-to-video
|
|
17
19
|
*/
|
|
18
20
|
create(request, opts) {
|
|
19
21
|
return this._client.makeRequest({
|