magic-hour 0.88.0 → 0.89.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 +4 -0
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-image-generator/request-types.d.ts +7 -2
- package/dist/resources/v1/ai-image-generator/request-types.js +2 -0
- package/dist/resources/v1/ai-video-editor/request-types.d.ts +11 -3
- package/dist/resources/v1/ai-video-editor/request-types.js +11 -2
- package/dist/resources/v1/face-detection/resource-client.d.ts +4 -0
- package/dist/resources/v1/face-detection/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/resource-client.d.ts +3 -0
- package/dist/resources/v1/resource-client.js +5 -0
- package/dist/resources/v1/text-to-video/request-types.d.ts +4 -2
- package/dist/resources/v1/video-to-video/request-types.d.ts +7 -6
- package/dist/resources/v1/video-to-video/request-types.js +4 -0
- package/dist/resources/v1/video-to-video/resource-client.d.ts +6 -0
- package/dist/resources/v1/video-to-video/resource-client.js +6 -0
- package/dist/resources/v1/voices/index.d.ts +2 -0
- package/dist/resources/v1/voices/index.js +5 -0
- package/dist/resources/v1/voices/request-types.d.ts +27 -0
- package/dist/resources/v1/voices/request-types.js +71 -0
- package/dist/resources/v1/voices/resource-client.d.ts +14 -0
- package/dist/resources/v1/voices/resource-client.js +75 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/v1-ai-image-generator-create-body-model-enum.d.ts +5 -1
- package/dist/types/v1-ai-image-generator-create-body-resolution-enum.d.ts +1 -0
- package/dist/types/v1-ai-image-generator-create-body.d.ts +7 -2
- package/dist/types/v1-ai-image-generator-create-body.js +2 -0
- package/dist/types/v1-ai-video-editor-create-body-references-item.d.ts +29 -0
- package/dist/types/v1-ai-video-editor-create-body-references-item.js +71 -0
- package/dist/types/v1-ai-video-editor-create-body-resolution-enum.d.ts +2 -2
- package/dist/types/v1-ai-video-editor-create-body.d.ts +11 -3
- package/dist/types/v1-ai-video-editor-create-body.js +11 -2
- package/dist/types/v1-ai-voice-cloner-create-body-style-language-enum.d.ts +4 -0
- package/dist/types/v1-ai-voice-cloner-create-body-style-language-enum.js +2 -0
- package/dist/types/v1-ai-voice-cloner-create-body-style.d.ts +10 -0
- package/dist/types/v1-ai-voice-cloner-create-body-style.js +178 -0
- package/dist/types/v1-ai-voice-generator-create-body-style-language-enum.d.ts +4 -0
- package/dist/types/v1-ai-voice-generator-create-body-style-language-enum.js +2 -0
- package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.d.ts +2 -2
- package/dist/types/v1-ai-voice-generator-create-body-style.d.ts +13 -3
- package/dist/types/v1-ai-voice-generator-create-body-style.js +1150 -0
- package/dist/types/v1-face-detection-get-response-error.d.ts +27 -0
- package/dist/types/v1-face-detection-get-response-error.js +71 -0
- package/dist/types/v1-face-detection-get-response.d.ts +6 -0
- package/dist/types/v1-face-detection-get-response.js +5 -0
- package/dist/types/v1-text-to-video-create-body.d.ts +4 -2
- package/dist/types/v1-video-to-video-create-body-assets.d.ts +5 -0
- package/dist/types/v1-video-to-video-create-body-assets.js +4 -0
- package/dist/types/v1-video-to-video-create-body-style-art-style-enum.d.ts +1 -1
- package/dist/types/v1-video-to-video-create-body-style-model-enum.d.ts +2 -1
- package/dist/types/v1-video-to-video-create-body-style-version-enum.d.ts +3 -2
- package/dist/types/v1-video-to-video-create-body-style.d.ts +9 -7
- package/dist/types/v1-video-to-video-create-body-style.js +688 -2
- package/dist/types/v1-video-to-video-create-body.d.ts +7 -6
- package/dist/types/v1-video-to-video-create-body.js +4 -0
- package/dist/types/v1-voices-list-response-voices-item.d.ts +37 -0
- package/dist/types/v1-voices-list-response-voices-item.js +79 -0
- package/dist/types/v1-voices-list-response.d.ts +25 -0
- package/dist/types/v1-voices-list-response.js +72 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -415,4 +415,8 @@ Valid values are: `none`, `error`, `warn`, `info`, `debug` (case insensitive). I
|
|
|
415
415
|
- [create](src/resources/v1/video-to-video/README.md#create) - Video-to-Video
|
|
416
416
|
- [generate](src/resources/v1/video-to-video/README.md#generate) - Video To Video Generate Workflow
|
|
417
417
|
|
|
418
|
+
### [v1.voices](src/resources/v1/voices/README.md)
|
|
419
|
+
|
|
420
|
+
- [list](src/resources/v1/voices/README.md#list) - List voices
|
|
421
|
+
|
|
418
422
|
<!-- MODULE DOCS END -->
|
package/dist/environment.d.ts
CHANGED
package/dist/environment.js
CHANGED
|
@@ -4,5 +4,5 @@ exports.Environment = void 0;
|
|
|
4
4
|
var Environment;
|
|
5
5
|
(function (Environment) {
|
|
6
6
|
Environment["Environment"] = "https://api.magichour.ai";
|
|
7
|
-
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.
|
|
7
|
+
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.93.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -65,6 +65,10 @@ export type CreateRequest = {
|
|
|
65
65
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
66
66
|
* - Available for tiers: creator, pro, business
|
|
67
67
|
* - Image count allowed: 1, 2, 3, 4
|
|
68
|
+
* - `seedream-v4.5` - from 50 credits/image
|
|
69
|
+
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
70
|
+
* - Available for tiers: creator, pro, business
|
|
71
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
68
72
|
* - `seedream-v5-pro` - from 75 credits/image
|
|
69
73
|
* - Supported resolutions: 640px, 1k, 2k
|
|
70
74
|
* - Available for tiers: creator, pro, business
|
|
@@ -78,7 +82,7 @@ export type CreateRequest = {
|
|
|
78
82
|
* - `seedream` - Use `seedream-v4` instead.
|
|
79
83
|
*
|
|
80
84
|
*/
|
|
81
|
-
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-2.1" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
85
|
+
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-2.1" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
82
86
|
/**
|
|
83
87
|
* Give your image a custom name for easy identification.
|
|
84
88
|
*/
|
|
@@ -112,6 +116,7 @@ export type CreateRequest = {
|
|
|
112
116
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
113
117
|
* - `qwen-image-2.1` - 640px, 1k, 2k
|
|
114
118
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
119
|
+
* - `seedream-v4.5` - 640px, 1k, 2k, 4k
|
|
115
120
|
* - `seedream-v5-pro` - 640px, 1k, 2k
|
|
116
121
|
* - `z-image-turbo` - 640px, 1k, 2k
|
|
117
122
|
*
|
|
@@ -131,7 +136,7 @@ export type CreateRequest = {
|
|
|
131
136
|
export type External$CreateRequest = {
|
|
132
137
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
133
138
|
image_count: number;
|
|
134
|
-
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-2.1" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
139
|
+
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-2.1" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro" | "z-image-turbo") | undefined;
|
|
135
140
|
name?: string | undefined;
|
|
136
141
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
137
142
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
@@ -60,6 +60,7 @@ const SchemaIn$CreateRequest = z
|
|
|
60
60
|
"qwen-image-2.1",
|
|
61
61
|
"seedream",
|
|
62
62
|
"seedream-v4",
|
|
63
|
+
"seedream-v4.5",
|
|
63
64
|
"seedream-v5-pro",
|
|
64
65
|
"z-image-turbo",
|
|
65
66
|
])
|
|
@@ -104,6 +105,7 @@ const SchemaOut$CreateRequest = z
|
|
|
104
105
|
"qwen-image-2.1",
|
|
105
106
|
"seedream",
|
|
106
107
|
"seedream-v4",
|
|
108
|
+
"seedream-v4.5",
|
|
107
109
|
"seedream-v5-pro",
|
|
108
110
|
"z-image-turbo",
|
|
109
111
|
])
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { External$V1AiVideoEditorCreateBodyAssets, V1AiVideoEditorCreateBodyAssets } from "../../../types/v1-ai-video-editor-create-body-assets.js";
|
|
3
|
+
import { External$V1AiVideoEditorCreateBodyReferencesItem, V1AiVideoEditorCreateBodyReferencesItem } from "../../../types/v1-ai-video-editor-create-body-references-item.js";
|
|
3
4
|
import { External$V1AiVideoEditorCreateBodyStyle, V1AiVideoEditorCreateBodyStyle } from "../../../types/v1-ai-video-editor-create-body-style.js";
|
|
4
5
|
/**
|
|
5
6
|
* CreateRequest
|
|
@@ -22,9 +23,15 @@ export type CreateRequest = {
|
|
|
22
23
|
*/
|
|
23
24
|
name?: string | undefined;
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
+
* Name references without @ and refer to them as @name in style.prompt. Names must be unique, ignoring case. Maximum 10 references total. Omit for no references.
|
|
27
|
+
*
|
|
28
|
+
* Reference images for gemini-omni-1.1, wan-3.0, gemini-omni.
|
|
26
29
|
*/
|
|
27
|
-
|
|
30
|
+
references?: V1AiVideoEditorCreateBodyReferencesItem[] | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.1`: 360p, 720p, 1080p, 4k; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p.
|
|
33
|
+
*/
|
|
34
|
+
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
28
35
|
/**
|
|
29
36
|
* Start time of your clip (seconds). Must be ≥ 0.
|
|
30
37
|
*/
|
|
@@ -41,7 +48,8 @@ export type External$CreateRequest = {
|
|
|
41
48
|
end_seconds: number;
|
|
42
49
|
model?: ("gemini-omni" | "gemini-omni-1.1" | "ltx-2.3" | "ltx-2.5" | "wan-3.0") | undefined;
|
|
43
50
|
name?: string | undefined;
|
|
44
|
-
|
|
51
|
+
references?: External$V1AiVideoEditorCreateBodyReferencesItem[] | undefined;
|
|
52
|
+
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
45
53
|
start_seconds?: number | undefined;
|
|
46
54
|
style: External$V1AiVideoEditorCreateBodyStyle;
|
|
47
55
|
};
|
|
@@ -37,6 +37,7 @@ exports.Schemas$CreateRequest = void 0;
|
|
|
37
37
|
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
38
|
const z = __importStar(require("zod"));
|
|
39
39
|
const v1_ai_video_editor_create_body_assets_1 = require("../../../types/v1-ai-video-editor-create-body-assets.js");
|
|
40
|
+
const v1_ai_video_editor_create_body_references_item_1 = require("../../../types/v1-ai-video-editor-create-body-references-item.js");
|
|
40
41
|
const v1_ai_video_editor_create_body_style_1 = require("../../../types/v1-ai-video-editor-create-body-style.js");
|
|
41
42
|
/**
|
|
42
43
|
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
@@ -49,7 +50,10 @@ const SchemaIn$CreateRequest = z
|
|
|
49
50
|
.enum(["gemini-omni", "gemini-omni-1.1", "ltx-2.3", "ltx-2.5", "wan-3.0"])
|
|
50
51
|
.optional(),
|
|
51
52
|
name: z.string().optional(),
|
|
52
|
-
|
|
53
|
+
references: z
|
|
54
|
+
.array(v1_ai_video_editor_create_body_references_item_1.Schemas$V1AiVideoEditorCreateBodyReferencesItem.in)
|
|
55
|
+
.optional(),
|
|
56
|
+
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
53
57
|
start_seconds: z.number().optional(),
|
|
54
58
|
style: v1_ai_video_editor_create_body_style_1.Schemas$V1AiVideoEditorCreateBodyStyle.in,
|
|
55
59
|
})
|
|
@@ -59,6 +63,7 @@ const SchemaIn$CreateRequest = z
|
|
|
59
63
|
end_seconds: "endSeconds",
|
|
60
64
|
model: "model",
|
|
61
65
|
name: "name",
|
|
66
|
+
references: "references",
|
|
62
67
|
resolution: "resolution",
|
|
63
68
|
start_seconds: "startSeconds",
|
|
64
69
|
style: "style",
|
|
@@ -76,7 +81,10 @@ const SchemaOut$CreateRequest = z
|
|
|
76
81
|
.enum(["gemini-omni", "gemini-omni-1.1", "ltx-2.3", "ltx-2.5", "wan-3.0"])
|
|
77
82
|
.optional(),
|
|
78
83
|
name: z.string().optional(),
|
|
79
|
-
|
|
84
|
+
references: z
|
|
85
|
+
.array(v1_ai_video_editor_create_body_references_item_1.Schemas$V1AiVideoEditorCreateBodyReferencesItem.out)
|
|
86
|
+
.optional(),
|
|
87
|
+
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
80
88
|
startSeconds: z.number().optional(),
|
|
81
89
|
style: v1_ai_video_editor_create_body_style_1.Schemas$V1AiVideoEditorCreateBodyStyle.out,
|
|
82
90
|
})
|
|
@@ -86,6 +94,7 @@ const SchemaOut$CreateRequest = z
|
|
|
86
94
|
endSeconds: "end_seconds",
|
|
87
95
|
model: "model",
|
|
88
96
|
name: "name",
|
|
97
|
+
references: "references",
|
|
89
98
|
resolution: "resolution",
|
|
90
99
|
startSeconds: "start_seconds",
|
|
91
100
|
style: "style",
|
|
@@ -22,6 +22,7 @@ export declare class FaceDetectionClient extends CoreResourceClient {
|
|
|
22
22
|
*/
|
|
23
23
|
generate(request: GenerateRequest, opts?: GenerateOptions): Promise<{
|
|
24
24
|
creditsCharged: number;
|
|
25
|
+
error: types.V1FaceDetectionGetResponseError | null;
|
|
25
26
|
faces: types.V1FaceDetectionGetResponseFacesItem[];
|
|
26
27
|
id: string;
|
|
27
28
|
status: "complete" | "error" | "queued" | "rendering";
|
|
@@ -33,6 +34,7 @@ export declare class FaceDetectionClient extends CoreResourceClient {
|
|
|
33
34
|
}[];
|
|
34
35
|
downloadedPaths: string[];
|
|
35
36
|
creditsCharged: number;
|
|
37
|
+
error: types.V1FaceDetectionGetResponseError | null;
|
|
36
38
|
faces: types.V1FaceDetectionGetResponseFacesItem[];
|
|
37
39
|
id: string;
|
|
38
40
|
status: "complete" | "error" | "queued" | "rendering";
|
|
@@ -44,6 +46,8 @@ export declare class FaceDetectionClient extends CoreResourceClient {
|
|
|
44
46
|
*
|
|
45
47
|
* Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/image-projects/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/video-projects/face-swap-video) API calls for multi-face swaps.
|
|
46
48
|
*
|
|
49
|
+
* When `status` is `error`, the `error` field explains why (for example `nsfw` when the content-safety filter blocked the file). It is `null` otherwise.
|
|
50
|
+
*
|
|
47
51
|
* GET /v1/face-detection/{id}
|
|
48
52
|
*/
|
|
49
53
|
get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.V1FaceDetectionGetResponse>;
|
|
@@ -103,6 +103,8 @@ class FaceDetectionClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
103
103
|
*
|
|
104
104
|
* Use this API to get the list of faces detected in the image or video to use in the [face swap photo](https://docs.magichour.ai/api-reference/image-projects/face-swap-photo) or [face swap video](https://docs.magichour.ai/api-reference/video-projects/face-swap-video) API calls for multi-face swaps.
|
|
105
105
|
*
|
|
106
|
+
* When `status` is `error`, the `error` field explains why (for example `nsfw` when the content-safety filter blocked the file). It is `null` otherwise.
|
|
107
|
+
*
|
|
106
108
|
* GET /v1/face-detection/{id}
|
|
107
109
|
*/
|
|
108
110
|
get(request, opts) {
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.savedItems = exports.V1Client = exports.photoColorizer = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.headSwap = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.faceDetection = exports.characterReplace = exports.bodySwap = exports.autoSubtitleGenerator = exports.audioToVideo = exports.audioProjects = exports.animation = exports.aiVoiceGenerator = exports.aiVoiceCloner = exports.aiVideoUpscaler = exports.aiVideoTranslator = exports.aiVideoEditor = exports.aiUgcAd = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiMusicGenerator = exports.aiMemeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiImageEditor = exports.aiHeadshotGenerator = exports.aiGifGenerator = exports.aiFaceEditor = exports.aiClothesChanger = exports.account = void 0;
|
|
36
|
+
exports.voices = exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.savedItems = exports.V1Client = exports.photoColorizer = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.headSwap = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.faceDetection = exports.characterReplace = exports.bodySwap = exports.autoSubtitleGenerator = exports.audioToVideo = exports.audioProjects = exports.animation = exports.aiVoiceGenerator = exports.aiVoiceCloner = exports.aiVideoUpscaler = exports.aiVideoTranslator = exports.aiVideoEditor = exports.aiUgcAd = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiMusicGenerator = exports.aiMemeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiImageEditor = exports.aiHeadshotGenerator = exports.aiGifGenerator = exports.aiFaceEditor = exports.aiClothesChanger = exports.account = void 0;
|
|
37
37
|
exports.account = __importStar(require("./account"));
|
|
38
38
|
exports.aiClothesChanger = __importStar(require("./ai-clothes-changer"));
|
|
39
39
|
exports.aiFaceEditor = __importStar(require("./ai-face-editor"));
|
|
@@ -74,3 +74,4 @@ exports.savedItems = __importStar(require("./saved-items"));
|
|
|
74
74
|
exports.textToVideo = __importStar(require("./text-to-video"));
|
|
75
75
|
exports.videoProjects = __importStar(require("./video-projects"));
|
|
76
76
|
exports.videoToVideo = __importStar(require("./video-to-video"));
|
|
77
|
+
exports.voices = __importStar(require("./voices"));
|
|
@@ -37,7 +37,9 @@ import { SavedItemsClient } from "./saved-items/index.js";
|
|
|
37
37
|
import { TextToVideoClient } from "./text-to-video/index.js";
|
|
38
38
|
import { VideoProjectsClient } from "./video-projects/index.js";
|
|
39
39
|
import { VideoToVideoClient } from "./video-to-video/index.js";
|
|
40
|
+
import { VoicesClient } from "./voices/index.js";
|
|
40
41
|
export declare class V1Client extends CoreResourceClient {
|
|
42
|
+
private _voicesLazy?;
|
|
41
43
|
private _aiVideoUpscalerLazy?;
|
|
42
44
|
private _aiMusicGeneratorLazy?;
|
|
43
45
|
private _aiUgcAdLazy?;
|
|
@@ -115,4 +117,5 @@ export declare class V1Client extends CoreResourceClient {
|
|
|
115
117
|
get aiUgcAd(): AiUgcAdClient;
|
|
116
118
|
get aiMusicGenerator(): AiMusicGeneratorClient;
|
|
117
119
|
get aiVideoUpscaler(): AiVideoUpscalerClient;
|
|
120
|
+
get voices(): VoicesClient;
|
|
118
121
|
}
|
|
@@ -44,6 +44,7 @@ class V1Client extends make_api_request_js_1.CoreResourceClient {
|
|
|
44
44
|
this.textToVideo;
|
|
45
45
|
this.videoProjects;
|
|
46
46
|
this.videoToVideo;
|
|
47
|
+
this.voices;
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
get imageProjects() {
|
|
@@ -227,5 +228,9 @@ class V1Client extends make_api_request_js_1.CoreResourceClient {
|
|
|
227
228
|
return ((_a = this._aiVideoUpscalerLazy) !== null && _a !== void 0 ? _a : (this._aiVideoUpscalerLazy =
|
|
228
229
|
new (require("./ai-video-upscaler").AiVideoUpscalerClient)(this._client, this._opts)));
|
|
229
230
|
}
|
|
231
|
+
get voices() {
|
|
232
|
+
var _a;
|
|
233
|
+
return ((_a = this._voicesLazy) !== null && _a !== void 0 ? _a : (this._voicesLazy = new (require("./voices").VoicesClient)(this._client, this._opts)));
|
|
234
|
+
}
|
|
230
235
|
}
|
|
231
236
|
exports.V1Client = V1Client;
|
|
@@ -101,13 +101,15 @@ export type CreateRequest = {
|
|
|
101
101
|
*/
|
|
102
102
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Name references without @ and refer to them as @name in style.prompt. Names must be unique, ignoring case. Maximum 10 references total. Omit for no references.
|
|
105
|
+
*
|
|
106
|
+
* Reference media for video generation.
|
|
105
107
|
*
|
|
106
108
|
* Supported models and reference media:
|
|
107
109
|
* * **`gemini-omni-1.1`**: Supports images, videos. Up to 10 references.
|
|
108
110
|
* * **`kling-3.0`**: Supports images, videos.
|
|
109
111
|
* * **`kling-4.0`**: Supports images, videos. Up to 10 references.
|
|
110
|
-
* * **`minimax-h3`**: Supports images, videos, audio. Video references must be 2–15 seconds each and 15 seconds combined, and are used in full.
|
|
112
|
+
* * **`minimax-h3`**: Supports images, videos, audio. Video references must be 2–15 seconds each and 15 seconds combined, and are used in full. Audio references must be 2–15 seconds each and are used in full.
|
|
111
113
|
* * **`seedance-2.0`**: Supports images, videos, audio.
|
|
112
114
|
* * **`seedance-2.0-fast`**: Supports images, videos, audio.
|
|
113
115
|
* * **`seedance-2.0-mini`**: Supports images, videos, audio.
|
|
@@ -13,6 +13,10 @@ export type CreateRequest = {
|
|
|
13
13
|
* End time of your clip (seconds). Must be greater than start_seconds.
|
|
14
14
|
*/
|
|
15
15
|
endSeconds: number;
|
|
16
|
+
/**
|
|
17
|
+
* Source video FPS for v3 frame limits and estimated credits. Defaults to 30; final charges settle to rendered frames.
|
|
18
|
+
*/
|
|
19
|
+
fps?: number | undefined;
|
|
16
20
|
/**
|
|
17
21
|
* Determines whether the resulting video will have the same frame per second as the original video, or half.
|
|
18
22
|
* * `FULL` - the result video will have the same FPS as the input video
|
|
@@ -20,9 +24,7 @@ export type CreateRequest = {
|
|
|
20
24
|
*/
|
|
21
25
|
fpsResolution?: ("FULL" | "HALF") | undefined;
|
|
22
26
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
27
|
+
* Source video height in integer pixels. Required and positive for v3; ignored for v1/v2.
|
|
26
28
|
*/
|
|
27
29
|
height?: number | null | undefined;
|
|
28
30
|
/**
|
|
@@ -35,9 +37,7 @@ export type CreateRequest = {
|
|
|
35
37
|
startSeconds: number;
|
|
36
38
|
style: V1VideoToVideoCreateBodyStyle;
|
|
37
39
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* This field is retained only for backward compatibility and will be removed in a future release.
|
|
40
|
+
* Source video width in integer pixels. Required and positive for v3; ignored for v1/v2.
|
|
41
41
|
*/
|
|
42
42
|
width?: number | null | undefined;
|
|
43
43
|
};
|
|
@@ -49,6 +49,7 @@ export type CreateRequest = {
|
|
|
49
49
|
export type External$CreateRequest = {
|
|
50
50
|
assets: External$V1VideoToVideoCreateBodyAssets;
|
|
51
51
|
end_seconds: number;
|
|
52
|
+
fps?: number | undefined;
|
|
52
53
|
fps_resolution?: ("FULL" | "HALF") | undefined;
|
|
53
54
|
height?: number | null | undefined;
|
|
54
55
|
name?: string | undefined;
|
|
@@ -45,6 +45,7 @@ const SchemaIn$CreateRequest = z
|
|
|
45
45
|
.object({
|
|
46
46
|
assets: v1_video_to_video_create_body_assets_1.Schemas$V1VideoToVideoCreateBodyAssets.in,
|
|
47
47
|
end_seconds: z.number(),
|
|
48
|
+
fps: z.number().optional(),
|
|
48
49
|
fps_resolution: z.enum(["FULL", "HALF"]).optional(),
|
|
49
50
|
height: z.number().int().nullable().optional(),
|
|
50
51
|
name: z.string().optional(),
|
|
@@ -56,6 +57,7 @@ const SchemaIn$CreateRequest = z
|
|
|
56
57
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
57
58
|
assets: "assets",
|
|
58
59
|
end_seconds: "endSeconds",
|
|
60
|
+
fps: "fps",
|
|
59
61
|
fps_resolution: "fpsResolution",
|
|
60
62
|
height: "height",
|
|
61
63
|
name: "name",
|
|
@@ -72,6 +74,7 @@ const SchemaOut$CreateRequest = z
|
|
|
72
74
|
.object({
|
|
73
75
|
assets: v1_video_to_video_create_body_assets_1.Schemas$V1VideoToVideoCreateBodyAssets.out,
|
|
74
76
|
endSeconds: z.number(),
|
|
77
|
+
fps: z.number().optional(),
|
|
75
78
|
fpsResolution: z.enum(["FULL", "HALF"]).optional(),
|
|
76
79
|
height: z.number().int().nullable().optional(),
|
|
77
80
|
name: z.string().optional(),
|
|
@@ -83,6 +86,7 @@ const SchemaOut$CreateRequest = z
|
|
|
83
86
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
84
87
|
assets: "assets",
|
|
85
88
|
endSeconds: "end_seconds",
|
|
89
|
+
fps: "fps",
|
|
86
90
|
fpsResolution: "fps_resolution",
|
|
87
91
|
height: "height",
|
|
88
92
|
name: "name",
|
|
@@ -76,6 +76,12 @@ export declare class VideoToVideoClient extends CoreResourceClient {
|
|
|
76
76
|
*
|
|
77
77
|
* For detailed examples, see the [product page](https://magichour.ai/products/video-to-video).
|
|
78
78
|
*
|
|
79
|
+
* V3 request example (upload both assets first):
|
|
80
|
+
* ```json
|
|
81
|
+
* {"start_seconds":0,"end_seconds":2,"width":1024,"height":704,"fps":30,"fps_resolution":"HALF","style":{"art_style":"Studio Ghibli","version":"v3","model":"default"},"assets":{"video_source":"file","video_file_path":"api-assets/id/video.mp4","initial_image_path":"api-assets/id/reference.png"}}
|
|
82
|
+
* ```
|
|
83
|
+
* V3 supports up to 1,200 output frames for square videos and 800 otherwise.
|
|
84
|
+
*
|
|
79
85
|
* POST /v1/video-to-video
|
|
80
86
|
*/
|
|
81
87
|
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.V1VideoToVideoCreateResponse>;
|
|
@@ -118,6 +118,12 @@ class VideoToVideoClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
118
118
|
*
|
|
119
119
|
* For detailed examples, see the [product page](https://magichour.ai/products/video-to-video).
|
|
120
120
|
*
|
|
121
|
+
* V3 request example (upload both assets first):
|
|
122
|
+
* ```json
|
|
123
|
+
* {"start_seconds":0,"end_seconds":2,"width":1024,"height":704,"fps":30,"fps_resolution":"HALF","style":{"art_style":"Studio Ghibli","version":"v3","model":"default"},"assets":{"video_source":"file","video_file_path":"api-assets/id/video.mp4","initial_image_path":"api-assets/id/reference.png"}}
|
|
124
|
+
* ```
|
|
125
|
+
* V3 supports up to 1,200 output frames for square videos and 800 otherwise.
|
|
126
|
+
*
|
|
121
127
|
* POST /v1/video-to-video
|
|
122
128
|
*/
|
|
123
129
|
create(request, opts) {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoicesClient = void 0;
|
|
4
|
+
var resource_client_1 = require("./resource-client");
|
|
5
|
+
Object.defineProperty(exports, "VoicesClient", { enumerable: true, get: function () { return resource_client_1.VoicesClient; } });
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* ListRequest
|
|
4
|
+
*/
|
|
5
|
+
export type ListRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* Opaque pagination cursor from the previous response's next_cursor.
|
|
8
|
+
*/
|
|
9
|
+
cursor?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Maximum number of voices to return. Defaults to 20.
|
|
12
|
+
*/
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
* ListRequest without any key transformation, this is what
|
|
18
|
+
* we expect to come in as network data
|
|
19
|
+
*/
|
|
20
|
+
export type External$ListRequest = {
|
|
21
|
+
cursor?: string | undefined;
|
|
22
|
+
limit?: number | undefined;
|
|
23
|
+
};
|
|
24
|
+
export declare const Schemas$ListRequest: {
|
|
25
|
+
in: z.ZodType<ListRequest, z.ZodTypeDef, unknown>;
|
|
26
|
+
out: z.ZodType<External$ListRequest, z.ZodTypeDef, ListRequest>;
|
|
27
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$ListRequest = void 0;
|
|
37
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object ListRequest
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$ListRequest = z
|
|
43
|
+
.object({
|
|
44
|
+
cursor: z.string().optional(),
|
|
45
|
+
limit: z.number().int().optional(),
|
|
46
|
+
})
|
|
47
|
+
.transform((obj) => {
|
|
48
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
49
|
+
cursor: "cursor",
|
|
50
|
+
limit: "limit",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$ListRequest
|
|
56
|
+
*/
|
|
57
|
+
const SchemaOut$ListRequest = z
|
|
58
|
+
.object({
|
|
59
|
+
cursor: z.string().optional(),
|
|
60
|
+
limit: z.number().int().optional(),
|
|
61
|
+
})
|
|
62
|
+
.transform((obj) => {
|
|
63
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
64
|
+
cursor: "cursor",
|
|
65
|
+
limit: "limit",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
exports.Schemas$ListRequest = {
|
|
69
|
+
in: SchemaIn$ListRequest,
|
|
70
|
+
out: SchemaOut$ListRequest,
|
|
71
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions, ResourceClientOptions } from "make-api-request-js";
|
|
2
|
+
import * as requests from "./request-types.js";
|
|
3
|
+
import * as types from "../../../types/index.js";
|
|
4
|
+
export declare class VoicesClient extends CoreResourceClient {
|
|
5
|
+
constructor(coreClient: CoreClient, opts: ResourceClientOptions);
|
|
6
|
+
/**
|
|
7
|
+
* List voices
|
|
8
|
+
*
|
|
9
|
+
* List the voices available for text-to-speech. Use a voice's `id` as `style.voice_name` in the AI Voice Generator API. To fetch the next page, pass the response's next_cursor as cursor.
|
|
10
|
+
*
|
|
11
|
+
* GET /v1/voices
|
|
12
|
+
*/
|
|
13
|
+
list(request?: requests.ListRequest, opts?: RequestOptions): ApiPromise<types.V1VoicesListResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.VoicesClient = void 0;
|
|
37
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
const v1_voices_list_response_1 = require("../../../types/v1-voices-list-response.js");
|
|
40
|
+
class VoicesClient extends make_api_request_js_1.CoreResourceClient {
|
|
41
|
+
constructor(coreClient, opts) {
|
|
42
|
+
super(coreClient, opts);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* List voices
|
|
46
|
+
*
|
|
47
|
+
* List the voices available for text-to-speech. Use a voice's `id` as `style.voice_name` in the AI Voice Generator API. To fetch the next page, pass the response's next_cursor as cursor.
|
|
48
|
+
*
|
|
49
|
+
* GET /v1/voices
|
|
50
|
+
*/
|
|
51
|
+
list(request = {}, opts) {
|
|
52
|
+
return this._client.makeRequest({
|
|
53
|
+
method: "get",
|
|
54
|
+
path: "/v1/voices",
|
|
55
|
+
auth: ["bearerAuth"],
|
|
56
|
+
query: [
|
|
57
|
+
(0, make_api_request_js_1.encodeQueryParam)({
|
|
58
|
+
name: "cursor",
|
|
59
|
+
value: z.string().optional().parse(request.cursor),
|
|
60
|
+
style: "form",
|
|
61
|
+
explode: true,
|
|
62
|
+
}),
|
|
63
|
+
(0, make_api_request_js_1.encodeQueryParam)({
|
|
64
|
+
name: "limit",
|
|
65
|
+
value: z.number().int().optional().parse(request.limit),
|
|
66
|
+
style: "form",
|
|
67
|
+
explode: true,
|
|
68
|
+
}),
|
|
69
|
+
],
|
|
70
|
+
responseSchema: v1_voices_list_response_1.Schemas$V1VoicesListResponse.in,
|
|
71
|
+
opts,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.VoicesClient = VoicesClient;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export { V1AiUgcAdCreateResponse } from "./v1-ai-ugc-ad-create-response";
|
|
|
68
68
|
export { V1AiVideoEditorCreateBody } from "./v1-ai-video-editor-create-body";
|
|
69
69
|
export { V1AiVideoEditorCreateBodyAssets } from "./v1-ai-video-editor-create-body-assets";
|
|
70
70
|
export { V1AiVideoEditorCreateBodyModelEnum } from "./v1-ai-video-editor-create-body-model-enum";
|
|
71
|
+
export { V1AiVideoEditorCreateBodyReferencesItem } from "./v1-ai-video-editor-create-body-references-item";
|
|
71
72
|
export { V1AiVideoEditorCreateBodyResolutionEnum } from "./v1-ai-video-editor-create-body-resolution-enum";
|
|
72
73
|
export { V1AiVideoEditorCreateBodyStyle } from "./v1-ai-video-editor-create-body-style";
|
|
73
74
|
export { V1AiVideoEditorCreateResponse } from "./v1-ai-video-editor-create-response";
|
|
@@ -83,9 +84,11 @@ export { V1AiVideoUpscalerCreateResponse } from "./v1-ai-video-upscaler-create-r
|
|
|
83
84
|
export { V1AiVoiceClonerCreateBody } from "./v1-ai-voice-cloner-create-body";
|
|
84
85
|
export { V1AiVoiceClonerCreateBodyAssets } from "./v1-ai-voice-cloner-create-body-assets";
|
|
85
86
|
export { V1AiVoiceClonerCreateBodyStyle } from "./v1-ai-voice-cloner-create-body-style";
|
|
87
|
+
export { V1AiVoiceClonerCreateBodyStyleLanguageEnum } from "./v1-ai-voice-cloner-create-body-style-language-enum";
|
|
86
88
|
export { V1AiVoiceClonerCreateResponse } from "./v1-ai-voice-cloner-create-response";
|
|
87
89
|
export { V1AiVoiceGeneratorCreateBody } from "./v1-ai-voice-generator-create-body";
|
|
88
90
|
export { V1AiVoiceGeneratorCreateBodyStyle } from "./v1-ai-voice-generator-create-body-style";
|
|
91
|
+
export { V1AiVoiceGeneratorCreateBodyStyleLanguageEnum } from "./v1-ai-voice-generator-create-body-style-language-enum";
|
|
89
92
|
export { V1AiVoiceGeneratorCreateBodyStyleVoiceNameEnum } from "./v1-ai-voice-generator-create-body-style-voice-name-enum";
|
|
90
93
|
export { V1AiVoiceGeneratorCreateResponse } from "./v1-ai-voice-generator-create-response";
|
|
91
94
|
export { V1AnimationCreateBody } from "./v1-animation-create-body";
|
|
@@ -128,6 +131,7 @@ export { V1FaceDetectionCreateBody } from "./v1-face-detection-create-body";
|
|
|
128
131
|
export { V1FaceDetectionCreateBodyAssets } from "./v1-face-detection-create-body-assets";
|
|
129
132
|
export { V1FaceDetectionCreateResponse } from "./v1-face-detection-create-response";
|
|
130
133
|
export { V1FaceDetectionGetResponse } from "./v1-face-detection-get-response";
|
|
134
|
+
export { V1FaceDetectionGetResponseError } from "./v1-face-detection-get-response-error";
|
|
131
135
|
export { V1FaceDetectionGetResponseFacesItem } from "./v1-face-detection-get-response-faces-item";
|
|
132
136
|
export { V1FaceDetectionGetResponseStatusEnum } from "./v1-face-detection-get-response-status-enum";
|
|
133
137
|
export { V1FaceSwapCreateBody } from "./v1-face-swap-create-body";
|
|
@@ -204,3 +208,5 @@ export { V1VideoToVideoCreateBodyStyleModelEnum } from "./v1-video-to-video-crea
|
|
|
204
208
|
export { V1VideoToVideoCreateBodyStylePromptTypeEnum } from "./v1-video-to-video-create-body-style-prompt-type-enum";
|
|
205
209
|
export { V1VideoToVideoCreateBodyStyleVersionEnum } from "./v1-video-to-video-create-body-style-version-enum";
|
|
206
210
|
export { V1VideoToVideoCreateResponse } from "./v1-video-to-video-create-response";
|
|
211
|
+
export { V1VoicesListResponse } from "./v1-voices-list-response";
|
|
212
|
+
export { V1VoicesListResponseVoicesItem } from "./v1-voices-list-response-voices-item";
|
|
@@ -51,6 +51,10 @@
|
|
|
51
51
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
52
52
|
* - Available for tiers: creator, pro, business
|
|
53
53
|
* - Image count allowed: 1, 2, 3, 4
|
|
54
|
+
* - `seedream-v4.5` - from 50 credits/image
|
|
55
|
+
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
56
|
+
* - Available for tiers: creator, pro, business
|
|
57
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
54
58
|
* - `seedream-v5-pro` - from 75 credits/image
|
|
55
59
|
* - Supported resolutions: 640px, 1k, 2k
|
|
56
60
|
* - Available for tiers: creator, pro, business
|
|
@@ -64,4 +68,4 @@
|
|
|
64
68
|
* - `seedream` - Use `seedream-v4` instead.
|
|
65
69
|
*
|
|
66
70
|
*/
|
|
67
|
-
export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-2.1" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo";
|
|
71
|
+
export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-2.1" | "nano-banana-pro" | "qwen-image-2.1" | "seedream" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro" | "z-image-turbo";
|