magic-hour 0.78.0 → 0.80.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-video-editor/request-types.d.ts +5 -5
- package/dist/resources/v1/ai-video-editor/request-types.js +6 -2
- package/dist/resources/v1/ai-video-translator/index.d.ts +2 -0
- package/dist/resources/v1/ai-video-translator/index.js +5 -0
- package/dist/resources/v1/ai-video-translator/request-types.d.ts +48 -0
- package/dist/resources/v1/ai-video-translator/request-types.js +196 -0
- package/dist/resources/v1/ai-video-translator/resource-client.d.ts +43 -0
- package/dist/resources/v1/ai-video-translator/resource-client.js +84 -0
- package/dist/resources/v1/image-to-video/request-types.d.ts +10 -18
- 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 +6 -0
- package/dist/resources/v1/text-to-video/request-types.d.ts +12 -19
- package/dist/resources/v1/text-to-video/request-types.js +9 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/v1-ai-video-editor-create-body-model-enum.d.ts +2 -2
- package/dist/types/v1-ai-video-editor-create-body-resolution-enum.d.ts +1 -1
- package/dist/types/v1-ai-video-editor-create-body.d.ts +5 -5
- package/dist/types/v1-ai-video-editor-create-body.js +6 -2
- package/dist/types/v1-ai-video-translator-create-body-assets.d.ts +27 -0
- package/dist/types/v1-ai-video-translator-create-body-assets.js +67 -0
- package/dist/types/v1-ai-video-translator-create-body-resolution-enum.d.ts +4 -0
- package/dist/types/v1-ai-video-translator-create-body-resolution-enum.js +2 -0
- package/dist/types/v1-ai-video-translator-create-body-target-language-enum.d.ts +4 -0
- package/dist/types/v1-ai-video-translator-create-body-target-language-enum.js +2 -0
- package/dist/types/v1-ai-video-translator-create-body.d.ts +48 -0
- package/dist/types/v1-ai-video-translator-create-body.js +196 -0
- package/dist/types/v1-ai-video-translator-create-response.d.ts +36 -0
- package/dist/types/v1-ai-video-translator-create-response.js +75 -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 +3 -3
- package/dist/types/v1-ai-voice-generator-create-body-style.js +0 -2
- package/dist/types/v1-face-swap-create-body-assets-face-swap-mode-enum.d.ts +2 -2
- package/dist/types/v1-face-swap-create-body-assets.d.ts +2 -2
- package/dist/types/v1-face-swap-photo-create-body-assets-face-swap-mode-enum.d.ts +2 -2
- package/dist/types/v1-face-swap-photo-create-body-assets.d.ts +2 -2
- package/dist/types/v1-image-to-video-create-body-assets.d.ts +2 -4
- package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +0 -2
- package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +1 -3
- package/dist/types/v1-image-to-video-create-body.d.ts +10 -18
- package/dist/types/v1-lip-sync-create-body-style-generation-mode-enum.d.ts +1 -1
- package/dist/types/v1-lip-sync-create-body-style.d.ts +1 -1
- package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +0 -2
- package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +0 -2
- package/dist/types/v1-text-to-video-create-body-references-item.d.ts +21 -0
- package/dist/types/v1-text-to-video-create-body-references-item.js +71 -0
- package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +1 -3
- package/dist/types/v1-text-to-video-create-body.d.ts +12 -19
- package/dist/types/v1-text-to-video-create-body.js +9 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { External$V1ImageToVideoCreateBodyStyle, V1ImageToVideoCreateBodyStyle }
|
|
|
6
6
|
*/
|
|
7
7
|
export type V1ImageToVideoCreateBody = {
|
|
8
8
|
/**
|
|
9
|
-
* Provide the assets for image-to-video.
|
|
9
|
+
* Provide the assets for image-to-video.
|
|
10
10
|
*/
|
|
11
11
|
assets: V1ImageToVideoCreateBodyAssets;
|
|
12
12
|
/**
|
|
@@ -16,14 +16,12 @@ export type V1ImageToVideoCreateBody = {
|
|
|
16
16
|
* * **`gemini-omni-1.1`**: Not supported
|
|
17
17
|
* * **`kling-2.6`**: Not supported
|
|
18
18
|
* * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
|
|
19
|
-
* * **`ltx-2.3`**: Toggle-able: no additional credits for audio
|
|
20
19
|
* * **`ltx-2.5`**: Toggle-able: no additional credits for audio
|
|
21
20
|
* * **`minimax-h3`**: Toggle-able: no additional credits for audio
|
|
22
21
|
* * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled
|
|
23
22
|
* * **`seedance-2.0`**: Toggle-able: no additional credits for audio
|
|
24
23
|
* * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
|
|
25
24
|
* * **`seedance-2.5`**: Toggle-able: no additional credits for audio
|
|
26
|
-
* * **`sora-2`**: Toggle-able: no additional credits for audio
|
|
27
25
|
* * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
|
|
28
26
|
* * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
|
|
29
27
|
* * **`wan-2.2`**: Not supported
|
|
@@ -34,17 +32,15 @@ export type V1ImageToVideoCreateBody = {
|
|
|
34
32
|
/**
|
|
35
33
|
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
36
34
|
*
|
|
37
|
-
* * **`gemini-omni-1.1`**:
|
|
35
|
+
* * **`gemini-omni-1.1`**: any integer from 3 to 10
|
|
38
36
|
* * **`kling-2.6`**: 5, 10
|
|
39
|
-
* * **`kling-3.0`**:
|
|
40
|
-
* * **`ltx-2.
|
|
41
|
-
* * **`
|
|
42
|
-
* * **`
|
|
43
|
-
* * **`seedance-
|
|
44
|
-
* * **`seedance-2.0`**:
|
|
45
|
-
* * **`seedance-2.
|
|
46
|
-
* * **`seedance-2.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
|
|
47
|
-
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
37
|
+
* * **`kling-3.0`**: any integer from 3 to 15
|
|
38
|
+
* * **`ltx-2.5`**: any integer from 1 to 60
|
|
39
|
+
* * **`minimax-h3`**: any integer from 1 to 30
|
|
40
|
+
* * **`seedance-1.5`**: any integer from 4 to 12
|
|
41
|
+
* * **`seedance-2.0`**: any integer from 4 to 15
|
|
42
|
+
* * **`seedance-2.0-mini`**: any integer from 4 to 15
|
|
43
|
+
* * **`seedance-2.5`**: any integer from 4 to 30
|
|
48
44
|
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
49
45
|
* * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
50
46
|
* * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
|
|
@@ -65,14 +61,12 @@ export type V1ImageToVideoCreateBody = {
|
|
|
65
61
|
* * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.
|
|
66
62
|
* * `kling-2.6`: Best for action, motion blur, and controlled camera moves.
|
|
67
63
|
* * `kling-3.0`: Best for cinematic stories, references, and optional audio.
|
|
68
|
-
* * `ltx-2.3`: Fastest for general scenes, long clips, audio, and rapid iteration.
|
|
69
64
|
* * `ltx-2.5`: Fastest for general scenes, long clips, audio, and rapid iteration.
|
|
70
65
|
* * `minimax-h3`: Great for reference-driven clips with native audio and longer durations.
|
|
71
66
|
* * `seedance-1.5`: Best for smooth, consistent motion with an end frame.
|
|
72
67
|
* * `seedance-2.0`: Best for reference-led clips with precise subject control.
|
|
73
68
|
* * `seedance-2.0-mini`: Faster reference-led clips with consistent motion and audio.
|
|
74
69
|
* * `seedance-2.5`: Best for premium realism, detail, and natural motion.
|
|
75
|
-
* * `sora-2`: Best for creative concepts and longer clips with audio.
|
|
76
70
|
* * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
|
|
77
71
|
* * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
|
|
78
72
|
* * `wan-2.2`: Best for physical motion, action, and camera movement.
|
|
@@ -91,14 +85,12 @@ export type V1ImageToVideoCreateBody = {
|
|
|
91
85
|
* * **`gemini-omni-1.1`**: Supports 360p, 720p, 1080p, 4k.
|
|
92
86
|
* * **`kling-2.6`**: Supports 720p, 1080p.
|
|
93
87
|
* * **`kling-3.0`**: Supports 720p, 1080p, 4k.
|
|
94
|
-
* * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
|
|
95
88
|
* * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
|
|
96
89
|
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
97
90
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
98
91
|
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
99
92
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
100
|
-
* * **`seedance-2.5`**: Supports 480p, 720p.
|
|
101
|
-
* * **`sora-2`**: Supports 720p.
|
|
93
|
+
* * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
|
|
102
94
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
103
95
|
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
104
96
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A specific version of our lip sync system, optimized for different needs.
|
|
3
|
-
* * `lite` - Fast
|
|
3
|
+
* * `lite` - Fast lip sync - best for simple videos. Costs 1 credit per frame of video.
|
|
4
4
|
* * `standard` - Natural, accurate lip sync - best for most creators. Costs 1 credit per frame of video.
|
|
5
5
|
* * `pro` - Premium fidelity with enhanced detail - best for professionals. Costs 2 credits per frame of video.
|
|
6
6
|
*
|
|
@@ -5,7 +5,7 @@ import * as z from "zod";
|
|
|
5
5
|
export type V1LipSyncCreateBodyStyle = {
|
|
6
6
|
/**
|
|
7
7
|
* A specific version of our lip sync system, optimized for different needs.
|
|
8
|
-
* * `lite` - Fast
|
|
8
|
+
* * `lite` - Fast lip sync - best for simple videos. Costs 1 credit per frame of video.
|
|
9
9
|
* * `standard` - Natural, accurate lip sync - best for most creators. Costs 1 credit per frame of video.
|
|
10
10
|
* * `pro` - Premium fidelity with enhanced detail - best for professionals. Costs 2 credits per frame of video.
|
|
11
11
|
*
|
|
@@ -4,14 +4,12 @@
|
|
|
4
4
|
* * **`gemini-omni-1.1`**: Supports 16:9, 9:16.
|
|
5
5
|
* * **`kling-2.6`**: Supports 9:16, 16:9, 1:1.
|
|
6
6
|
* * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
|
|
7
|
-
* * **`ltx-2.3`**: Supports 9:16, 16:9, 1:1.
|
|
8
7
|
* * **`ltx-2.5`**: Supports 9:16, 16:9, 1:1.
|
|
9
8
|
* * **`minimax-h3`**: Supports 16:9, 9:16, 1:1.
|
|
10
9
|
* * **`seedance-1.5`**: Supports 9:16, 16:9, 1:1.
|
|
11
10
|
* * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
|
|
12
11
|
* * **`seedance-2.0-mini`**: Supports 9:16, 16:9, 1:1.
|
|
13
12
|
* * **`seedance-2.5`**: Supports 9:16, 16:9, 1:1.
|
|
14
|
-
* * **`sora-2`**: Supports 9:16, 16:9.
|
|
15
13
|
* * **`veo3.1`**: Supports 9:16, 16:9.
|
|
16
14
|
* * **`veo3.1-lite`**: Supports 9:16, 16:9.
|
|
17
15
|
* * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
|
|
@@ -5,14 +5,12 @@
|
|
|
5
5
|
* * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.
|
|
6
6
|
* * `kling-2.6`: Best for action, motion blur, and controlled camera moves.
|
|
7
7
|
* * `kling-3.0`: Best for cinematic stories, references, and optional audio.
|
|
8
|
-
* * `ltx-2.3`: Fastest for general scenes, long clips, audio, and rapid iteration.
|
|
9
8
|
* * `ltx-2.5`: Fastest for general scenes, long clips, audio, and rapid iteration.
|
|
10
9
|
* * `minimax-h3`: Great for reference-driven clips with native audio and longer durations.
|
|
11
10
|
* * `seedance-1.5`: Best for smooth, consistent motion with an end frame.
|
|
12
11
|
* * `seedance-2.0`: Best for reference-led clips with precise subject control.
|
|
13
12
|
* * `seedance-2.0-mini`: Faster reference-led clips with consistent motion and audio.
|
|
14
13
|
* * `seedance-2.5`: Best for premium realism, detail, and natural motion.
|
|
15
|
-
* * `sora-2`: Best for creative concepts and longer clips with audio.
|
|
16
14
|
* * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
|
|
17
15
|
* * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
|
|
18
16
|
* * `wan-2.2`: Best for physical motion, action, and camera movement.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* V1TextToVideoCreateBodyReferencesItem
|
|
4
|
+
*/
|
|
5
|
+
export type V1TextToVideoCreateBodyReferencesItem = {
|
|
6
|
+
filePath: string;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
* V1TextToVideoCreateBodyReferencesItem without any key transformation, this is what
|
|
12
|
+
* we expect to come in as network data
|
|
13
|
+
*/
|
|
14
|
+
export type External$V1TextToVideoCreateBodyReferencesItem = {
|
|
15
|
+
file_path: string;
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const Schemas$V1TextToVideoCreateBodyReferencesItem: {
|
|
19
|
+
in: z.ZodType<V1TextToVideoCreateBodyReferencesItem, z.ZodTypeDef, unknown>;
|
|
20
|
+
out: z.ZodType<External$V1TextToVideoCreateBodyReferencesItem, z.ZodTypeDef, V1TextToVideoCreateBodyReferencesItem>;
|
|
21
|
+
};
|
|
@@ -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$V1TextToVideoCreateBodyReferencesItem = 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 V1TextToVideoCreateBodyReferencesItem
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1TextToVideoCreateBodyReferencesItem = z
|
|
43
|
+
.object({
|
|
44
|
+
file_path: z.string(),
|
|
45
|
+
name: z.string(),
|
|
46
|
+
})
|
|
47
|
+
.transform((obj) => {
|
|
48
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
49
|
+
file_path: "filePath",
|
|
50
|
+
name: "name",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1TextToVideoCreateBodyReferencesItem
|
|
56
|
+
*/
|
|
57
|
+
const SchemaOut$V1TextToVideoCreateBodyReferencesItem = z
|
|
58
|
+
.object({
|
|
59
|
+
filePath: z.string(),
|
|
60
|
+
name: z.string(),
|
|
61
|
+
})
|
|
62
|
+
.transform((obj) => {
|
|
63
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
64
|
+
filePath: "file_path",
|
|
65
|
+
name: "name",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
exports.Schemas$V1TextToVideoCreateBodyReferencesItem = {
|
|
69
|
+
in: SchemaIn$V1TextToVideoCreateBodyReferencesItem,
|
|
70
|
+
out: SchemaOut$V1TextToVideoCreateBodyReferencesItem,
|
|
71
|
+
};
|
|
@@ -4,14 +4,12 @@
|
|
|
4
4
|
* * **`gemini-omni-1.1`**: Supports 360p, 720p, 1080p, 4k.
|
|
5
5
|
* * **`kling-2.6`**: Supports 720p, 1080p.
|
|
6
6
|
* * **`kling-3.0`**: Supports 720p, 1080p, 4k.
|
|
7
|
-
* * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
|
|
8
7
|
* * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
|
|
9
8
|
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
10
9
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
11
10
|
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
12
11
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
13
|
-
* * **`seedance-2.5`**: Supports 480p, 720p.
|
|
14
|
-
* * **`sora-2`**: Supports 720p.
|
|
12
|
+
* * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
|
|
15
13
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
16
14
|
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
17
15
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { External$V1TextToVideoCreateBodyReferencesItem, V1TextToVideoCreateBodyReferencesItem } from "./v1-text-to-video-create-body-references-item";
|
|
2
3
|
import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } from "./v1-text-to-video-create-body-style";
|
|
3
4
|
/**
|
|
4
5
|
* V1TextToVideoCreateBody
|
|
@@ -10,14 +11,12 @@ export type V1TextToVideoCreateBody = {
|
|
|
10
11
|
* * **`gemini-omni-1.1`**: Supports 16:9, 9:16.
|
|
11
12
|
* * **`kling-2.6`**: Supports 9:16, 16:9, 1:1.
|
|
12
13
|
* * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
|
|
13
|
-
* * **`ltx-2.3`**: Supports 9:16, 16:9, 1:1.
|
|
14
14
|
* * **`ltx-2.5`**: Supports 9:16, 16:9, 1:1.
|
|
15
15
|
* * **`minimax-h3`**: Supports 16:9, 9:16, 1:1.
|
|
16
16
|
* * **`seedance-1.5`**: Supports 9:16, 16:9, 1:1.
|
|
17
17
|
* * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
|
|
18
18
|
* * **`seedance-2.0-mini`**: Supports 9:16, 16:9, 1:1.
|
|
19
19
|
* * **`seedance-2.5`**: Supports 9:16, 16:9, 1:1.
|
|
20
|
-
* * **`sora-2`**: Supports 9:16, 16:9.
|
|
21
20
|
* * **`veo3.1`**: Supports 9:16, 16:9.
|
|
22
21
|
* * **`veo3.1-lite`**: Supports 9:16, 16:9.
|
|
23
22
|
* * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
|
|
@@ -32,14 +31,12 @@ export type V1TextToVideoCreateBody = {
|
|
|
32
31
|
* * **`gemini-omni-1.1`**: Not supported
|
|
33
32
|
* * **`kling-2.6`**: Not supported
|
|
34
33
|
* * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
|
|
35
|
-
* * **`ltx-2.3`**: Toggle-able: no additional credits for audio
|
|
36
34
|
* * **`ltx-2.5`**: Toggle-able: no additional credits for audio
|
|
37
35
|
* * **`minimax-h3`**: Toggle-able: no additional credits for audio
|
|
38
36
|
* * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled
|
|
39
37
|
* * **`seedance-2.0`**: Toggle-able: no additional credits for audio
|
|
40
38
|
* * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
|
|
41
39
|
* * **`seedance-2.5`**: Toggle-able: no additional credits for audio
|
|
42
|
-
* * **`sora-2`**: Toggle-able: no additional credits for audio
|
|
43
40
|
* * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
|
|
44
41
|
* * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
|
|
45
42
|
* * **`wan-2.2`**: Not supported
|
|
@@ -50,17 +47,15 @@ export type V1TextToVideoCreateBody = {
|
|
|
50
47
|
/**
|
|
51
48
|
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
52
49
|
*
|
|
53
|
-
* * **`gemini-omni-1.1`**:
|
|
50
|
+
* * **`gemini-omni-1.1`**: any integer from 3 to 10
|
|
54
51
|
* * **`kling-2.6`**: 5, 10
|
|
55
|
-
* * **`kling-3.0`**:
|
|
56
|
-
* * **`ltx-2.
|
|
57
|
-
* * **`
|
|
58
|
-
* * **`
|
|
59
|
-
* * **`seedance-
|
|
60
|
-
* * **`seedance-2.0`**:
|
|
61
|
-
* * **`seedance-2.
|
|
62
|
-
* * **`seedance-2.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
|
|
63
|
-
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
52
|
+
* * **`kling-3.0`**: any integer from 3 to 15
|
|
53
|
+
* * **`ltx-2.5`**: any integer from 1 to 60
|
|
54
|
+
* * **`minimax-h3`**: any integer from 1 to 30
|
|
55
|
+
* * **`seedance-1.5`**: any integer from 4 to 12
|
|
56
|
+
* * **`seedance-2.0`**: any integer from 4 to 15
|
|
57
|
+
* * **`seedance-2.0-mini`**: any integer from 4 to 15
|
|
58
|
+
* * **`seedance-2.5`**: any integer from 4 to 30
|
|
64
59
|
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
65
60
|
* * **`veo3.1-lite`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
66
61
|
* * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
|
|
@@ -75,14 +70,12 @@ export type V1TextToVideoCreateBody = {
|
|
|
75
70
|
* * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.
|
|
76
71
|
* * `kling-2.6`: Best for action, motion blur, and controlled camera moves.
|
|
77
72
|
* * `kling-3.0`: Best for cinematic stories, references, and optional audio.
|
|
78
|
-
* * `ltx-2.3`: Fastest for general scenes, long clips, audio, and rapid iteration.
|
|
79
73
|
* * `ltx-2.5`: Fastest for general scenes, long clips, audio, and rapid iteration.
|
|
80
74
|
* * `minimax-h3`: Great for reference-driven clips with native audio and longer durations.
|
|
81
75
|
* * `seedance-1.5`: Best for smooth, consistent motion with an end frame.
|
|
82
76
|
* * `seedance-2.0`: Best for reference-led clips with precise subject control.
|
|
83
77
|
* * `seedance-2.0-mini`: Faster reference-led clips with consistent motion and audio.
|
|
84
78
|
* * `seedance-2.5`: Best for premium realism, detail, and natural motion.
|
|
85
|
-
* * `sora-2`: Best for creative concepts and longer clips with audio.
|
|
86
79
|
* * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
|
|
87
80
|
* * `veo3.1-lite`: Balanced realism and audio at a lower cost than Veo 3.1.
|
|
88
81
|
* * `wan-2.2`: Best for physical motion, action, and camera movement.
|
|
@@ -99,20 +92,19 @@ export type V1TextToVideoCreateBody = {
|
|
|
99
92
|
* Deprecated. Use `aspect_ratio` instead.
|
|
100
93
|
*/
|
|
101
94
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
95
|
+
references?: V1TextToVideoCreateBodyReferencesItem[] | undefined;
|
|
102
96
|
/**
|
|
103
97
|
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
104
98
|
*
|
|
105
99
|
* * **`gemini-omni-1.1`**: Supports 360p, 720p, 1080p, 4k.
|
|
106
100
|
* * **`kling-2.6`**: Supports 720p, 1080p.
|
|
107
101
|
* * **`kling-3.0`**: Supports 720p, 1080p, 4k.
|
|
108
|
-
* * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
|
|
109
102
|
* * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
|
|
110
103
|
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
111
104
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
112
105
|
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
113
106
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
114
|
-
* * **`seedance-2.5`**: Supports 480p, 720p.
|
|
115
|
-
* * **`sora-2`**: Supports 720p.
|
|
107
|
+
* * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
|
|
116
108
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
117
109
|
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
118
110
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
@@ -134,6 +126,7 @@ export type External$V1TextToVideoCreateBody = {
|
|
|
134
126
|
model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
|
|
135
127
|
name?: string | undefined;
|
|
136
128
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
129
|
+
references?: External$V1TextToVideoCreateBodyReferencesItem[] | undefined;
|
|
137
130
|
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
138
131
|
style: External$V1TextToVideoCreateBodyStyle;
|
|
139
132
|
};
|
|
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.Schemas$V1TextToVideoCreateBody = void 0;
|
|
37
37
|
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
38
|
const z = __importStar(require("zod"));
|
|
39
|
+
const v1_text_to_video_create_body_references_item_1 = require("./v1-text-to-video-create-body-references-item");
|
|
39
40
|
const v1_text_to_video_create_body_style_1 = require("./v1-text-to-video-create-body-style");
|
|
40
41
|
/**
|
|
41
42
|
* Takes network data, validates it, and transforms keys to match typescript object V1TextToVideoCreateBody
|
|
@@ -73,6 +74,9 @@ const SchemaIn$V1TextToVideoCreateBody = z
|
|
|
73
74
|
.optional(),
|
|
74
75
|
name: z.string().optional(),
|
|
75
76
|
orientation: z.enum(["landscape", "portrait", "square"]).optional(),
|
|
77
|
+
references: z
|
|
78
|
+
.array(v1_text_to_video_create_body_references_item_1.Schemas$V1TextToVideoCreateBodyReferencesItem.in)
|
|
79
|
+
.optional(),
|
|
76
80
|
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
77
81
|
style: v1_text_to_video_create_body_style_1.Schemas$V1TextToVideoCreateBodyStyle.in,
|
|
78
82
|
})
|
|
@@ -84,6 +88,7 @@ const SchemaIn$V1TextToVideoCreateBody = z
|
|
|
84
88
|
model: "model",
|
|
85
89
|
name: "name",
|
|
86
90
|
orientation: "orientation",
|
|
91
|
+
references: "references",
|
|
87
92
|
resolution: "resolution",
|
|
88
93
|
style: "style",
|
|
89
94
|
});
|
|
@@ -125,6 +130,9 @@ const SchemaOut$V1TextToVideoCreateBody = z
|
|
|
125
130
|
.optional(),
|
|
126
131
|
name: z.string().optional(),
|
|
127
132
|
orientation: z.enum(["landscape", "portrait", "square"]).optional(),
|
|
133
|
+
references: z
|
|
134
|
+
.array(v1_text_to_video_create_body_references_item_1.Schemas$V1TextToVideoCreateBodyReferencesItem.out)
|
|
135
|
+
.optional(),
|
|
128
136
|
resolution: z.enum(["1080p", "360p", "480p", "4k", "720p"]).optional(),
|
|
129
137
|
style: v1_text_to_video_create_body_style_1.Schemas$V1TextToVideoCreateBodyStyle.out,
|
|
130
138
|
})
|
|
@@ -136,6 +144,7 @@ const SchemaOut$V1TextToVideoCreateBody = z
|
|
|
136
144
|
model: "model",
|
|
137
145
|
name: "name",
|
|
138
146
|
orientation: "orientation",
|
|
147
|
+
references: "references",
|
|
139
148
|
resolution: "resolution",
|
|
140
149
|
style: "style",
|
|
141
150
|
});
|