magic-hour 0.83.1 → 0.85.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 +37 -0
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/helpers/download-error.d.ts +16 -0
- package/dist/helpers/download-error.js +15 -0
- package/dist/helpers/download.js +22 -2
- package/dist/resources/v1/ai-music-generator/index.d.ts +2 -0
- package/dist/resources/v1/ai-music-generator/index.js +5 -0
- package/dist/resources/v1/ai-music-generator/request-types.d.ts +32 -0
- package/dist/resources/v1/ai-music-generator/request-types.js +78 -0
- package/dist/resources/v1/ai-music-generator/resource-client.d.ts +31 -0
- package/dist/resources/v1/ai-music-generator/resource-client.js +78 -0
- package/dist/resources/v1/ai-talking-photo/request-types.d.ts +10 -1
- package/dist/resources/v1/ai-talking-photo/request-types.js +4 -0
- package/dist/resources/v1/ai-ugc-ad/index.d.ts +2 -0
- package/dist/resources/v1/ai-ugc-ad/index.js +5 -0
- package/dist/resources/v1/ai-ugc-ad/request-types.d.ts +50 -0
- package/dist/resources/v1/ai-ugc-ad/request-types.js +86 -0
- package/dist/resources/v1/ai-ugc-ad/resource-client.d.ts +41 -0
- package/dist/resources/v1/ai-ugc-ad/resource-client.js +81 -0
- package/dist/resources/v1/ai-video-editor/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-video-editor/resource-client.js +2 -2
- package/dist/resources/v1/ai-video-translator/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-video-translator/resource-client.js +2 -2
- package/dist/resources/v1/ai-video-upscaler/index.d.ts +2 -0
- package/dist/resources/v1/ai-video-upscaler/index.js +5 -0
- package/dist/resources/v1/ai-video-upscaler/request-types.d.ts +43 -0
- package/dist/resources/v1/ai-video-upscaler/request-types.js +84 -0
- package/dist/resources/v1/ai-video-upscaler/resource-client.d.ts +60 -0
- package/dist/resources/v1/ai-video-upscaler/resource-client.js +103 -0
- package/dist/resources/v1/audio-projects/resource-client.d.ts +5 -0
- package/dist/resources/v1/audio-projects/resource-client.js +14 -2
- package/dist/resources/v1/audio-to-video/resource-client.d.ts +2 -2
- package/dist/resources/v1/audio-to-video/resource-client.js +2 -2
- package/dist/resources/v1/character-replace/resource-client.d.ts +2 -2
- package/dist/resources/v1/character-replace/resource-client.js +2 -2
- package/dist/resources/v1/face-detection/resource-client.d.ts +5 -0
- package/dist/resources/v1/face-detection/resource-client.js +17 -5
- package/dist/resources/v1/face-swap/resource-client.d.ts +2 -2
- package/dist/resources/v1/face-swap/resource-client.js +2 -2
- package/dist/resources/v1/image-projects/resource-client.d.ts +5 -0
- package/dist/resources/v1/image-projects/resource-client.js +14 -2
- package/dist/resources/v1/image-to-video/request-types.d.ts +6 -2
- package/dist/resources/v1/image-to-video/request-types.js +2 -0
- package/dist/resources/v1/image-to-video/resource-client.d.ts +2 -2
- package/dist/resources/v1/image-to-video/resource-client.js +2 -2
- package/dist/resources/v1/index.d.ts +3 -0
- package/dist/resources/v1/index.js +4 -1
- package/dist/resources/v1/lip-sync/resource-client.d.ts +2 -2
- package/dist/resources/v1/lip-sync/resource-client.js +2 -2
- package/dist/resources/v1/resource-client.d.ts +9 -0
- package/dist/resources/v1/resource-client.js +17 -0
- package/dist/resources/v1/text-to-video/request-types.d.ts +11 -3
- package/dist/resources/v1/text-to-video/request-types.js +2 -0
- package/dist/resources/v1/text-to-video/resource-client.d.ts +2 -2
- package/dist/resources/v1/text-to-video/resource-client.js +2 -2
- package/dist/resources/v1/video-projects/resource-client.d.ts +5 -0
- package/dist/resources/v1/video-projects/resource-client.js +14 -2
- package/dist/resources/v1/video-to-video/resource-client.d.ts +2 -2
- package/dist/resources/v1/video-to-video/resource-client.js +2 -2
- package/dist/types/index.d.ts +13 -0
- package/dist/types/v1-ai-music-generator-create-body-style.d.ts +34 -0
- package/dist/types/v1-ai-music-generator-create-body-style.js +77 -0
- package/dist/types/v1-ai-music-generator-create-body.d.ts +32 -0
- package/dist/types/v1-ai-music-generator-create-body.js +78 -0
- package/dist/types/v1-ai-music-generator-create-response.d.ts +29 -0
- package/dist/types/v1-ai-music-generator-create-response.js +71 -0
- package/dist/types/v1-ai-talking-photo-create-body-resolution-enum.d.ts +4 -0
- package/dist/types/v1-ai-talking-photo-create-body-resolution-enum.js +2 -0
- package/dist/types/v1-ai-talking-photo-create-body.d.ts +10 -1
- package/dist/types/v1-ai-talking-photo-create-body.js +4 -0
- package/dist/types/v1-ai-ugc-ad-create-body-assets.d.ts +29 -0
- package/dist/types/v1-ai-ugc-ad-create-body-assets.js +69 -0
- package/dist/types/v1-ai-ugc-ad-create-body-model-enum.d.ts +4 -0
- package/dist/types/v1-ai-ugc-ad-create-body-model-enum.js +2 -0
- package/dist/types/v1-ai-ugc-ad-create-body-resolution-enum.d.ts +4 -0
- package/dist/types/v1-ai-ugc-ad-create-body-resolution-enum.js +2 -0
- package/dist/types/v1-ai-ugc-ad-create-body.d.ts +50 -0
- package/dist/types/v1-ai-ugc-ad-create-body.js +86 -0
- package/dist/types/v1-ai-ugc-ad-create-response.d.ts +36 -0
- package/dist/types/v1-ai-ugc-ad-create-response.js +75 -0
- package/dist/types/v1-ai-video-upscaler-create-body-assets.d.ts +27 -0
- package/dist/types/v1-ai-video-upscaler-create-body-assets.js +67 -0
- package/dist/types/v1-ai-video-upscaler-create-body-resolution-enum.d.ts +4 -0
- package/dist/types/v1-ai-video-upscaler-create-body-resolution-enum.js +2 -0
- package/dist/types/v1-ai-video-upscaler-create-body.d.ts +43 -0
- package/dist/types/v1-ai-video-upscaler-create-body.js +84 -0
- package/dist/types/v1-ai-video-upscaler-create-response.d.ts +36 -0
- package/dist/types/v1-ai-video-upscaler-create-response.js +75 -0
- package/dist/types/v1-image-to-video-create-body-assets.d.ts +2 -1
- package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +2 -1
- package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +1 -0
- package/dist/types/v1-image-to-video-create-body.d.ts +6 -2
- package/dist/types/v1-image-to-video-create-body.js +2 -0
- package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +2 -1
- package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +2 -1
- package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +1 -0
- package/dist/types/v1-text-to-video-create-body.d.ts +11 -3
- package/dist/types/v1-text-to-video-create-body.js +2 -0
- package/package.json +4 -3
|
@@ -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.Schemas$V1AiUgcAdCreateResponse = 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 V1AiUgcAdCreateResponse
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1AiUgcAdCreateResponse = z
|
|
43
|
+
.object({
|
|
44
|
+
credits_charged: z.number().int(),
|
|
45
|
+
estimated_frame_cost: z.number().int(),
|
|
46
|
+
id: z.string(),
|
|
47
|
+
})
|
|
48
|
+
.transform((obj) => {
|
|
49
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
50
|
+
credits_charged: "creditsCharged",
|
|
51
|
+
estimated_frame_cost: "estimatedFrameCost",
|
|
52
|
+
id: "id",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiUgcAdCreateResponse
|
|
58
|
+
*/
|
|
59
|
+
const SchemaOut$V1AiUgcAdCreateResponse = z
|
|
60
|
+
.object({
|
|
61
|
+
creditsCharged: z.number().int(),
|
|
62
|
+
estimatedFrameCost: z.number().int(),
|
|
63
|
+
id: z.string(),
|
|
64
|
+
})
|
|
65
|
+
.transform((obj) => {
|
|
66
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
67
|
+
creditsCharged: "credits_charged",
|
|
68
|
+
estimatedFrameCost: "estimated_frame_cost",
|
|
69
|
+
id: "id",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
exports.Schemas$V1AiUgcAdCreateResponse = {
|
|
73
|
+
in: SchemaIn$V1AiUgcAdCreateResponse,
|
|
74
|
+
out: SchemaOut$V1AiUgcAdCreateResponse,
|
|
75
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Source video for the upscale job.
|
|
4
|
+
*/
|
|
5
|
+
export type V1AiVideoUpscalerCreateBodyAssets = {
|
|
6
|
+
/**
|
|
7
|
+
* Video to upscale. This value is either
|
|
8
|
+
* - a direct URL to the video file
|
|
9
|
+
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
10
|
+
*
|
|
11
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
videoFilePath: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
* V1AiVideoUpscalerCreateBodyAssets without any key transformation, this is what
|
|
19
|
+
* we expect to come in as network data
|
|
20
|
+
*/
|
|
21
|
+
export type External$V1AiVideoUpscalerCreateBodyAssets = {
|
|
22
|
+
video_file_path: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const Schemas$V1AiVideoUpscalerCreateBodyAssets: {
|
|
25
|
+
in: z.ZodType<V1AiVideoUpscalerCreateBodyAssets, z.ZodTypeDef, unknown>;
|
|
26
|
+
out: z.ZodType<External$V1AiVideoUpscalerCreateBodyAssets, z.ZodTypeDef, V1AiVideoUpscalerCreateBodyAssets>;
|
|
27
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
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$V1AiVideoUpscalerCreateBodyAssets = 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 V1AiVideoUpscalerCreateBodyAssets
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1AiVideoUpscalerCreateBodyAssets = z
|
|
43
|
+
.object({
|
|
44
|
+
video_file_path: z.string(),
|
|
45
|
+
})
|
|
46
|
+
.transform((obj) => {
|
|
47
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
48
|
+
video_file_path: "videoFilePath",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiVideoUpscalerCreateBodyAssets
|
|
54
|
+
*/
|
|
55
|
+
const SchemaOut$V1AiVideoUpscalerCreateBodyAssets = z
|
|
56
|
+
.object({
|
|
57
|
+
videoFilePath: z.string(),
|
|
58
|
+
})
|
|
59
|
+
.transform((obj) => {
|
|
60
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
61
|
+
videoFilePath: "video_file_path",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
exports.Schemas$V1AiVideoUpscalerCreateBodyAssets = {
|
|
65
|
+
in: SchemaIn$V1AiVideoUpscalerCreateBodyAssets,
|
|
66
|
+
out: SchemaOut$V1AiVideoUpscalerCreateBodyAssets,
|
|
67
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { External$V1AiVideoUpscalerCreateBodyAssets, V1AiVideoUpscalerCreateBodyAssets } from "./v1-ai-video-upscaler-create-body-assets";
|
|
3
|
+
/**
|
|
4
|
+
* V1AiVideoUpscalerCreateBody
|
|
5
|
+
*/
|
|
6
|
+
export type V1AiVideoUpscalerCreateBody = {
|
|
7
|
+
/**
|
|
8
|
+
* Source video for the upscale job.
|
|
9
|
+
*/
|
|
10
|
+
assets: V1AiVideoUpscalerCreateBodyAssets;
|
|
11
|
+
/**
|
|
12
|
+
* End time of your clip (seconds). Must be greater than start_seconds.
|
|
13
|
+
*/
|
|
14
|
+
endSeconds: number;
|
|
15
|
+
/**
|
|
16
|
+
* Give your video a custom name for easy identification.
|
|
17
|
+
*/
|
|
18
|
+
name?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Output resolution. `720p` and `1080p` set the output's short side, `2k` and `4k` its long side; the aspect ratio is kept. Requires a paid plan.
|
|
21
|
+
*/
|
|
22
|
+
resolution: "1080p" | "2k" | "4k" | "720p";
|
|
23
|
+
/**
|
|
24
|
+
* Start time of your clip (seconds). Must be ≥ 0.
|
|
25
|
+
*/
|
|
26
|
+
startSeconds?: number | undefined;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* V1AiVideoUpscalerCreateBody without any key transformation, this is what
|
|
31
|
+
* we expect to come in as network data
|
|
32
|
+
*/
|
|
33
|
+
export type External$V1AiVideoUpscalerCreateBody = {
|
|
34
|
+
assets: External$V1AiVideoUpscalerCreateBodyAssets;
|
|
35
|
+
end_seconds: number;
|
|
36
|
+
name?: string | undefined;
|
|
37
|
+
resolution: "1080p" | "2k" | "4k" | "720p";
|
|
38
|
+
start_seconds?: number | undefined;
|
|
39
|
+
};
|
|
40
|
+
export declare const Schemas$V1AiVideoUpscalerCreateBody: {
|
|
41
|
+
in: z.ZodType<V1AiVideoUpscalerCreateBody, z.ZodTypeDef, unknown>;
|
|
42
|
+
out: z.ZodType<External$V1AiVideoUpscalerCreateBody, z.ZodTypeDef, V1AiVideoUpscalerCreateBody>;
|
|
43
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
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$V1AiVideoUpscalerCreateBody = void 0;
|
|
37
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
const v1_ai_video_upscaler_create_body_assets_1 = require("./v1-ai-video-upscaler-create-body-assets");
|
|
40
|
+
/**
|
|
41
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1AiVideoUpscalerCreateBody
|
|
42
|
+
*/
|
|
43
|
+
const SchemaIn$V1AiVideoUpscalerCreateBody = z
|
|
44
|
+
.object({
|
|
45
|
+
assets: v1_ai_video_upscaler_create_body_assets_1.Schemas$V1AiVideoUpscalerCreateBodyAssets.in,
|
|
46
|
+
end_seconds: z.number(),
|
|
47
|
+
name: z.string().optional(),
|
|
48
|
+
resolution: z.enum(["1080p", "2k", "4k", "720p"]),
|
|
49
|
+
start_seconds: z.number().optional(),
|
|
50
|
+
})
|
|
51
|
+
.transform((obj) => {
|
|
52
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
53
|
+
assets: "assets",
|
|
54
|
+
end_seconds: "endSeconds",
|
|
55
|
+
name: "name",
|
|
56
|
+
resolution: "resolution",
|
|
57
|
+
start_seconds: "startSeconds",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiVideoUpscalerCreateBody
|
|
63
|
+
*/
|
|
64
|
+
const SchemaOut$V1AiVideoUpscalerCreateBody = z
|
|
65
|
+
.object({
|
|
66
|
+
assets: v1_ai_video_upscaler_create_body_assets_1.Schemas$V1AiVideoUpscalerCreateBodyAssets.out,
|
|
67
|
+
endSeconds: z.number(),
|
|
68
|
+
name: z.string().optional(),
|
|
69
|
+
resolution: z.enum(["1080p", "2k", "4k", "720p"]),
|
|
70
|
+
startSeconds: z.number().optional(),
|
|
71
|
+
})
|
|
72
|
+
.transform((obj) => {
|
|
73
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
74
|
+
assets: "assets",
|
|
75
|
+
endSeconds: "end_seconds",
|
|
76
|
+
name: "name",
|
|
77
|
+
resolution: "resolution",
|
|
78
|
+
startSeconds: "start_seconds",
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
exports.Schemas$V1AiVideoUpscalerCreateBody = {
|
|
82
|
+
in: SchemaIn$V1AiVideoUpscalerCreateBody,
|
|
83
|
+
out: SchemaOut$V1AiVideoUpscalerCreateBody,
|
|
84
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Success
|
|
4
|
+
*/
|
|
5
|
+
export type V1AiVideoUpscalerCreateResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* The amount of credits deducted from your account to generate the video. If the status is not 'complete', this value is an estimate and may be adjusted upon completion based on the actual FPS of the output video.
|
|
8
|
+
*
|
|
9
|
+
* If video generation fails, credits will be refunded, and this field will be updated to include the refund.
|
|
10
|
+
*/
|
|
11
|
+
creditsCharged: number;
|
|
12
|
+
/**
|
|
13
|
+
* Deprecated: Previously represented the number of frames (original name of our credit system) used for video generation. Use 'credits_charged' instead.
|
|
14
|
+
*
|
|
15
|
+
* The amount of frames used to generate the video. If the status is not 'complete', the cost is an estimate and will be adjusted when the video completes.
|
|
16
|
+
*/
|
|
17
|
+
estimatedFrameCost: number;
|
|
18
|
+
/**
|
|
19
|
+
* Unique ID of the video. Use it with the [Get video Project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch status and downloads.
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
* V1AiVideoUpscalerCreateResponse without any key transformation, this is what
|
|
26
|
+
* we expect to come in as network data
|
|
27
|
+
*/
|
|
28
|
+
export type External$V1AiVideoUpscalerCreateResponse = {
|
|
29
|
+
credits_charged: number;
|
|
30
|
+
estimated_frame_cost: number;
|
|
31
|
+
id: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const Schemas$V1AiVideoUpscalerCreateResponse: {
|
|
34
|
+
in: z.ZodType<V1AiVideoUpscalerCreateResponse, z.ZodTypeDef, unknown>;
|
|
35
|
+
out: z.ZodType<External$V1AiVideoUpscalerCreateResponse, z.ZodTypeDef, V1AiVideoUpscalerCreateResponse>;
|
|
36
|
+
};
|
|
@@ -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.Schemas$V1AiVideoUpscalerCreateResponse = 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 V1AiVideoUpscalerCreateResponse
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1AiVideoUpscalerCreateResponse = z
|
|
43
|
+
.object({
|
|
44
|
+
credits_charged: z.number().int(),
|
|
45
|
+
estimated_frame_cost: z.number().int(),
|
|
46
|
+
id: z.string(),
|
|
47
|
+
})
|
|
48
|
+
.transform((obj) => {
|
|
49
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
50
|
+
credits_charged: "creditsCharged",
|
|
51
|
+
estimated_frame_cost: "estimatedFrameCost",
|
|
52
|
+
id: "id",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1AiVideoUpscalerCreateResponse
|
|
58
|
+
*/
|
|
59
|
+
const SchemaOut$V1AiVideoUpscalerCreateResponse = z
|
|
60
|
+
.object({
|
|
61
|
+
creditsCharged: z.number().int(),
|
|
62
|
+
estimatedFrameCost: z.number().int(),
|
|
63
|
+
id: z.string(),
|
|
64
|
+
})
|
|
65
|
+
.transform((obj) => {
|
|
66
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
67
|
+
creditsCharged: "credits_charged",
|
|
68
|
+
estimatedFrameCost: "estimated_frame_cost",
|
|
69
|
+
id: "id",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
exports.Schemas$V1AiVideoUpscalerCreateResponse = {
|
|
73
|
+
in: SchemaIn$V1AiVideoUpscalerCreateResponse,
|
|
74
|
+
out: SchemaOut$V1AiVideoUpscalerCreateResponse,
|
|
75
|
+
};
|
|
@@ -10,9 +10,10 @@ export type V1ImageToVideoCreateBodyAssets = {
|
|
|
10
10
|
* * **`kling-2.6`**: Supports 1080p.
|
|
11
11
|
* * **`kling-3.0`**: Supports 720p, 1080p, 4k.
|
|
12
12
|
* * **`ltx-2.5`**: Supports 480p, 720p, 1080p.
|
|
13
|
-
* * **`minimax-h3`**:
|
|
13
|
+
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
14
14
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
15
15
|
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
16
|
+
* * **`seedance-2.0-fast`**: Supports 480p, 720p.
|
|
16
17
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
17
18
|
* * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
|
|
18
19
|
* * **`veo3.1`**: Supports 720p, 1080p. Requires a duration of 8 seconds or less.
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* * `minimax-h3`: Great for reference-driven clips with native audio and longer durations.
|
|
10
10
|
* * `seedance-1.5`: Best for smooth, consistent motion with an end frame.
|
|
11
11
|
* * `seedance-2.0`: Best for reference-led clips with precise subject control.
|
|
12
|
+
* * `seedance-2.0-fast`: Fast reference-led clips with consistent motion and audio.
|
|
12
13
|
* * `seedance-2.0-mini`: Faster reference-led clips with consistent motion and audio.
|
|
13
14
|
* * `seedance-2.5`: Best for premium realism, detail, and natural motion.
|
|
14
15
|
* * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
|
|
@@ -18,4 +19,4 @@
|
|
|
18
19
|
*
|
|
19
20
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
20
21
|
*/
|
|
21
|
-
export type V1ImageToVideoCreateBodyModelEnum = "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";
|
|
22
|
+
export type V1ImageToVideoCreateBodyModelEnum = "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-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0";
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
9
9
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
10
10
|
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
11
|
+
* * **`seedance-2.0-fast`**: Supports 480p, 720p.
|
|
11
12
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
12
13
|
* * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
|
|
13
14
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
@@ -20,6 +20,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
20
20
|
* * **`minimax-h3`**: Toggle-able: no additional credits for audio
|
|
21
21
|
* * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled
|
|
22
22
|
* * **`seedance-2.0`**: Toggle-able: no additional credits for audio
|
|
23
|
+
* * **`seedance-2.0-fast`**: Toggle-able: no additional credits for audio
|
|
23
24
|
* * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
|
|
24
25
|
* * **`seedance-2.5`**: Toggle-able: no additional credits for audio
|
|
25
26
|
* * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
|
|
@@ -39,6 +40,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
39
40
|
* * **`minimax-h3`**: any integer from 1 to 30
|
|
40
41
|
* * **`seedance-1.5`**: any integer from 4 to 12
|
|
41
42
|
* * **`seedance-2.0`**: any integer from 4 to 15
|
|
43
|
+
* * **`seedance-2.0-fast`**: any integer from 4 to 15
|
|
42
44
|
* * **`seedance-2.0-mini`**: any integer from 4 to 15
|
|
43
45
|
* * **`seedance-2.5`**: any integer from 4 to 30
|
|
44
46
|
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
@@ -65,6 +67,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
65
67
|
* * `minimax-h3`: Great for reference-driven clips with native audio and longer durations.
|
|
66
68
|
* * `seedance-1.5`: Best for smooth, consistent motion with an end frame.
|
|
67
69
|
* * `seedance-2.0`: Best for reference-led clips with precise subject control.
|
|
70
|
+
* * `seedance-2.0-fast`: Fast reference-led clips with consistent motion and audio.
|
|
68
71
|
* * `seedance-2.0-mini`: Faster reference-led clips with consistent motion and audio.
|
|
69
72
|
* * `seedance-2.5`: Best for premium realism, detail, and natural motion.
|
|
70
73
|
* * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
|
|
@@ -74,7 +77,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
74
77
|
*
|
|
75
78
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
76
79
|
*/
|
|
77
|
-
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;
|
|
80
|
+
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-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
|
|
78
81
|
/**
|
|
79
82
|
* Give your video a custom name for easy identification.
|
|
80
83
|
*/
|
|
@@ -89,6 +92,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
89
92
|
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
90
93
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
91
94
|
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
95
|
+
* * **`seedance-2.0-fast`**: Supports 480p, 720p.
|
|
92
96
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
93
97
|
* * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
|
|
94
98
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
@@ -119,7 +123,7 @@ export type External$V1ImageToVideoCreateBody = {
|
|
|
119
123
|
audio?: boolean | undefined;
|
|
120
124
|
end_seconds: number;
|
|
121
125
|
height?: number | null | undefined;
|
|
122
|
-
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;
|
|
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-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
|
|
123
127
|
name?: string | undefined;
|
|
124
128
|
resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
|
|
125
129
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
@@ -63,6 +63,7 @@ const SchemaIn$V1ImageToVideoCreateBody = z
|
|
|
63
63
|
"seedance",
|
|
64
64
|
"seedance-1.5",
|
|
65
65
|
"seedance-2.0",
|
|
66
|
+
"seedance-2.0-fast",
|
|
66
67
|
"seedance-2.0-mini",
|
|
67
68
|
"seedance-2.5",
|
|
68
69
|
"sora-2",
|
|
@@ -117,6 +118,7 @@ const SchemaOut$V1ImageToVideoCreateBody = z
|
|
|
117
118
|
"seedance",
|
|
118
119
|
"seedance-1.5",
|
|
119
120
|
"seedance-2.0",
|
|
121
|
+
"seedance-2.0-fast",
|
|
120
122
|
"seedance-2.0-mini",
|
|
121
123
|
"seedance-2.5",
|
|
122
124
|
"sora-2",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Determines the aspect ratio of the output video.
|
|
2
|
+
* Provide `aspect_ratio` to set the video’s aspect ratio. Determines the aspect ratio of the output video.
|
|
3
3
|
*
|
|
4
4
|
* * **`gemini-omni-1.1`**: Supports 16:9, 9:16.
|
|
5
5
|
* * **`kling-2.6`**: Supports 9:16, 16:9, 1:1.
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* * **`minimax-h3`**: Supports 16:9, 9:16, 1:1.
|
|
9
9
|
* * **`seedance-1.5`**: Supports 9:16, 16:9, 1:1.
|
|
10
10
|
* * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
|
|
11
|
+
* * **`seedance-2.0-fast`**: Supports 9:16, 16:9, 1:1.
|
|
11
12
|
* * **`seedance-2.0-mini`**: Supports 9:16, 16:9, 1:1.
|
|
12
13
|
* * **`seedance-2.5`**: Supports 9:16, 16:9, 1:1.
|
|
13
14
|
* * **`veo3.1`**: Supports 9:16, 16:9.
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* * `minimax-h3`: Great for reference-driven clips with native audio and longer durations.
|
|
10
10
|
* * `seedance-1.5`: Best for smooth, consistent motion with an end frame.
|
|
11
11
|
* * `seedance-2.0`: Best for reference-led clips with precise subject control.
|
|
12
|
+
* * `seedance-2.0-fast`: Fast reference-led clips with consistent motion and audio.
|
|
12
13
|
* * `seedance-2.0-mini`: Faster reference-led clips with consistent motion and audio.
|
|
13
14
|
* * `seedance-2.5`: Best for premium realism, detail, and natural motion.
|
|
14
15
|
* * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
|
|
@@ -18,4 +19,4 @@
|
|
|
18
19
|
*
|
|
19
20
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
20
21
|
*/
|
|
21
|
-
export type V1TextToVideoCreateBodyModelEnum = "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";
|
|
22
|
+
export type V1TextToVideoCreateBodyModelEnum = "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-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0";
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
9
9
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
10
10
|
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
11
|
+
* * **`seedance-2.0-fast`**: Supports 480p, 720p.
|
|
11
12
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
12
13
|
* * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
|
|
13
14
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
@@ -6,7 +6,7 @@ import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } f
|
|
|
6
6
|
*/
|
|
7
7
|
export type V1TextToVideoCreateBody = {
|
|
8
8
|
/**
|
|
9
|
-
* Determines the aspect ratio of the output video.
|
|
9
|
+
* Provide `aspect_ratio` to set the video’s aspect ratio. Determines the aspect ratio of the output video.
|
|
10
10
|
*
|
|
11
11
|
* * **`gemini-omni-1.1`**: Supports 16:9, 9:16.
|
|
12
12
|
* * **`kling-2.6`**: Supports 9:16, 16:9, 1:1.
|
|
@@ -15,6 +15,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
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
|
+
* * **`seedance-2.0-fast`**: Supports 9:16, 16:9, 1:1.
|
|
18
19
|
* * **`seedance-2.0-mini`**: Supports 9:16, 16:9, 1:1.
|
|
19
20
|
* * **`seedance-2.5`**: Supports 9:16, 16:9, 1:1.
|
|
20
21
|
* * **`veo3.1`**: Supports 9:16, 16:9.
|
|
@@ -35,6 +36,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
35
36
|
* * **`minimax-h3`**: Toggle-able: no additional credits for audio
|
|
36
37
|
* * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled
|
|
37
38
|
* * **`seedance-2.0`**: Toggle-able: no additional credits for audio
|
|
39
|
+
* * **`seedance-2.0-fast`**: Toggle-able: no additional credits for audio
|
|
38
40
|
* * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
|
|
39
41
|
* * **`seedance-2.5`**: Toggle-able: no additional credits for audio
|
|
40
42
|
* * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
|
|
@@ -54,6 +56,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
54
56
|
* * **`minimax-h3`**: any integer from 1 to 30
|
|
55
57
|
* * **`seedance-1.5`**: any integer from 4 to 12
|
|
56
58
|
* * **`seedance-2.0`**: any integer from 4 to 15
|
|
59
|
+
* * **`seedance-2.0-fast`**: any integer from 4 to 15
|
|
57
60
|
* * **`seedance-2.0-mini`**: any integer from 4 to 15
|
|
58
61
|
* * **`seedance-2.5`**: any integer from 4 to 30
|
|
59
62
|
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
@@ -74,6 +77,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
74
77
|
* * `minimax-h3`: Great for reference-driven clips with native audio and longer durations.
|
|
75
78
|
* * `seedance-1.5`: Best for smooth, consistent motion with an end frame.
|
|
76
79
|
* * `seedance-2.0`: Best for reference-led clips with precise subject control.
|
|
80
|
+
* * `seedance-2.0-fast`: Fast reference-led clips with consistent motion and audio.
|
|
77
81
|
* * `seedance-2.0-mini`: Faster reference-led clips with consistent motion and audio.
|
|
78
82
|
* * `seedance-2.5`: Best for premium realism, detail, and natural motion.
|
|
79
83
|
* * `veo3.1`: Best for romantic interactions and expressive action, with realistic detail.
|
|
@@ -83,7 +87,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
83
87
|
*
|
|
84
88
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
85
89
|
*/
|
|
86
|
-
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;
|
|
90
|
+
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-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
|
|
87
91
|
/**
|
|
88
92
|
* Give your video a custom name for easy identification.
|
|
89
93
|
*/
|
|
@@ -96,11 +100,14 @@ export type V1TextToVideoCreateBody = {
|
|
|
96
100
|
* Reference media for video generation. Name references without @ and refer to them as @name in style.prompt. Maximum 10 references total.
|
|
97
101
|
*
|
|
98
102
|
* Supported models and reference media:
|
|
103
|
+
* * **`gemini-omni-1.1`**: Supports images, videos. Up to 10 references.
|
|
99
104
|
* * **`kling-3.0`**: Supports images, videos.
|
|
100
105
|
* * **`minimax-h3`**: Supports images, videos, audio.
|
|
101
106
|
* * **`seedance-2.0`**: Supports images, videos, audio.
|
|
107
|
+
* * **`seedance-2.0-fast`**: Supports images, videos, audio.
|
|
102
108
|
* * **`seedance-2.0-mini`**: Supports images, videos, audio.
|
|
103
109
|
* * **`seedance-2.5`**: Supports images, videos, audio.
|
|
110
|
+
* * **`veo3.1`**: Supports images. Up to 3 references. Requires `end_seconds` of 8.
|
|
104
111
|
* * **`wan-3.0`**: Supports images, videos, audio.
|
|
105
112
|
*/
|
|
106
113
|
references?: V1TextToVideoCreateBodyReferencesItem[] | undefined;
|
|
@@ -114,6 +121,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
114
121
|
* * **`minimax-h3`**: Supports 480p, 720p, 1080p.
|
|
115
122
|
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
116
123
|
* * **`seedance-2.0`**: Supports 480p, 720p, 1080p, 4k.
|
|
124
|
+
* * **`seedance-2.0-fast`**: Supports 480p, 720p.
|
|
117
125
|
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
118
126
|
* * **`seedance-2.5`**: Supports 480p, 720p, 1080p.
|
|
119
127
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
@@ -134,7 +142,7 @@ export type External$V1TextToVideoCreateBody = {
|
|
|
134
142
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
135
143
|
audio?: boolean | undefined;
|
|
136
144
|
end_seconds: number;
|
|
137
|
-
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;
|
|
145
|
+
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-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
|
|
138
146
|
name?: string | undefined;
|
|
139
147
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
140
148
|
references?: External$V1TextToVideoCreateBodyReferencesItem[] | undefined;
|