magic-hour 0.65.0 → 0.67.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/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-image-editor/request-types.d.ts +7 -2
- package/dist/resources/v1/ai-image-editor/request-types.js +2 -0
- package/dist/resources/v1/ai-image-generator/request-types.d.ts +7 -2
- package/dist/resources/v1/ai-image-generator/request-types.js +2 -0
- package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +3 -3
- package/dist/resources/v1/ai-image-upscaler/request-types.js +2 -2
- package/dist/resources/v1/ai-image-upscaler/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-image-upscaler/resource-client.js +1 -1
- package/dist/resources/v1/files/upload-urls/resource-client.d.ts +2 -2
- package/dist/resources/v1/files/upload-urls/resource-client.js +2 -2
- package/dist/resources/v1/image-to-video/request-types.d.ts +18 -14
- package/dist/resources/v1/image-to-video/request-types.js +4 -0
- package/dist/resources/v1/text-to-video/request-types.d.ts +20 -15
- package/dist/resources/v1/text-to-video/request-types.js +4 -0
- package/dist/types/v1-ai-image-editor-create-body-model-enum.d.ts +5 -1
- 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 +7 -2
- 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 +5 -1
- package/dist/types/v1-ai-image-generator-create-body-resolution-enum.d.ts +1 -0
- package/dist/types/v1-ai-image-generator-create-body.d.ts +7 -2
- package/dist/types/v1-ai-image-generator-create-body.js +2 -0
- package/dist/types/v1-ai-image-upscaler-create-body-style-enhancement-enum.d.ts +1 -1
- package/dist/types/v1-ai-image-upscaler-create-body-style-mode-enum.d.ts +2 -2
- package/dist/types/v1-ai-image-upscaler-create-body-style.d.ts +8 -5
- package/dist/types/v1-ai-image-upscaler-create-body-style.js +2 -2
- package/dist/types/v1-ai-image-upscaler-create-body.d.ts +3 -3
- package/dist/types/v1-ai-image-upscaler-create-body.js +2 -2
- 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-body-swap-create-body-assets.d.ts +1 -1
- package/dist/types/v1-files-upload-urls-create-body-items-item.d.ts +1 -1
- 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 +11 -10
- package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +2 -1
- package/dist/types/v1-image-to-video-create-body.d.ts +18 -14
- package/dist/types/v1-image-to-video-create-body.js +4 -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 +11 -10
- package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +2 -1
- package/dist/types/v1-text-to-video-create-body.d.ts +20 -15
- package/dist/types/v1-text-to-video-create-body.js +4 -0
- package/dist/types/v1-video-projects-get-response.d.ts +1 -1
- package/package.json +1 -1
package/dist/environment.d.ts
CHANGED
package/dist/environment.js
CHANGED
|
@@ -4,5 +4,5 @@ exports.Environment = void 0;
|
|
|
4
4
|
var Environment;
|
|
5
5
|
(function (Environment) {
|
|
6
6
|
Environment["Environment"] = "https://api.magichour.ai";
|
|
7
|
-
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.
|
|
7
|
+
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.68.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -38,6 +38,10 @@ export type CreateRequest = {
|
|
|
38
38
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
39
39
|
* - Available for tiers: creator, pro, business
|
|
40
40
|
* - Max additional input images: 9
|
|
41
|
+
* - `nano-banana-2-lite` - from 50 credits/image
|
|
42
|
+
* - Supported resolutions: 640px, 1k
|
|
43
|
+
* - Available for tiers: creator, pro, business
|
|
44
|
+
* - Max additional input images: 9
|
|
41
45
|
* - `seedream-v4` - from 40 credits/image
|
|
42
46
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
43
47
|
* - Available for tiers: creator, pro, business
|
|
@@ -56,7 +60,7 @@ export type CreateRequest = {
|
|
|
56
60
|
* - Max additional input images: 9
|
|
57
61
|
*
|
|
58
62
|
*/
|
|
59
|
-
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
63
|
+
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
60
64
|
/**
|
|
61
65
|
* Give your image a custom name for easy identification.
|
|
62
66
|
*/
|
|
@@ -76,6 +80,7 @@ export type CreateRequest = {
|
|
|
76
80
|
* - `flux-2-klein` - 640px, 1k, 2k
|
|
77
81
|
* - `nano-banana` - 640px, 1k
|
|
78
82
|
* - `nano-banana-2` - 640px, 1k, 2k, 4k
|
|
83
|
+
* - `nano-banana-2-lite` - 640px, 1k
|
|
79
84
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
80
85
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
81
86
|
* - `seedream-v4.5` - 640px, 1k, 2k, 4k
|
|
@@ -95,7 +100,7 @@ export type External$CreateRequest = {
|
|
|
95
100
|
aspect_ratio?: ("16:9" | "1:1" | "2:3" | "3:2" | "4:3" | "4:5" | "9:16" | "auto") | undefined;
|
|
96
101
|
assets: External$V1AiImageEditorCreateBodyAssets;
|
|
97
102
|
image_count?: number | undefined;
|
|
98
|
-
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
103
|
+
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
99
104
|
name?: string | undefined;
|
|
100
105
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
101
106
|
style: External$V1AiImageEditorCreateBodyStyle;
|
|
@@ -55,6 +55,7 @@ const SchemaIn$CreateRequest = z
|
|
|
55
55
|
"gpt-image-2",
|
|
56
56
|
"nano-banana",
|
|
57
57
|
"nano-banana-2",
|
|
58
|
+
"nano-banana-2-lite",
|
|
58
59
|
"nano-banana-pro",
|
|
59
60
|
"qwen-edit",
|
|
60
61
|
"seedream-v4",
|
|
@@ -94,6 +95,7 @@ const SchemaOut$CreateRequest = z
|
|
|
94
95
|
"gpt-image-2",
|
|
95
96
|
"nano-banana",
|
|
96
97
|
"nano-banana-2",
|
|
98
|
+
"nano-banana-2-lite",
|
|
97
99
|
"nano-banana-pro",
|
|
98
100
|
"qwen-edit",
|
|
99
101
|
"seedream-v4",
|
|
@@ -37,6 +37,10 @@ export type CreateRequest = {
|
|
|
37
37
|
* - Supported resolutions: 640px, 1k
|
|
38
38
|
* - Available for tiers: creator, pro, business
|
|
39
39
|
* - Image count allowed: 1, 2, 3, 4
|
|
40
|
+
* - `nano-banana-2-lite` - from 50 credits/image
|
|
41
|
+
* - Supported resolutions: 640px, 1k
|
|
42
|
+
* - Available for tiers: creator, pro, business
|
|
43
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
40
44
|
* - `nano-banana-2` - from 100 credits/image
|
|
41
45
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
42
46
|
* - Available for tiers: creator, pro, business
|
|
@@ -54,7 +58,7 @@ export type CreateRequest = {
|
|
|
54
58
|
* - `seedream` - Use `seedream-v4` instead.
|
|
55
59
|
*
|
|
56
60
|
*/
|
|
57
|
-
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
61
|
+
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
58
62
|
/**
|
|
59
63
|
* Give your image a custom name for easy identification.
|
|
60
64
|
*/
|
|
@@ -81,6 +85,7 @@ export type CreateRequest = {
|
|
|
81
85
|
* - `z-image-turbo` - 640px, 1k, 2k
|
|
82
86
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
83
87
|
* - `nano-banana` - 640px, 1k
|
|
88
|
+
* - `nano-banana-2-lite` - 640px, 1k
|
|
84
89
|
* - `nano-banana-2` - 640px, 1k, 2k, 4k
|
|
85
90
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
86
91
|
* - `gpt-image-2` - 640px, 1k, 2k, 4k
|
|
@@ -101,7 +106,7 @@ export type CreateRequest = {
|
|
|
101
106
|
export type External$CreateRequest = {
|
|
102
107
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
103
108
|
image_count: number;
|
|
104
|
-
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
109
|
+
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
105
110
|
name?: string | undefined;
|
|
106
111
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
107
112
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
@@ -52,6 +52,7 @@ const SchemaIn$CreateRequest = z
|
|
|
52
52
|
"gpt-image-2",
|
|
53
53
|
"nano-banana",
|
|
54
54
|
"nano-banana-2",
|
|
55
|
+
"nano-banana-2-lite",
|
|
55
56
|
"nano-banana-pro",
|
|
56
57
|
"seedream",
|
|
57
58
|
"seedream-v4",
|
|
@@ -90,6 +91,7 @@ const SchemaOut$CreateRequest = z
|
|
|
90
91
|
"gpt-image-2",
|
|
91
92
|
"nano-banana",
|
|
92
93
|
"nano-banana-2",
|
|
94
|
+
"nano-banana-2-lite",
|
|
93
95
|
"nano-banana-pro",
|
|
94
96
|
"seedream",
|
|
95
97
|
"seedream-v4",
|
|
@@ -20,9 +20,9 @@ export type CreateRequest = {
|
|
|
20
20
|
*/
|
|
21
21
|
scaleFactor: number;
|
|
22
22
|
/**
|
|
23
|
-
* Style settings for the upscale. Use `mode`
|
|
23
|
+
* Style settings for the upscale. Use `mode` (`"preserve"`, `"balanced"`, or `"creative"`). Defaults to `"balanced"`.
|
|
24
24
|
*/
|
|
25
|
-
style
|
|
25
|
+
style?: V1AiImageUpscalerCreateBodyStyle | undefined;
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* @internal
|
|
@@ -33,7 +33,7 @@ export type External$CreateRequest = {
|
|
|
33
33
|
assets: External$V1AiImageUpscalerCreateBodyAssets;
|
|
34
34
|
name?: string | undefined;
|
|
35
35
|
scale_factor: number;
|
|
36
|
-
style
|
|
36
|
+
style?: External$V1AiImageUpscalerCreateBodyStyle | undefined;
|
|
37
37
|
};
|
|
38
38
|
export declare const Schemas$CreateRequest: {
|
|
39
39
|
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
@@ -46,7 +46,7 @@ const SchemaIn$CreateRequest = z
|
|
|
46
46
|
assets: v1_ai_image_upscaler_create_body_assets_1.Schemas$V1AiImageUpscalerCreateBodyAssets.in,
|
|
47
47
|
name: z.string().optional(),
|
|
48
48
|
scale_factor: z.number(),
|
|
49
|
-
style: v1_ai_image_upscaler_create_body_style_1.Schemas$V1AiImageUpscalerCreateBodyStyle.in,
|
|
49
|
+
style: v1_ai_image_upscaler_create_body_style_1.Schemas$V1AiImageUpscalerCreateBodyStyle.in.optional(),
|
|
50
50
|
})
|
|
51
51
|
.transform((obj) => {
|
|
52
52
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
@@ -65,7 +65,7 @@ const SchemaOut$CreateRequest = z
|
|
|
65
65
|
assets: v1_ai_image_upscaler_create_body_assets_1.Schemas$V1AiImageUpscalerCreateBodyAssets.out,
|
|
66
66
|
name: z.string().optional(),
|
|
67
67
|
scaleFactor: z.number(),
|
|
68
|
-
style: v1_ai_image_upscaler_create_body_style_1.Schemas$V1AiImageUpscalerCreateBodyStyle.out,
|
|
68
|
+
style: v1_ai_image_upscaler_create_body_style_1.Schemas$V1AiImageUpscalerCreateBodyStyle.out.optional(),
|
|
69
69
|
})
|
|
70
70
|
.transform((obj) => {
|
|
71
71
|
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
@@ -45,7 +45,7 @@ export declare class AiImageUpscalerClient extends CoreResourceClient {
|
|
|
45
45
|
/**
|
|
46
46
|
* AI Image Upscaler
|
|
47
47
|
*
|
|
48
|
-
* Upscale your image using AI. Each 2x upscale costs 50 credits, and 4x upscale costs 200 credits.
|
|
48
|
+
* Upscale your image using AI. Each 2x upscale costs 50 credits for balanced/creative modes, and 25 credits for preserve. 4x upscale costs 200 and 100 credits respectively.
|
|
49
49
|
*
|
|
50
50
|
* POST /v1/ai-image-upscaler
|
|
51
51
|
*/
|
|
@@ -81,7 +81,7 @@ class AiImageUpscalerClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
81
81
|
/**
|
|
82
82
|
* AI Image Upscaler
|
|
83
83
|
*
|
|
84
|
-
* Upscale your image using AI. Each 2x upscale costs 50 credits, and 4x upscale costs 200 credits.
|
|
84
|
+
* Upscale your image using AI. Each 2x upscale costs 50 credits for balanced/creative modes, and 25 credits for preserve. 4x upscale costs 200 and 100 credits respectively.
|
|
85
85
|
*
|
|
86
86
|
* POST /v1/ai-image-upscaler
|
|
87
87
|
*/
|
|
@@ -12,8 +12,8 @@ export declare class UploadUrlsClient extends CoreResourceClient {
|
|
|
12
12
|
*
|
|
13
13
|
* **Valid file extensions per asset type**:
|
|
14
14
|
* - video: mp4, m4v, mov, webm
|
|
15
|
-
* - audio: mp3, wav, aac, flac, webm, m4a, opus, ogg, aiff, amr
|
|
16
|
-
* - image: png, jpg, jpeg, heic, heif, webp, avif, jp2, tiff, bmp
|
|
15
|
+
* - audio: mp3, wav, aac, flac, webm, weba, m4a, opus, ogg, oga, aiff, amr
|
|
16
|
+
* - image: png, jpg, jpeg, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp
|
|
17
17
|
* - gif: gif, webp, webm
|
|
18
18
|
*
|
|
19
19
|
* > Note: `gif` is only supported for face swap API `video_file_path` field.
|
|
@@ -17,8 +17,8 @@ class UploadUrlsClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
17
17
|
*
|
|
18
18
|
* **Valid file extensions per asset type**:
|
|
19
19
|
* - video: mp4, m4v, mov, webm
|
|
20
|
-
* - audio: mp3, wav, aac, flac, webm, m4a, opus, ogg, aiff, amr
|
|
21
|
-
* - image: png, jpg, jpeg, heic, heif, webp, avif, jp2, tiff, bmp
|
|
20
|
+
* - audio: mp3, wav, aac, flac, webm, weba, m4a, opus, ogg, oga, aiff, amr
|
|
21
|
+
* - image: png, jpg, jpeg, jfif, heic, heif, webp, avif, jp2, tiff, tif, bmp
|
|
22
22
|
* - gif: gif, webp, webm
|
|
23
23
|
*
|
|
24
24
|
* > Note: `gif` is only supported for face swap API `video_file_path` field.
|
|
@@ -19,7 +19,8 @@ export type CreateRequest = {
|
|
|
19
19
|
* * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
|
|
20
20
|
* * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
|
|
21
21
|
* * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
|
|
22
|
-
* * **`seedance`**:
|
|
22
|
+
* * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled
|
|
23
|
+
* * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
|
|
23
24
|
* * **`seedance-2.0`**: Toggle-able: no additional credits for audio
|
|
24
25
|
* * **`sora-2`**: Toggle-able: no additional credits for audio
|
|
25
26
|
*
|
|
@@ -34,7 +35,8 @@ export type CreateRequest = {
|
|
|
34
35
|
* * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
35
36
|
* * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56
|
|
36
37
|
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
37
|
-
* * **`seedance`**: 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
38
|
+
* * **`seedance-1.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
39
|
+
* * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
38
40
|
* * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
39
41
|
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
40
42
|
*
|
|
@@ -50,19 +52,20 @@ export type CreateRequest = {
|
|
|
50
52
|
* The AI model to use for video generation.
|
|
51
53
|
*
|
|
52
54
|
* * `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`:
|
|
54
|
-
* * `wan-2.2`:
|
|
55
|
-
* * `kling-2.5`:
|
|
56
|
-
* * `kling-3.0`:
|
|
57
|
-
* * `veo3.1-lite`:
|
|
58
|
-
* * `veo3.1`:
|
|
59
|
-
* * `seedance`:
|
|
60
|
-
* * `seedance-2.0`:
|
|
61
|
-
* * `
|
|
55
|
+
* * `ltx-2.3`: Fastest output. Best for rapid iteration.
|
|
56
|
+
* * `wan-2.2`: Strong physics, camera moves, and motion.
|
|
57
|
+
* * `kling-2.5`: Great for action, motion blur, and camera moves.
|
|
58
|
+
* * `kling-3.0`: Best overall quality for cinematic storytelling.
|
|
59
|
+
* * `veo3.1-lite`: Veo quality at a more accessible cost.
|
|
60
|
+
* * `veo3.1`: Google's model. Highest realism and detail.
|
|
61
|
+
* * `seedance-1.5`: Smooth, consistent motion with precision.
|
|
62
|
+
* * `seedance-2.0-mini`: Fast, consistent video with strong motion quality
|
|
63
|
+
* * `seedance-2.0`: Top quality with reference-to-video control.
|
|
64
|
+
* * `sora-2`: Open AI's model. Great for creativity and viral clips.
|
|
62
65
|
*
|
|
63
66
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
64
67
|
*/
|
|
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;
|
|
68
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
66
69
|
/**
|
|
67
70
|
* Give your video a custom name for easy identification.
|
|
68
71
|
*/
|
|
@@ -76,7 +79,8 @@ export type CreateRequest = {
|
|
|
76
79
|
* * **`kling-3.0`**: Supports 720p, 1080p, 4k.
|
|
77
80
|
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
78
81
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
79
|
-
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
82
|
+
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
83
|
+
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
80
84
|
* * **`seedance-2.0`**: Supports 480p, 720p.
|
|
81
85
|
* * **`sora-2`**: Supports 720p.
|
|
82
86
|
*
|
|
@@ -103,7 +107,7 @@ export type External$CreateRequest = {
|
|
|
103
107
|
audio?: boolean | undefined;
|
|
104
108
|
end_seconds: number;
|
|
105
109
|
height?: number | null | 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;
|
|
110
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
107
111
|
name?: string | undefined;
|
|
108
112
|
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
|
|
109
113
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
@@ -57,7 +57,9 @@ const SchemaIn$CreateRequest = z
|
|
|
57
57
|
"ltx-2",
|
|
58
58
|
"ltx-2.3",
|
|
59
59
|
"seedance",
|
|
60
|
+
"seedance-1.5",
|
|
60
61
|
"seedance-2.0",
|
|
62
|
+
"seedance-2.0-mini",
|
|
61
63
|
"sora-2",
|
|
62
64
|
"veo3.1",
|
|
63
65
|
"veo3.1-audio",
|
|
@@ -103,7 +105,9 @@ const SchemaOut$CreateRequest = z
|
|
|
103
105
|
"ltx-2",
|
|
104
106
|
"ltx-2.3",
|
|
105
107
|
"seedance",
|
|
108
|
+
"seedance-1.5",
|
|
106
109
|
"seedance-2.0",
|
|
110
|
+
"seedance-2.0-mini",
|
|
107
111
|
"sora-2",
|
|
108
112
|
"veo3.1",
|
|
109
113
|
"veo3.1-audio",
|
|
@@ -13,7 +13,8 @@ export type CreateRequest = {
|
|
|
13
13
|
* * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
|
|
14
14
|
* * **`veo3.1-lite`**: Supports 9:16, 16:9.
|
|
15
15
|
* * **`veo3.1`**: Supports 9:16, 16:9.
|
|
16
|
-
* * **`seedance`**: Supports 9:16, 16:9, 1:1.
|
|
16
|
+
* * **`seedance-1.5`**: Supports 9:16, 16:9, 1:1.
|
|
17
|
+
* * **`seedance-2.0-mini`**: Supports 9:16, 16:9, 1:1.
|
|
17
18
|
* * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
|
|
18
19
|
* * **`sora-2`**: Supports 9:16, 16:9.
|
|
19
20
|
*
|
|
@@ -29,7 +30,8 @@ export type CreateRequest = {
|
|
|
29
30
|
* * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
|
|
30
31
|
* * **`veo3.1-lite`**: Toggle-able: audio adds extra credits when enabled
|
|
31
32
|
* * **`veo3.1`**: Toggle-able: audio adds extra credits when enabled
|
|
32
|
-
* * **`seedance`**:
|
|
33
|
+
* * **`seedance-1.5`**: Toggle-able: audio adds extra credits when enabled
|
|
34
|
+
* * **`seedance-2.0-mini`**: Toggle-able: no additional credits for audio
|
|
33
35
|
* * **`seedance-2.0`**: Toggle-able: no additional credits for audio
|
|
34
36
|
* * **`sora-2`**: Toggle-able: no additional credits for audio
|
|
35
37
|
*
|
|
@@ -44,7 +46,8 @@ export type CreateRequest = {
|
|
|
44
46
|
* * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
45
47
|
* * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56
|
|
46
48
|
* * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
|
|
47
|
-
* * **`seedance`**: 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
49
|
+
* * **`seedance-1.5`**: 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
50
|
+
* * **`seedance-2.0-mini`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
48
51
|
* * **`seedance-2.0`**: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
49
52
|
* * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
|
|
50
53
|
*
|
|
@@ -54,19 +57,20 @@ export type CreateRequest = {
|
|
|
54
57
|
* The AI model to use for video generation.
|
|
55
58
|
*
|
|
56
59
|
* * `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`:
|
|
58
|
-
* * `wan-2.2`:
|
|
59
|
-
* * `kling-2.5`:
|
|
60
|
-
* * `kling-3.0`:
|
|
61
|
-
* * `veo3.1-lite`:
|
|
62
|
-
* * `veo3.1`:
|
|
63
|
-
* * `seedance`:
|
|
64
|
-
* * `seedance-2.0`:
|
|
65
|
-
* * `
|
|
60
|
+
* * `ltx-2.3`: Fastest output. Best for rapid iteration.
|
|
61
|
+
* * `wan-2.2`: Strong physics, camera moves, and motion.
|
|
62
|
+
* * `kling-2.5`: Great for action, motion blur, and camera moves.
|
|
63
|
+
* * `kling-3.0`: Best overall quality for cinematic storytelling.
|
|
64
|
+
* * `veo3.1-lite`: Veo quality at a more accessible cost.
|
|
65
|
+
* * `veo3.1`: Google's model. Highest realism and detail.
|
|
66
|
+
* * `seedance-1.5`: Smooth, consistent motion with precision.
|
|
67
|
+
* * `seedance-2.0-mini`: Fast, consistent video with strong motion quality
|
|
68
|
+
* * `seedance-2.0`: Top quality with reference-to-video control.
|
|
69
|
+
* * `sora-2`: Open AI's model. Great for creativity and viral clips.
|
|
66
70
|
*
|
|
67
71
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
68
72
|
*/
|
|
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;
|
|
73
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
70
74
|
/**
|
|
71
75
|
* Give your video a custom name for easy identification.
|
|
72
76
|
*/
|
|
@@ -84,7 +88,8 @@ export type CreateRequest = {
|
|
|
84
88
|
* * **`kling-3.0`**: Supports 720p, 1080p, 4k.
|
|
85
89
|
* * **`veo3.1-lite`**: Supports 720p, 1080p.
|
|
86
90
|
* * **`veo3.1`**: Supports 720p, 1080p.
|
|
87
|
-
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
91
|
+
* * **`seedance-1.5`**: Supports 480p, 720p, 1080p.
|
|
92
|
+
* * **`seedance-2.0-mini`**: Supports 480p, 720p.
|
|
88
93
|
* * **`seedance-2.0`**: Supports 480p, 720p.
|
|
89
94
|
* * **`sora-2`**: Supports 720p.
|
|
90
95
|
*
|
|
@@ -101,7 +106,7 @@ export type External$CreateRequest = {
|
|
|
101
106
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
102
107
|
audio?: boolean | undefined;
|
|
103
108
|
end_seconds: number;
|
|
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;
|
|
109
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "ltx-2.3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-mini" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2") | undefined;
|
|
105
110
|
name?: string | undefined;
|
|
106
111
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
107
112
|
resolution?: ("1080p" | "480p" | "4k" | "720p") | undefined;
|
|
@@ -55,7 +55,9 @@ const SchemaIn$CreateRequest = z
|
|
|
55
55
|
"ltx-2",
|
|
56
56
|
"ltx-2.3",
|
|
57
57
|
"seedance",
|
|
58
|
+
"seedance-1.5",
|
|
58
59
|
"seedance-2.0",
|
|
60
|
+
"seedance-2.0-mini",
|
|
59
61
|
"sora-2",
|
|
60
62
|
"veo3.1",
|
|
61
63
|
"veo3.1-audio",
|
|
@@ -99,7 +101,9 @@ const SchemaOut$CreateRequest = z
|
|
|
99
101
|
"ltx-2",
|
|
100
102
|
"ltx-2.3",
|
|
101
103
|
"seedance",
|
|
104
|
+
"seedance-1.5",
|
|
102
105
|
"seedance-2.0",
|
|
106
|
+
"seedance-2.0-mini",
|
|
103
107
|
"sora-2",
|
|
104
108
|
"veo3.1",
|
|
105
109
|
"veo3.1-audio",
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
20
20
|
* - Available for tiers: creator, pro, business
|
|
21
21
|
* - Max additional input images: 9
|
|
22
|
+
* - `nano-banana-2-lite` - from 50 credits/image
|
|
23
|
+
* - Supported resolutions: 640px, 1k
|
|
24
|
+
* - Available for tiers: creator, pro, business
|
|
25
|
+
* - Max additional input images: 9
|
|
22
26
|
* - `seedream-v4` - from 40 credits/image
|
|
23
27
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
24
28
|
* - Available for tiers: creator, pro, business
|
|
@@ -37,4 +41,4 @@
|
|
|
37
41
|
* - Max additional input images: 9
|
|
38
42
|
*
|
|
39
43
|
*/
|
|
40
|
-
export type V1AiImageEditorCreateBodyModelEnum = "default" | "flux-2-klein" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5";
|
|
44
|
+
export type V1AiImageEditorCreateBodyModelEnum = "default" | "flux-2-klein" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5";
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* - `flux-2-klein` - 640px, 1k, 2k
|
|
14
14
|
* - `nano-banana` - 640px, 1k
|
|
15
15
|
* - `nano-banana-2` - 640px, 1k, 2k, 4k
|
|
16
|
+
* - `nano-banana-2-lite` - 640px, 1k
|
|
16
17
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
17
18
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
18
19
|
* - `seedream-v4.5` - 640px, 1k, 2k, 4k
|
|
@@ -38,6 +38,10 @@ export type V1AiImageEditorCreateBody = {
|
|
|
38
38
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
39
39
|
* - Available for tiers: creator, pro, business
|
|
40
40
|
* - Max additional input images: 9
|
|
41
|
+
* - `nano-banana-2-lite` - from 50 credits/image
|
|
42
|
+
* - Supported resolutions: 640px, 1k
|
|
43
|
+
* - Available for tiers: creator, pro, business
|
|
44
|
+
* - Max additional input images: 9
|
|
41
45
|
* - `seedream-v4` - from 40 credits/image
|
|
42
46
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
43
47
|
* - Available for tiers: creator, pro, business
|
|
@@ -56,7 +60,7 @@ export type V1AiImageEditorCreateBody = {
|
|
|
56
60
|
* - Max additional input images: 9
|
|
57
61
|
*
|
|
58
62
|
*/
|
|
59
|
-
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
63
|
+
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
60
64
|
/**
|
|
61
65
|
* Give your image a custom name for easy identification.
|
|
62
66
|
*/
|
|
@@ -76,6 +80,7 @@ export type V1AiImageEditorCreateBody = {
|
|
|
76
80
|
* - `flux-2-klein` - 640px, 1k, 2k
|
|
77
81
|
* - `nano-banana` - 640px, 1k
|
|
78
82
|
* - `nano-banana-2` - 640px, 1k, 2k, 4k
|
|
83
|
+
* - `nano-banana-2-lite` - 640px, 1k
|
|
79
84
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
80
85
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
81
86
|
* - `seedream-v4.5` - 640px, 1k, 2k, 4k
|
|
@@ -95,7 +100,7 @@ export type External$V1AiImageEditorCreateBody = {
|
|
|
95
100
|
aspect_ratio?: ("16:9" | "1:1" | "2:3" | "3:2" | "4:3" | "4:5" | "9:16" | "auto") | undefined;
|
|
96
101
|
assets: External$V1AiImageEditorCreateBodyAssets;
|
|
97
102
|
image_count?: number | undefined;
|
|
98
|
-
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
103
|
+
model?: ("default" | "flux-2-klein" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
99
104
|
name?: string | undefined;
|
|
100
105
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
101
106
|
style: External$V1AiImageEditorCreateBodyStyle;
|
|
@@ -55,6 +55,7 @@ const SchemaIn$V1AiImageEditorCreateBody = z
|
|
|
55
55
|
"gpt-image-2",
|
|
56
56
|
"nano-banana",
|
|
57
57
|
"nano-banana-2",
|
|
58
|
+
"nano-banana-2-lite",
|
|
58
59
|
"nano-banana-pro",
|
|
59
60
|
"qwen-edit",
|
|
60
61
|
"seedream-v4",
|
|
@@ -94,6 +95,7 @@ const SchemaOut$V1AiImageEditorCreateBody = z
|
|
|
94
95
|
"gpt-image-2",
|
|
95
96
|
"nano-banana",
|
|
96
97
|
"nano-banana-2",
|
|
98
|
+
"nano-banana-2-lite",
|
|
97
99
|
"nano-banana-pro",
|
|
98
100
|
"qwen-edit",
|
|
99
101
|
"seedream-v4",
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
* - Supported resolutions: 640px, 1k
|
|
24
24
|
* - Available for tiers: creator, pro, business
|
|
25
25
|
* - Image count allowed: 1, 2, 3, 4
|
|
26
|
+
* - `nano-banana-2-lite` - from 50 credits/image
|
|
27
|
+
* - Supported resolutions: 640px, 1k
|
|
28
|
+
* - Available for tiers: creator, pro, business
|
|
29
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
26
30
|
* - `nano-banana-2` - from 100 credits/image
|
|
27
31
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
28
32
|
* - Available for tiers: creator, pro, business
|
|
@@ -40,4 +44,4 @@
|
|
|
40
44
|
* - `seedream` - Use `seedream-v4` instead.
|
|
41
45
|
*
|
|
42
46
|
*/
|
|
43
|
-
export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo";
|
|
47
|
+
export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo";
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* - `z-image-turbo` - 640px, 1k, 2k
|
|
15
15
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
16
16
|
* - `nano-banana` - 640px, 1k
|
|
17
|
+
* - `nano-banana-2-lite` - 640px, 1k
|
|
17
18
|
* - `nano-banana-2` - 640px, 1k, 2k, 4k
|
|
18
19
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
19
20
|
* - `gpt-image-2` - 640px, 1k, 2k, 4k
|
|
@@ -37,6 +37,10 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
37
37
|
* - Supported resolutions: 640px, 1k
|
|
38
38
|
* - Available for tiers: creator, pro, business
|
|
39
39
|
* - Image count allowed: 1, 2, 3, 4
|
|
40
|
+
* - `nano-banana-2-lite` - from 50 credits/image
|
|
41
|
+
* - Supported resolutions: 640px, 1k
|
|
42
|
+
* - Available for tiers: creator, pro, business
|
|
43
|
+
* - Image count allowed: 1, 2, 3, 4
|
|
40
44
|
* - `nano-banana-2` - from 100 credits/image
|
|
41
45
|
* - Supported resolutions: 640px, 1k, 2k, 4k
|
|
42
46
|
* - Available for tiers: creator, pro, business
|
|
@@ -54,7 +58,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
54
58
|
* - `seedream` - Use `seedream-v4` instead.
|
|
55
59
|
*
|
|
56
60
|
*/
|
|
57
|
-
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
61
|
+
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
58
62
|
/**
|
|
59
63
|
* Give your image a custom name for easy identification.
|
|
60
64
|
*/
|
|
@@ -81,6 +85,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
81
85
|
* - `z-image-turbo` - 640px, 1k, 2k
|
|
82
86
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
83
87
|
* - `nano-banana` - 640px, 1k
|
|
88
|
+
* - `nano-banana-2-lite` - 640px, 1k
|
|
84
89
|
* - `nano-banana-2` - 640px, 1k, 2k, 4k
|
|
85
90
|
* - `nano-banana-pro` - 1k, 2k, 4k
|
|
86
91
|
* - `gpt-image-2` - 640px, 1k, 2k, 4k
|
|
@@ -101,7 +106,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
101
106
|
export type External$V1AiImageGeneratorCreateBody = {
|
|
102
107
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
103
108
|
image_count: number;
|
|
104
|
-
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
109
|
+
model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
105
110
|
name?: string | undefined;
|
|
106
111
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
107
112
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
@@ -52,6 +52,7 @@ const SchemaIn$V1AiImageGeneratorCreateBody = z
|
|
|
52
52
|
"gpt-image-2",
|
|
53
53
|
"nano-banana",
|
|
54
54
|
"nano-banana-2",
|
|
55
|
+
"nano-banana-2-lite",
|
|
55
56
|
"nano-banana-pro",
|
|
56
57
|
"seedream",
|
|
57
58
|
"seedream-v4",
|
|
@@ -90,6 +91,7 @@ const SchemaOut$V1AiImageGeneratorCreateBody = z
|
|
|
90
91
|
"gpt-image-2",
|
|
91
92
|
"nano-banana",
|
|
92
93
|
"nano-banana-2",
|
|
94
|
+
"nano-banana-2-lite",
|
|
93
95
|
"nano-banana-pro",
|
|
94
96
|
"seedream",
|
|
95
97
|
"seedream-v4",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Deprecated: use `mode` instead. `"Resemblance"` maps to `"preserve"`. `"Balanced"` and `"Creative"` map to the same-named modes.
|
|
3
3
|
*/
|
|
4
4
|
export type V1AiImageUpscalerCreateBodyStyleEnhancementEnum = "Balanced" | "Creative" | "Resemblance";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The upscaling mode. `"
|
|
2
|
+
* The upscaling mode. `"preserve"` uses the fast pro pipeline (1× credit multiplier). `"balanced"` and `"creative"` use the creative pipeline (2× credit multiplier). `"pro"` is deprecated and maps to `"preserve"`. Defaults to `"balanced"`.
|
|
3
3
|
*/
|
|
4
|
-
export type V1AiImageUpscalerCreateBodyStyleModeEnum = "creative" | "pro";
|
|
4
|
+
export type V1AiImageUpscalerCreateBodyStyleModeEnum = "balanced" | "creative" | "preserve" | "pro";
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
/**
|
|
3
|
-
* Style settings for the upscale. Use `mode`
|
|
3
|
+
* Style settings for the upscale. Use `mode` (`"preserve"`, `"balanced"`, or `"creative"`). Defaults to `"balanced"`.
|
|
4
4
|
*/
|
|
5
5
|
export type V1AiImageUpscalerCreateBodyStyle = {
|
|
6
|
+
/**
|
|
7
|
+
* Deprecated: use `mode` instead. `"Resemblance"` maps to `"preserve"`. `"Balanced"` and `"Creative"` map to the same-named modes.
|
|
8
|
+
*/
|
|
6
9
|
enhancement?: ("Balanced" | "Creative" | "Resemblance") | undefined;
|
|
7
10
|
/**
|
|
8
|
-
* The upscaling mode. `"
|
|
11
|
+
* The upscaling mode. `"preserve"` uses the fast pro pipeline (1× credit multiplier). `"balanced"` and `"creative"` use the creative pipeline (2× credit multiplier). `"pro"` is deprecated and maps to `"preserve"`. Defaults to `"balanced"`.
|
|
9
12
|
*/
|
|
10
|
-
mode?: ("creative" | "pro") | undefined;
|
|
13
|
+
mode?: ("balanced" | "creative" | "preserve" | "pro") | undefined;
|
|
11
14
|
/**
|
|
12
|
-
* A prompt to guide the final image.
|
|
15
|
+
* A prompt to guide the final image. Only used when mode is `creative`.
|
|
13
16
|
*/
|
|
14
17
|
prompt?: string | undefined;
|
|
15
18
|
};
|
|
@@ -20,7 +23,7 @@ export type V1AiImageUpscalerCreateBodyStyle = {
|
|
|
20
23
|
*/
|
|
21
24
|
export type External$V1AiImageUpscalerCreateBodyStyle = {
|
|
22
25
|
enhancement?: ("Balanced" | "Creative" | "Resemblance") | undefined;
|
|
23
|
-
mode?: ("creative" | "pro") | undefined;
|
|
26
|
+
mode?: ("balanced" | "creative" | "preserve" | "pro") | undefined;
|
|
24
27
|
prompt?: string | undefined;
|
|
25
28
|
};
|
|
26
29
|
export declare const Schemas$V1AiImageUpscalerCreateBodyStyle: {
|