magic-hour 0.61.0 → 0.63.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 +5 -0
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-image-editor/request-types.d.ts +10 -5
- package/dist/resources/v1/ai-image-editor/request-types.js +2 -0
- package/dist/resources/v1/ai-image-generator/request-types.d.ts +10 -5
- package/dist/resources/v1/ai-image-generator/request-types.js +2 -0
- package/dist/resources/v1/audio-to-video/index.d.ts +2 -0
- package/dist/resources/v1/audio-to-video/index.js +5 -0
- package/dist/resources/v1/audio-to-video/request-types.d.ts +49 -0
- package/dist/resources/v1/audio-to-video/request-types.js +89 -0
- package/dist/resources/v1/audio-to-video/resource-client.d.ts +87 -0
- package/dist/resources/v1/audio-to-video/resource-client.js +136 -0
- package/dist/resources/v1/files/upload-urls/resource-client.d.ts +1 -1
- package/dist/resources/v1/files/upload-urls/resource-client.js +1 -1
- package/dist/resources/v1/image-to-video/request-types.d.ts +27 -36
- package/dist/resources/v1/image-to-video/request-types.js +4 -2
- 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 +32 -43
- package/dist/resources/v1/text-to-video/request-types.js +4 -2
- package/dist/types/index.d.ts +5 -0
- package/dist/types/v1-ai-image-editor-create-body-model-enum.d.ts +8 -4
- package/dist/types/v1-ai-image-editor-create-body-resolution-enum.d.ts +1 -0
- package/dist/types/v1-ai-image-editor-create-body.d.ts +10 -5
- package/dist/types/v1-ai-image-editor-create-body.js +2 -0
- package/dist/types/v1-ai-image-generator-create-body-model-enum.d.ts +8 -4
- 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 +10 -5
- package/dist/types/v1-ai-image-generator-create-body.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 +3 -3
- package/dist/types/v1-ai-voice-generator-create-body-style.js +590 -0
- package/dist/types/v1-audio-projects-get-response.d.ts +1 -1
- package/dist/types/v1-audio-to-video-create-body-assets.d.ts +37 -0
- package/dist/types/v1-audio-to-video-create-body-assets.js +71 -0
- package/dist/types/v1-audio-to-video-create-body-resolution-enum.d.ts +4 -0
- package/dist/types/v1-audio-to-video-create-body-resolution-enum.js +2 -0
- package/dist/types/v1-audio-to-video-create-body-style.d.ts +22 -0
- package/dist/types/v1-audio-to-video-create-body-style.js +67 -0
- package/dist/types/v1-audio-to-video-create-body.d.ts +49 -0
- package/dist/types/v1-audio-to-video-create-body.js +89 -0
- package/dist/types/v1-audio-to-video-create-response.d.ts +36 -0
- package/dist/types/v1-audio-to-video-create-response.js +75 -0
- package/dist/types/v1-files-upload-urls-create-body-items-item.d.ts +1 -1
- package/dist/types/v1-image-projects-get-response.d.ts +1 -1
- package/dist/types/v1-image-to-video-create-body-assets.d.ts +5 -7
- package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +7 -10
- package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +6 -8
- package/dist/types/v1-image-to-video-create-body.d.ts +27 -36
- package/dist/types/v1-image-to-video-create-body.js +4 -2
- package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +5 -7
- package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +7 -10
- package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +6 -8
- package/dist/types/v1-text-to-video-create-body.d.ts +32 -43
- package/dist/types/v1-text-to-video-create-body.js +4 -2
- package/dist/types/v1-video-projects-get-response.d.ts +1 -1
- package/package.json +1 -1
|
@@ -13,35 +13,31 @@ export type CreateRequest = {
|
|
|
13
13
|
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
14
14
|
*
|
|
15
15
|
* Audio support varies by model:
|
|
16
|
-
* * **`ltx-2`**:
|
|
16
|
+
* * **`ltx-2.3`**: Toggle-able: no additional credits for audio
|
|
17
17
|
* * **`wan-2.2`**: Not supported
|
|
18
|
+
* * **`kling-2.5`**: Toggle-able: no additional credits for audio
|
|
19
|
+
* * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
|
|
20
|
+
* * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
|
|
21
|
+
* * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
|
|
18
22
|
* * **`seedance`**: Not supported
|
|
19
|
-
* * **`seedance-2.0`**:
|
|
20
|
-
* * **`
|
|
21
|
-
* * **`kling-3.0`**: Toggle-able (can enable/disable)
|
|
22
|
-
* * **`sora-2`**: Automatically included with no extra credits
|
|
23
|
-
* * **`veo3.1`**: Toggle-able (can enable/disable)
|
|
24
|
-
* * **`veo3.1-lite`**: Toggle-able (can enable/disable)
|
|
23
|
+
* * **`seedance-2.0`**: Toggle-able: no additional credits for audio
|
|
24
|
+
* * **`sora-2`**: Toggle-able: no additional credits for audio
|
|
25
25
|
*
|
|
26
|
-
* Legacy models:
|
|
27
|
-
* * **`kling-1.6`**: Not supported
|
|
28
26
|
*/
|
|
29
27
|
audio?: boolean | undefined;
|
|
30
28
|
/**
|
|
31
29
|
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
32
30
|
*
|
|
33
|
-
* * **`ltx-2`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
31
|
+
* * **`ltx-2.3`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
34
32
|
* * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
|
|
35
|
-
* * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
36
|
-
* * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
37
33
|
* * **`kling-2.5`**: 5, 10
|
|
38
34
|
* * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
39
|
-
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
40
|
-
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
41
35
|
* * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56
|
|
36
|
+
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
37
|
+
* * **`seedance`**: 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
38
|
+
* * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
39
|
+
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
42
40
|
*
|
|
43
|
-
* Legacy models:
|
|
44
|
-
* * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
45
41
|
*/
|
|
46
42
|
endSeconds: number;
|
|
47
43
|
/**
|
|
@@ -53,23 +49,20 @@ export type CreateRequest = {
|
|
|
53
49
|
/**
|
|
54
50
|
* The AI model to use for video generation.
|
|
55
51
|
*
|
|
56
|
-
* * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2`.
|
|
57
|
-
* * `ltx-2`: Fast iteration with
|
|
52
|
+
* * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2.3`.
|
|
53
|
+
* * `ltx-2.3`: Fast iteration with lip-sync & end frame
|
|
58
54
|
* * `wan-2.2`: Fast, strong visuals with effects
|
|
59
|
-
* * `seedance`: Fast iteration and start/end frames
|
|
60
|
-
* * `seedance-2.0`: State-of-the-art quality and consistency
|
|
61
55
|
* * `kling-2.5`: Motion, action, and camera control
|
|
62
56
|
* * `kling-3.0`: Cinematic, multi-scene storytelling
|
|
63
|
-
* * `
|
|
57
|
+
* * `veo3.1-lite`: Fast, affordable, high-quality
|
|
64
58
|
* * `veo3.1`: Realistic visuals and prompt adherence
|
|
65
|
-
* * `
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* * `kling-1.6`: Reliable baseline with smooth motion
|
|
59
|
+
* * `seedance`: Fast iteration and start/end frames
|
|
60
|
+
* * `seedance-2.0`: State-of-the-art quality and consistency
|
|
61
|
+
* * `sora-2`: Story-first concepts and creativity
|
|
69
62
|
*
|
|
70
63
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
71
64
|
*/
|
|
72
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
65
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
73
66
|
/**
|
|
74
67
|
* Give your video a custom name for easy identification.
|
|
75
68
|
*/
|
|
@@ -77,20 +70,18 @@ export type CreateRequest = {
|
|
|
77
70
|
/**
|
|
78
71
|
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
79
72
|
*
|
|
80
|
-
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
73
|
+
* * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
|
|
81
74
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
75
|
+
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
76
|
+
* * **`kling-3.0`**: Supports 720p, 1080p, 4k.
|
|
77
|
+
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
78
|
+
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
82
79
|
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
83
80
|
* * **`seedance-2.0`**: Supports 480p, 720p.
|
|
84
|
-
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
85
|
-
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
86
81
|
* * **`sora-2`**: Supports 720p.
|
|
87
|
-
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
88
|
-
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
89
82
|
*
|
|
90
|
-
* Legacy models:
|
|
91
|
-
* * **`kling-1.6`**: Supports 720p, 1080p.
|
|
92
83
|
*/
|
|
93
|
-
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
84
|
+
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
|
|
94
85
|
/**
|
|
95
86
|
* Attributed used to dictate the style of the output
|
|
96
87
|
*/
|
|
@@ -112,9 +103,9 @@ export type External$CreateRequest = {
|
|
|
112
103
|
audio?: boolean | undefined;
|
|
113
104
|
end_seconds: number;
|
|
114
105
|
height?: number | null | undefined;
|
|
115
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
106
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
116
107
|
name?: string | undefined;
|
|
117
|
-
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
108
|
+
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
|
|
118
109
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
119
110
|
width?: number | null | undefined;
|
|
120
111
|
};
|
|
@@ -55,6 +55,7 @@ const SchemaIn$CreateRequest = z
|
|
|
55
55
|
"kling-2.5-audio",
|
|
56
56
|
"kling-3.0",
|
|
57
57
|
"ltx-2",
|
|
58
|
+
"ltx-2.3",
|
|
58
59
|
"seedance",
|
|
59
60
|
"seedance-2.0",
|
|
60
61
|
"sora-2",
|
|
@@ -65,7 +66,7 @@ const SchemaIn$CreateRequest = z
|
|
|
65
66
|
])
|
|
66
67
|
.optional(),
|
|
67
68
|
name: z.string().optional(),
|
|
68
|
-
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
69
|
+
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
|
|
69
70
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.in.optional(),
|
|
70
71
|
width: z.number().int().nullable().optional(),
|
|
71
72
|
})
|
|
@@ -100,6 +101,7 @@ const SchemaOut$CreateRequest = z
|
|
|
100
101
|
"kling-2.5-audio",
|
|
101
102
|
"kling-3.0",
|
|
102
103
|
"ltx-2",
|
|
104
|
+
"ltx-2.3",
|
|
103
105
|
"seedance",
|
|
104
106
|
"seedance-2.0",
|
|
105
107
|
"sora-2",
|
|
@@ -110,7 +112,7 @@ const SchemaOut$CreateRequest = z
|
|
|
110
112
|
])
|
|
111
113
|
.optional(),
|
|
112
114
|
name: z.string().optional(),
|
|
113
|
-
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
115
|
+
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
|
|
114
116
|
style: v1_image_to_video_create_body_style_1.Schemas$V1ImageToVideoCreateBodyStyle.out.optional(),
|
|
115
117
|
width: z.number().int().nullable().optional(),
|
|
116
118
|
})
|
|
@@ -12,6 +12,7 @@ export * as aiVoiceCloner from "./ai-voice-cloner";
|
|
|
12
12
|
export * as aiVoiceGenerator from "./ai-voice-generator";
|
|
13
13
|
export * as animation from "./animation";
|
|
14
14
|
export * as audioProjects from "./audio-projects";
|
|
15
|
+
export * as audioToVideo from "./audio-to-video";
|
|
15
16
|
export * as autoSubtitleGenerator from "./auto-subtitle-generator";
|
|
16
17
|
export * as bodySwap from "./body-swap";
|
|
17
18
|
export * as faceDetection from "./face-detection";
|
|
@@ -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.V1Client = exports.photoColorizer = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.headSwap = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.faceDetection = exports.bodySwap = exports.autoSubtitleGenerator = exports.audioProjects = exports.animation = exports.aiVoiceGenerator = exports.aiVoiceCloner = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiMemeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiImageEditor = exports.aiHeadshotGenerator = exports.aiGifGenerator = exports.aiFaceEditor = exports.aiClothesChanger = void 0;
|
|
36
|
+
exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.V1Client = exports.photoColorizer = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.imageBackgroundRemover = exports.headSwap = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.faceDetection = exports.bodySwap = exports.autoSubtitleGenerator = exports.audioToVideo = exports.audioProjects = exports.animation = exports.aiVoiceGenerator = exports.aiVoiceCloner = exports.aiTalkingPhoto = exports.aiQrCodeGenerator = exports.aiMemeGenerator = exports.aiImageUpscaler = exports.aiImageGenerator = exports.aiImageEditor = exports.aiHeadshotGenerator = exports.aiGifGenerator = exports.aiFaceEditor = exports.aiClothesChanger = void 0;
|
|
37
37
|
exports.aiClothesChanger = __importStar(require("./ai-clothes-changer"));
|
|
38
38
|
exports.aiFaceEditor = __importStar(require("./ai-face-editor"));
|
|
39
39
|
exports.aiGifGenerator = __importStar(require("./ai-gif-generator"));
|
|
@@ -48,6 +48,7 @@ exports.aiVoiceCloner = __importStar(require("./ai-voice-cloner"));
|
|
|
48
48
|
exports.aiVoiceGenerator = __importStar(require("./ai-voice-generator"));
|
|
49
49
|
exports.animation = __importStar(require("./animation"));
|
|
50
50
|
exports.audioProjects = __importStar(require("./audio-projects"));
|
|
51
|
+
exports.audioToVideo = __importStar(require("./audio-to-video"));
|
|
51
52
|
exports.autoSubtitleGenerator = __importStar(require("./auto-subtitle-generator"));
|
|
52
53
|
exports.bodySwap = __importStar(require("./body-swap"));
|
|
53
54
|
exports.faceDetection = __importStar(require("./face-detection"));
|
|
@@ -13,6 +13,7 @@ import { AiVoiceClonerClient } from "../../resources/v1/ai-voice-cloner";
|
|
|
13
13
|
import { AiVoiceGeneratorClient } from "../../resources/v1/ai-voice-generator";
|
|
14
14
|
import { AnimationClient } from "../../resources/v1/animation";
|
|
15
15
|
import { AudioProjectsClient } from "../../resources/v1/audio-projects";
|
|
16
|
+
import { AudioToVideoClient } from "../../resources/v1/audio-to-video";
|
|
16
17
|
import { AutoSubtitleGeneratorClient } from "../../resources/v1/auto-subtitle-generator";
|
|
17
18
|
import { BodySwapClient } from "../../resources/v1/body-swap";
|
|
18
19
|
import { FaceDetectionClient } from "../../resources/v1/face-detection";
|
|
@@ -29,6 +30,7 @@ import { TextToVideoClient } from "../../resources/v1/text-to-video";
|
|
|
29
30
|
import { VideoProjectsClient } from "../../resources/v1/video-projects";
|
|
30
31
|
import { VideoToVideoClient } from "../../resources/v1/video-to-video";
|
|
31
32
|
export declare class V1Client extends CoreResourceClient {
|
|
33
|
+
private _audioToVideoLazy?;
|
|
32
34
|
private _bodySwapLazy?;
|
|
33
35
|
private _headSwapLazy?;
|
|
34
36
|
private _aiVoiceClonerLazy?;
|
|
@@ -88,4 +90,5 @@ export declare class V1Client extends CoreResourceClient {
|
|
|
88
90
|
get aiVoiceCloner(): AiVoiceClonerClient;
|
|
89
91
|
get headSwap(): HeadSwapClient;
|
|
90
92
|
get bodySwap(): BodySwapClient;
|
|
93
|
+
get audioToVideo(): AudioToVideoClient;
|
|
91
94
|
}
|
|
@@ -20,6 +20,7 @@ class V1Client extends make_api_request_js_1.CoreResourceClient {
|
|
|
20
20
|
this.aiVoiceGenerator;
|
|
21
21
|
this.animation;
|
|
22
22
|
this.audioProjects;
|
|
23
|
+
this.audioToVideo;
|
|
23
24
|
this.autoSubtitleGenerator;
|
|
24
25
|
this.bodySwap;
|
|
25
26
|
this.faceDetection;
|
|
@@ -176,5 +177,10 @@ class V1Client extends make_api_request_js_1.CoreResourceClient {
|
|
|
176
177
|
var _a;
|
|
177
178
|
return ((_a = this._bodySwapLazy) !== null && _a !== void 0 ? _a : (this._bodySwapLazy = new (require("./body-swap").BodySwapClient)(this._client, this._opts)));
|
|
178
179
|
}
|
|
180
|
+
get audioToVideo() {
|
|
181
|
+
var _a;
|
|
182
|
+
return ((_a = this._audioToVideoLazy) !== null && _a !== void 0 ? _a : (this._audioToVideoLazy =
|
|
183
|
+
new (require("./audio-to-video").AudioToVideoClient)(this._client, this._opts)));
|
|
184
|
+
}
|
|
179
185
|
}
|
|
180
186
|
exports.V1Client = V1Client;
|
|
@@ -7,75 +7,66 @@ export type CreateRequest = {
|
|
|
7
7
|
/**
|
|
8
8
|
* Determines the aspect ratio of the output video.
|
|
9
9
|
*
|
|
10
|
-
* * **`ltx-2`**: Supports 9:16, 16:9, 1:1.
|
|
10
|
+
* * **`ltx-2.3`**: Supports 9:16, 16:9, 1:1.
|
|
11
11
|
* * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
|
|
12
|
-
* * **`seedance`**: Supports 9:16, 16:9, 1:1.
|
|
13
|
-
* * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
|
|
14
12
|
* * **`kling-2.5`**: Supports 9:16, 16:9, 1:1.
|
|
15
13
|
* * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
|
|
16
|
-
* * **`sora-2`**: Supports 9:16, 16:9.
|
|
17
|
-
* * **`veo3.1`**: Supports 9:16, 16:9.
|
|
18
14
|
* * **`veo3.1-lite`**: Supports 9:16, 16:9.
|
|
15
|
+
* * **`veo3.1`**: Supports 9:16, 16:9.
|
|
16
|
+
* * **`seedance`**: Supports 9:16, 16:9, 1:1.
|
|
17
|
+
* * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
|
|
18
|
+
* * **`sora-2`**: Supports 9:16, 16:9.
|
|
19
19
|
*
|
|
20
|
-
* Legacy models:
|
|
21
|
-
* * **`kling-1.6`**: Supports 9:16, 16:9, 1:1.
|
|
22
20
|
*/
|
|
23
21
|
aspectRatio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
24
22
|
/**
|
|
25
23
|
* Whether to include audio in the video. Defaults to `false` if not specified.
|
|
26
24
|
*
|
|
27
25
|
* Audio support varies by model:
|
|
28
|
-
* * **`ltx-2`**:
|
|
26
|
+
* * **`ltx-2.3`**: Toggle-able: no additional credits for audio
|
|
29
27
|
* * **`wan-2.2`**: Not supported
|
|
28
|
+
* * **`kling-2.5`**: Toggle-able: no additional credits for audio
|
|
29
|
+
* * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
|
|
30
|
+
* * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
|
|
31
|
+
* * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
|
|
30
32
|
* * **`seedance`**: Not supported
|
|
31
|
-
* * **`seedance-2.0`**:
|
|
32
|
-
* * **`
|
|
33
|
-
* * **`kling-3.0`**: Toggle-able (can enable/disable)
|
|
34
|
-
* * **`sora-2`**: Automatically included with no extra credits
|
|
35
|
-
* * **`veo3.1`**: Toggle-able (can enable/disable)
|
|
36
|
-
* * **`veo3.1-lite`**: Toggle-able (can enable/disable)
|
|
33
|
+
* * **`seedance-2.0`**: Toggle-able: no additional credits for audio
|
|
34
|
+
* * **`sora-2`**: Toggle-able: no additional credits for audio
|
|
37
35
|
*
|
|
38
|
-
* Legacy models:
|
|
39
|
-
* * **`kling-1.6`**: Not supported
|
|
40
36
|
*/
|
|
41
37
|
audio?: boolean | undefined;
|
|
42
38
|
/**
|
|
43
39
|
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
44
40
|
*
|
|
45
|
-
* * **`ltx-2`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
41
|
+
* * **`ltx-2.3`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
46
42
|
* * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
|
|
47
|
-
* * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
48
|
-
* * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
49
43
|
* * **`kling-2.5`**: 5, 10
|
|
50
44
|
* * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
51
|
-
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
52
|
-
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
53
45
|
* * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56
|
|
46
|
+
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
47
|
+
* * **`seedance`**: 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
48
|
+
* * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
49
|
+
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
54
50
|
*
|
|
55
|
-
* Legacy models:
|
|
56
|
-
* * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
|
|
57
51
|
*/
|
|
58
52
|
endSeconds: number;
|
|
59
53
|
/**
|
|
60
54
|
* The AI model to use for video generation.
|
|
61
55
|
*
|
|
62
|
-
* * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2`.
|
|
63
|
-
* * `ltx-2`: Fast iteration with
|
|
56
|
+
* * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2.3`.
|
|
57
|
+
* * `ltx-2.3`: Fast iteration with lip-sync & end frame
|
|
64
58
|
* * `wan-2.2`: Fast, strong visuals with effects
|
|
65
|
-
* * `seedance`: Fast iteration and start/end frames
|
|
66
|
-
* * `seedance-2.0`: State-of-the-art quality and consistency
|
|
67
59
|
* * `kling-2.5`: Motion, action, and camera control
|
|
68
60
|
* * `kling-3.0`: Cinematic, multi-scene storytelling
|
|
69
|
-
* * `
|
|
61
|
+
* * `veo3.1-lite`: Fast, affordable, high-quality
|
|
70
62
|
* * `veo3.1`: Realistic visuals and prompt adherence
|
|
71
|
-
* * `
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* * `kling-1.6`: Reliable baseline with smooth motion
|
|
63
|
+
* * `seedance`: Fast iteration and start/end frames
|
|
64
|
+
* * `seedance-2.0`: State-of-the-art quality and consistency
|
|
65
|
+
* * `sora-2`: Story-first concepts and creativity
|
|
75
66
|
*
|
|
76
67
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
77
68
|
*/
|
|
78
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
69
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
79
70
|
/**
|
|
80
71
|
* Give your video a custom name for easy identification.
|
|
81
72
|
*/
|
|
@@ -87,20 +78,18 @@ export type CreateRequest = {
|
|
|
87
78
|
/**
|
|
88
79
|
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
89
80
|
*
|
|
90
|
-
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
81
|
+
* * **`ltx-2.3`**: Supports 480p, 720p, 1080p.
|
|
91
82
|
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
83
|
+
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
84
|
+
* * **`kling-3.0`**: Supports 720p, 1080p, 4k.
|
|
85
|
+
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
86
|
+
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
92
87
|
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
93
88
|
* * **`seedance-2.0`**: Supports 480p, 720p.
|
|
94
|
-
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
95
|
-
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
96
89
|
* * **`sora-2`**: Supports 720p.
|
|
97
|
-
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
98
|
-
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
99
90
|
*
|
|
100
|
-
* Legacy models:
|
|
101
|
-
* * **`kling-1.6`**: Supports 720p, 1080p.
|
|
102
91
|
*/
|
|
103
|
-
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
92
|
+
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
|
|
104
93
|
style: V1TextToVideoCreateBodyStyle;
|
|
105
94
|
};
|
|
106
95
|
/**
|
|
@@ -112,10 +101,10 @@ export type External$CreateRequest = {
|
|
|
112
101
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
113
102
|
audio?: boolean | undefined;
|
|
114
103
|
end_seconds: number;
|
|
115
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
104
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-2.0" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
116
105
|
name?: string | undefined;
|
|
117
106
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
118
|
-
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
107
|
+
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
|
|
119
108
|
style: External$V1TextToVideoCreateBodyStyle;
|
|
120
109
|
};
|
|
121
110
|
export declare const Schemas$CreateRequest: {
|
|
@@ -53,6 +53,7 @@ const SchemaIn$CreateRequest = z
|
|
|
53
53
|
"kling-2.5-audio",
|
|
54
54
|
"kling-3.0",
|
|
55
55
|
"ltx-2",
|
|
56
|
+
"ltx-2.3",
|
|
56
57
|
"seedance",
|
|
57
58
|
"seedance-2.0",
|
|
58
59
|
"sora-2",
|
|
@@ -64,7 +65,7 @@ const SchemaIn$CreateRequest = z
|
|
|
64
65
|
.optional(),
|
|
65
66
|
name: z.string().optional(),
|
|
66
67
|
orientation: z.enum(["landscape", "portrait", "square"]).optional(),
|
|
67
|
-
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
68
|
+
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
|
|
68
69
|
style: v1_text_to_video_create_body_style_1.Schemas$V1TextToVideoCreateBodyStyle.in,
|
|
69
70
|
})
|
|
70
71
|
.transform((obj) => {
|
|
@@ -96,6 +97,7 @@ const SchemaOut$CreateRequest = z
|
|
|
96
97
|
"kling-2.5-audio",
|
|
97
98
|
"kling-3.0",
|
|
98
99
|
"ltx-2",
|
|
100
|
+
"ltx-2.3",
|
|
99
101
|
"seedance",
|
|
100
102
|
"seedance-2.0",
|
|
101
103
|
"sora-2",
|
|
@@ -107,7 +109,7 @@ const SchemaOut$CreateRequest = z
|
|
|
107
109
|
.optional(),
|
|
108
110
|
name: z.string().optional(),
|
|
109
111
|
orientation: z.enum(["landscape", "portrait", "square"]).optional(),
|
|
110
|
-
resolution: z.enum(["1080p", "480p", "720p"]).optional(),
|
|
112
|
+
resolution: z.enum(["1080p", "480p", "4k", "720p"]).optional(),
|
|
111
113
|
style: v1_text_to_video_create_body_style_1.Schemas$V1TextToVideoCreateBodyStyle.out,
|
|
112
114
|
})
|
|
113
115
|
.transform((obj) => {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -68,6 +68,11 @@ export { V1AudioProjectsGetResponse } from "./v1-audio-projects-get-response";
|
|
|
68
68
|
export { V1AudioProjectsGetResponseDownloadsItem } from "./v1-audio-projects-get-response-downloads-item";
|
|
69
69
|
export { V1AudioProjectsGetResponseError } from "./v1-audio-projects-get-response-error";
|
|
70
70
|
export { V1AudioProjectsGetResponseStatusEnum } from "./v1-audio-projects-get-response-status-enum";
|
|
71
|
+
export { V1AudioToVideoCreateBody } from "./v1-audio-to-video-create-body";
|
|
72
|
+
export { V1AudioToVideoCreateBodyAssets } from "./v1-audio-to-video-create-body-assets";
|
|
73
|
+
export { V1AudioToVideoCreateBodyResolutionEnum } from "./v1-audio-to-video-create-body-resolution-enum";
|
|
74
|
+
export { V1AudioToVideoCreateBodyStyle } from "./v1-audio-to-video-create-body-style";
|
|
75
|
+
export { V1AudioToVideoCreateResponse } from "./v1-audio-to-video-create-response";
|
|
71
76
|
export { V1AutoSubtitleGeneratorCreateBody } from "./v1-auto-subtitle-generator-create-body";
|
|
72
77
|
export { V1AutoSubtitleGeneratorCreateBodyAssets } from "./v1-auto-subtitle-generator-create-body-assets";
|
|
73
78
|
export { V1AutoSubtitleGeneratorCreateBodyStyle } from "./v1-auto-subtitle-generator-create-body-style";
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
* - Max additional input images: 2
|
|
10
10
|
* - `nano-banana` - from 50 credits/image
|
|
11
11
|
* - Supported resolutions: 640px, 1k
|
|
12
|
-
* - Available for tiers:
|
|
12
|
+
* - Available for tiers: creator, pro, business
|
|
13
13
|
* - Max additional input images: 9
|
|
14
14
|
* - `nano-banana-2` - from 100 credits/image
|
|
15
15
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
16
|
-
* - Available for tiers:
|
|
16
|
+
* - Available for tiers: creator, pro, business
|
|
17
17
|
* - Max additional input images: 9
|
|
18
18
|
* - `seedream-v4` - from 40 credits/image
|
|
19
19
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
20
|
-
* - Available for tiers:
|
|
20
|
+
* - Available for tiers: creator, pro, business
|
|
21
21
|
* - Max additional input images: 9
|
|
22
22
|
* - `nano-banana-pro` - from 150 credits/image
|
|
23
23
|
* - Supported resolutions: 1k, 2k, 4k
|
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
28
28
|
* - Available for tiers: creator, pro, business
|
|
29
29
|
* - Max additional input images: 9
|
|
30
|
+
* - `gpt-image-2` - from 50 credits/image
|
|
31
|
+
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
32
|
+
* - Available for tiers: creator, pro, business
|
|
33
|
+
* - Max additional input images: 9
|
|
30
34
|
*
|
|
31
35
|
*/
|
|
32
|
-
export type V1AiImageEditorCreateBodyModelEnum = "default" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5";
|
|
36
|
+
export type V1AiImageEditorCreateBodyModelEnum = "default" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5";
|
|
@@ -28,15 +28,15 @@ export type V1AiImageEditorCreateBody = {
|
|
|
28
28
|
* - Max additional input images: 2
|
|
29
29
|
* - `nano-banana` - from 50 credits/image
|
|
30
30
|
* - Supported resolutions: 640px, 1k
|
|
31
|
-
* - Available for tiers:
|
|
31
|
+
* - Available for tiers: creator, pro, business
|
|
32
32
|
* - Max additional input images: 9
|
|
33
33
|
* - `nano-banana-2` - from 100 credits/image
|
|
34
34
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
35
|
-
* - Available for tiers:
|
|
35
|
+
* - Available for tiers: creator, pro, business
|
|
36
36
|
* - Max additional input images: 9
|
|
37
37
|
* - `seedream-v4` - from 40 credits/image
|
|
38
38
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
39
|
-
* - Available for tiers:
|
|
39
|
+
* - Available for tiers: creator, pro, business
|
|
40
40
|
* - Max additional input images: 9
|
|
41
41
|
* - `nano-banana-pro` - from 150 credits/image
|
|
42
42
|
* - Supported resolutions: 1k, 2k, 4k
|
|
@@ -46,9 +46,13 @@ export type V1AiImageEditorCreateBody = {
|
|
|
46
46
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
47
47
|
* - Available for tiers: creator, pro, business
|
|
48
48
|
* - Max additional input images: 9
|
|
49
|
+
* - `gpt-image-2` - from 50 credits/image
|
|
50
|
+
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
51
|
+
* - Available for tiers: creator, pro, business
|
|
52
|
+
* - Max additional input images: 9
|
|
49
53
|
*
|
|
50
54
|
*/
|
|
51
|
-
model?: ("default" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
55
|
+
model?: ("default" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
52
56
|
/**
|
|
53
57
|
* Give your image a custom name for easy identification.
|
|
54
58
|
*/
|
|
@@ -70,6 +74,7 @@ export type V1AiImageEditorCreateBody = {
|
|
|
70
74
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
71
75
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
72
76
|
* - `seedream-v4.5` - 640px, 1k, 2k, 4k
|
|
77
|
+
* - `gpt-image-2` - 640px, 1k, 2k, 4k
|
|
73
78
|
*
|
|
74
79
|
* Note: Resolution availability depends on the model and your subscription tier.
|
|
75
80
|
*/
|
|
@@ -85,7 +90,7 @@ export type External$V1AiImageEditorCreateBody = {
|
|
|
85
90
|
aspect_ratio?: ("16:9" | "1:1" | "2:3" | "3:2" | "4:3" | "4:5" | "9:16" | "auto") | undefined;
|
|
86
91
|
assets: External$V1AiImageEditorCreateBodyAssets;
|
|
87
92
|
image_count?: number | undefined;
|
|
88
|
-
model?: ("default" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
93
|
+
model?: ("default" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
89
94
|
name?: string | undefined;
|
|
90
95
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
91
96
|
style: External$V1AiImageEditorCreateBodyStyle;
|
|
@@ -51,6 +51,7 @@ const SchemaIn$V1AiImageEditorCreateBody = z
|
|
|
51
51
|
model: z
|
|
52
52
|
.enum([
|
|
53
53
|
"default",
|
|
54
|
+
"gpt-image-2",
|
|
54
55
|
"nano-banana",
|
|
55
56
|
"nano-banana-2",
|
|
56
57
|
"nano-banana-pro",
|
|
@@ -88,6 +89,7 @@ const SchemaOut$V1AiImageEditorCreateBody = z
|
|
|
88
89
|
model: z
|
|
89
90
|
.enum([
|
|
90
91
|
"default",
|
|
92
|
+
"gpt-image-2",
|
|
91
93
|
"nano-banana",
|
|
92
94
|
"nano-banana-2",
|
|
93
95
|
"nano-banana-pro",
|
|
@@ -13,23 +13,27 @@
|
|
|
13
13
|
* - Image count allowed: 1, 2, 3, 4
|
|
14
14
|
* - `seedream-v4` - from 40 credits/image
|
|
15
15
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
16
|
-
* - Available for tiers:
|
|
16
|
+
* - Available for tiers: creator, pro, business
|
|
17
17
|
* - Image count allowed: 1, 2, 3, 4
|
|
18
18
|
* - `nano-banana` - from 50 credits/image
|
|
19
19
|
* - Supported resolutions: 640px, 1k
|
|
20
|
-
* - Available for tiers:
|
|
20
|
+
* - Available for tiers: creator, pro, business
|
|
21
21
|
* - Image count allowed: 1, 2, 3, 4
|
|
22
22
|
* - `nano-banana-2` - from 100 credits/image
|
|
23
23
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
24
|
-
* - Available for tiers:
|
|
24
|
+
* - Available for tiers: creator, pro, business
|
|
25
25
|
* - Image count allowed: 1, 4, 9, 16
|
|
26
26
|
* - `nano-banana-pro` - from 150 credits/image
|
|
27
27
|
* - Supported resolutions: 1k, 2k, 4k
|
|
28
28
|
* - Available for tiers: creator, pro, business
|
|
29
29
|
* - Image count allowed: 1, 4, 9, 16
|
|
30
|
+
* - `gpt-image-2` - from 50 credits/image
|
|
31
|
+
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
32
|
+
* - Available for tiers: creator, pro, business
|
|
33
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
30
34
|
*
|
|
31
35
|
* **Deprecated Enum Values:**
|
|
32
36
|
* - `seedream` - Use `seedream-v4` instead.
|
|
33
37
|
*
|
|
34
38
|
*/
|
|
35
|
-
export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-schnell" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo";
|
|
39
|
+
export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo";
|
|
@@ -27,26 +27,30 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
27
27
|
* - Image count allowed: 1, 2, 3, 4
|
|
28
28
|
* - `seedream-v4` - from 40 credits/image
|
|
29
29
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
30
|
-
* - Available for tiers:
|
|
30
|
+
* - Available for tiers: creator, pro, business
|
|
31
31
|
* - Image count allowed: 1, 2, 3, 4
|
|
32
32
|
* - `nano-banana` - from 50 credits/image
|
|
33
33
|
* - Supported resolutions: 640px, 1k
|
|
34
|
-
* - Available for tiers:
|
|
34
|
+
* - Available for tiers: creator, pro, business
|
|
35
35
|
* - Image count allowed: 1, 2, 3, 4
|
|
36
36
|
* - `nano-banana-2` - from 100 credits/image
|
|
37
37
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
38
|
-
* - Available for tiers:
|
|
38
|
+
* - Available for tiers: creator, pro, business
|
|
39
39
|
* - Image count allowed: 1, 4, 9, 16
|
|
40
40
|
* - `nano-banana-pro` - from 150 credits/image
|
|
41
41
|
* - Supported resolutions: 1k, 2k, 4k
|
|
42
42
|
* - Available for tiers: creator, pro, business
|
|
43
43
|
* - Image count allowed: 1, 4, 9, 16
|
|
44
|
+
* - `gpt-image-2` - from 50 credits/image
|
|
45
|
+
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
46
|
+
* - Available for tiers: creator, pro, business
|
|
47
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
44
48
|
*
|
|
45
49
|
* **Deprecated Enum Values:**
|
|
46
50
|
* - `seedream` - Use `seedream-v4` instead.
|
|
47
51
|
*
|
|
48
52
|
*/
|
|
49
|
-
model?: ("default" | "flux-schnell" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
53
|
+
model?: ("default" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
50
54
|
/**
|
|
51
55
|
* Give your image a custom name for easy identification.
|
|
52
56
|
*/
|
|
@@ -74,6 +78,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
74
78
|
* - `nano-banana` - 640px, 1k
|
|
75
79
|
* - `nano-banana-2` - 640px, 1k, 2k, 4k
|
|
76
80
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
81
|
+
* - `gpt-image-2` - 640px, 1k, 2k, 4k
|
|
77
82
|
*
|
|
78
83
|
* Note: Resolution availability depends on the model and your subscription tier.
|
|
79
84
|
*/
|
|
@@ -91,7 +96,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
91
96
|
export type External$V1AiImageGeneratorCreateBody = {
|
|
92
97
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
93
98
|
image_count: number;
|
|
94
|
-
model?: ("default" | "flux-schnell" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
99
|
+
model?: ("default" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
95
100
|
name?: string | undefined;
|
|
96
101
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
97
102
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
@@ -48,6 +48,7 @@ const SchemaIn$V1AiImageGeneratorCreateBody = z
|
|
|
48
48
|
.enum([
|
|
49
49
|
"default",
|
|
50
50
|
"flux-schnell",
|
|
51
|
+
"gpt-image-2",
|
|
51
52
|
"nano-banana",
|
|
52
53
|
"nano-banana-2",
|
|
53
54
|
"nano-banana-pro",
|
|
@@ -84,6 +85,7 @@ const SchemaOut$V1AiImageGeneratorCreateBody = z
|
|
|
84
85
|
.enum([
|
|
85
86
|
"default",
|
|
86
87
|
"flux-schnell",
|
|
88
|
+
"gpt-image-2",
|
|
87
89
|
"nano-banana",
|
|
88
90
|
"nano-banana-2",
|
|
89
91
|
"nano-banana-pro",
|