magic-hour 0.64.1 → 0.65.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/files/upload-urls/resource-client.d.ts +1 -1
- package/dist/resources/v1/files/upload-urls/resource-client.js +1 -1
- 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-files-upload-urls-create-body-items-item.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.66.0";
|
|
8
8
|
})(Environment || (exports.Environment = Environment = {}));
|
|
@@ -26,6 +26,10 @@ export type CreateRequest = {
|
|
|
26
26
|
* - Supported resolutions: 640px, 1k, 2k
|
|
27
27
|
* - Available for tiers: free, creator, pro, business
|
|
28
28
|
* - Max additional input images: 2
|
|
29
|
+
* - `flux-2-klein` - from 5 credits/image
|
|
30
|
+
* - Supported resolutions: 640px, 1k, 2k
|
|
31
|
+
* - Available for tiers: free, creator, pro, business
|
|
32
|
+
* - Max additional input images: 5
|
|
29
33
|
* - `nano-banana` - from 50 credits/image
|
|
30
34
|
* - Supported resolutions: 640px, 1k
|
|
31
35
|
* - Available for tiers: creator, pro, business
|
|
@@ -52,7 +56,7 @@ export type CreateRequest = {
|
|
|
52
56
|
* - Max additional input images: 9
|
|
53
57
|
*
|
|
54
58
|
*/
|
|
55
|
-
model?: ("default" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
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;
|
|
56
60
|
/**
|
|
57
61
|
* Give your image a custom name for easy identification.
|
|
58
62
|
*/
|
|
@@ -69,6 +73,7 @@ export type CreateRequest = {
|
|
|
69
73
|
*
|
|
70
74
|
* **Per-model support:**
|
|
71
75
|
* - `qwen-edit` - 640px, 1k, 2k
|
|
76
|
+
* - `flux-2-klein` - 640px, 1k, 2k
|
|
72
77
|
* - `nano-banana` - 640px, 1k
|
|
73
78
|
* - `nano-banana-2` - 640px, 1k, 2k, 4k
|
|
74
79
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
@@ -90,7 +95,7 @@ export type External$CreateRequest = {
|
|
|
90
95
|
aspect_ratio?: ("16:9" | "1:1" | "2:3" | "3:2" | "4:3" | "4:5" | "9:16" | "auto") | undefined;
|
|
91
96
|
assets: External$V1AiImageEditorCreateBodyAssets;
|
|
92
97
|
image_count?: number | undefined;
|
|
93
|
-
model?: ("default" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | 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;
|
|
94
99
|
name?: string | undefined;
|
|
95
100
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
96
101
|
style: External$V1AiImageEditorCreateBodyStyle;
|
|
@@ -51,6 +51,7 @@ const SchemaIn$CreateRequest = z
|
|
|
51
51
|
model: z
|
|
52
52
|
.enum([
|
|
53
53
|
"default",
|
|
54
|
+
"flux-2-klein",
|
|
54
55
|
"gpt-image-2",
|
|
55
56
|
"nano-banana",
|
|
56
57
|
"nano-banana-2",
|
|
@@ -89,6 +90,7 @@ const SchemaOut$CreateRequest = z
|
|
|
89
90
|
model: z
|
|
90
91
|
.enum([
|
|
91
92
|
"default",
|
|
93
|
+
"flux-2-klein",
|
|
92
94
|
"gpt-image-2",
|
|
93
95
|
"nano-banana",
|
|
94
96
|
"nano-banana-2",
|
|
@@ -21,6 +21,10 @@ export type CreateRequest = {
|
|
|
21
21
|
* - Supported resolutions: 640px, 1k, 2k
|
|
22
22
|
* - Available for tiers: free, creator, pro, business
|
|
23
23
|
* - Image count allowed: 1, 2, 3, 4
|
|
24
|
+
* - `flux-2-klein` - from 5 credits/image
|
|
25
|
+
* - Supported resolutions: 640px, 1k, 2k
|
|
26
|
+
* - Available for tiers: free, creator, pro, business
|
|
27
|
+
* - Image count allowed: 1
|
|
24
28
|
* - `z-image-turbo` - from 5 credits/image
|
|
25
29
|
* - Supported resolutions: 640px, 1k, 2k
|
|
26
30
|
* - Available for tiers: free, creator, pro, business
|
|
@@ -50,7 +54,7 @@ export type CreateRequest = {
|
|
|
50
54
|
* - `seedream` - Use `seedream-v4` instead.
|
|
51
55
|
*
|
|
52
56
|
*/
|
|
53
|
-
model?: ("default" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
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;
|
|
54
58
|
/**
|
|
55
59
|
* Give your image a custom name for easy identification.
|
|
56
60
|
*/
|
|
@@ -73,6 +77,7 @@ export type CreateRequest = {
|
|
|
73
77
|
*
|
|
74
78
|
* **Per-model support:**
|
|
75
79
|
* - `flux-schnell` - 640px, 1k, 2k
|
|
80
|
+
* - `flux-2-klein` - 640px, 1k, 2k
|
|
76
81
|
* - `z-image-turbo` - 640px, 1k, 2k
|
|
77
82
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
78
83
|
* - `nano-banana` - 640px, 1k
|
|
@@ -96,7 +101,7 @@ export type CreateRequest = {
|
|
|
96
101
|
export type External$CreateRequest = {
|
|
97
102
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
98
103
|
image_count: number;
|
|
99
|
-
model?: ("default" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
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;
|
|
100
105
|
name?: string | undefined;
|
|
101
106
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
102
107
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
@@ -47,6 +47,7 @@ const SchemaIn$CreateRequest = z
|
|
|
47
47
|
model: z
|
|
48
48
|
.enum([
|
|
49
49
|
"default",
|
|
50
|
+
"flux-2-klein",
|
|
50
51
|
"flux-schnell",
|
|
51
52
|
"gpt-image-2",
|
|
52
53
|
"nano-banana",
|
|
@@ -84,6 +85,7 @@ const SchemaOut$CreateRequest = z
|
|
|
84
85
|
model: z
|
|
85
86
|
.enum([
|
|
86
87
|
"default",
|
|
88
|
+
"flux-2-klein",
|
|
87
89
|
"flux-schnell",
|
|
88
90
|
"gpt-image-2",
|
|
89
91
|
"nano-banana",
|
|
@@ -12,7 +12,7 @@ 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
|
|
15
|
+
* - audio: mp3, wav, aac, flac, webm, m4a, opus, ogg, aiff, amr
|
|
16
16
|
* - image: png, jpg, jpeg, heic, heif, webp, avif, jp2, tiff, bmp
|
|
17
17
|
* - gif: gif, webp, webm
|
|
18
18
|
*
|
|
@@ -17,7 +17,7 @@ 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
|
|
20
|
+
* - audio: mp3, wav, aac, flac, webm, m4a, opus, ogg, aiff, amr
|
|
21
21
|
* - image: png, jpg, jpeg, heic, heif, webp, avif, jp2, tiff, bmp
|
|
22
22
|
* - gif: gif, webp, webm
|
|
23
23
|
*
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
* - Supported resolutions: 640px, 1k, 2k
|
|
8
8
|
* - Available for tiers: free, creator, pro, business
|
|
9
9
|
* - Max additional input images: 2
|
|
10
|
+
* - `flux-2-klein` - from 5 credits/image
|
|
11
|
+
* - Supported resolutions: 640px, 1k, 2k
|
|
12
|
+
* - Available for tiers: free, creator, pro, business
|
|
13
|
+
* - Max additional input images: 5
|
|
10
14
|
* - `nano-banana` - from 50 credits/image
|
|
11
15
|
* - Supported resolutions: 640px, 1k
|
|
12
16
|
* - Available for tiers: creator, pro, business
|
|
@@ -33,4 +37,4 @@
|
|
|
33
37
|
* - Max additional input images: 9
|
|
34
38
|
*
|
|
35
39
|
*/
|
|
36
|
-
export type V1AiImageEditorCreateBodyModelEnum = "default" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5";
|
|
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";
|
|
@@ -26,6 +26,10 @@ export type V1AiImageEditorCreateBody = {
|
|
|
26
26
|
* - Supported resolutions: 640px, 1k, 2k
|
|
27
27
|
* - Available for tiers: free, creator, pro, business
|
|
28
28
|
* - Max additional input images: 2
|
|
29
|
+
* - `flux-2-klein` - from 5 credits/image
|
|
30
|
+
* - Supported resolutions: 640px, 1k, 2k
|
|
31
|
+
* - Available for tiers: free, creator, pro, business
|
|
32
|
+
* - Max additional input images: 5
|
|
29
33
|
* - `nano-banana` - from 50 credits/image
|
|
30
34
|
* - Supported resolutions: 640px, 1k
|
|
31
35
|
* - Available for tiers: creator, pro, business
|
|
@@ -52,7 +56,7 @@ export type V1AiImageEditorCreateBody = {
|
|
|
52
56
|
* - Max additional input images: 9
|
|
53
57
|
*
|
|
54
58
|
*/
|
|
55
|
-
model?: ("default" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
|
|
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;
|
|
56
60
|
/**
|
|
57
61
|
* Give your image a custom name for easy identification.
|
|
58
62
|
*/
|
|
@@ -69,6 +73,7 @@ export type V1AiImageEditorCreateBody = {
|
|
|
69
73
|
*
|
|
70
74
|
* **Per-model support:**
|
|
71
75
|
* - `qwen-edit` - 640px, 1k, 2k
|
|
76
|
+
* - `flux-2-klein` - 640px, 1k, 2k
|
|
72
77
|
* - `nano-banana` - 640px, 1k
|
|
73
78
|
* - `nano-banana-2` - 640px, 1k, 2k, 4k
|
|
74
79
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
@@ -90,7 +95,7 @@ export type External$V1AiImageEditorCreateBody = {
|
|
|
90
95
|
aspect_ratio?: ("16:9" | "1:1" | "2:3" | "3:2" | "4:3" | "4:5" | "9:16" | "auto") | undefined;
|
|
91
96
|
assets: External$V1AiImageEditorCreateBodyAssets;
|
|
92
97
|
image_count?: number | undefined;
|
|
93
|
-
model?: ("default" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | 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;
|
|
94
99
|
name?: string | undefined;
|
|
95
100
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
96
101
|
style: External$V1AiImageEditorCreateBodyStyle;
|
|
@@ -51,6 +51,7 @@ const SchemaIn$V1AiImageEditorCreateBody = z
|
|
|
51
51
|
model: z
|
|
52
52
|
.enum([
|
|
53
53
|
"default",
|
|
54
|
+
"flux-2-klein",
|
|
54
55
|
"gpt-image-2",
|
|
55
56
|
"nano-banana",
|
|
56
57
|
"nano-banana-2",
|
|
@@ -89,6 +90,7 @@ const SchemaOut$V1AiImageEditorCreateBody = z
|
|
|
89
90
|
model: z
|
|
90
91
|
.enum([
|
|
91
92
|
"default",
|
|
93
|
+
"flux-2-klein",
|
|
92
94
|
"gpt-image-2",
|
|
93
95
|
"nano-banana",
|
|
94
96
|
"nano-banana-2",
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
* - Supported resolutions: 640px, 1k, 2k
|
|
8
8
|
* - Available for tiers: free, creator, pro, business
|
|
9
9
|
* - Image count allowed: 1, 2, 3, 4
|
|
10
|
+
* - `flux-2-klein` - from 5 credits/image
|
|
11
|
+
* - Supported resolutions: 640px, 1k, 2k
|
|
12
|
+
* - Available for tiers: free, creator, pro, business
|
|
13
|
+
* - Image count allowed: 1
|
|
10
14
|
* - `z-image-turbo` - from 5 credits/image
|
|
11
15
|
* - Supported resolutions: 640px, 1k, 2k
|
|
12
16
|
* - Available for tiers: free, creator, pro, business
|
|
@@ -36,4 +40,4 @@
|
|
|
36
40
|
* - `seedream` - Use `seedream-v4` instead.
|
|
37
41
|
*
|
|
38
42
|
*/
|
|
39
|
-
export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo";
|
|
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";
|
|
@@ -21,6 +21,10 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
21
21
|
* - Supported resolutions: 640px, 1k, 2k
|
|
22
22
|
* - Available for tiers: free, creator, pro, business
|
|
23
23
|
* - Image count allowed: 1, 2, 3, 4
|
|
24
|
+
* - `flux-2-klein` - from 5 credits/image
|
|
25
|
+
* - Supported resolutions: 640px, 1k, 2k
|
|
26
|
+
* - Available for tiers: free, creator, pro, business
|
|
27
|
+
* - Image count allowed: 1
|
|
24
28
|
* - `z-image-turbo` - from 5 credits/image
|
|
25
29
|
* - Supported resolutions: 640px, 1k, 2k
|
|
26
30
|
* - Available for tiers: free, creator, pro, business
|
|
@@ -50,7 +54,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
50
54
|
* - `seedream` - Use `seedream-v4` instead.
|
|
51
55
|
*
|
|
52
56
|
*/
|
|
53
|
-
model?: ("default" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
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;
|
|
54
58
|
/**
|
|
55
59
|
* Give your image a custom name for easy identification.
|
|
56
60
|
*/
|
|
@@ -73,6 +77,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
73
77
|
*
|
|
74
78
|
* **Per-model support:**
|
|
75
79
|
* - `flux-schnell` - 640px, 1k, 2k
|
|
80
|
+
* - `flux-2-klein` - 640px, 1k, 2k
|
|
76
81
|
* - `z-image-turbo` - 640px, 1k, 2k
|
|
77
82
|
* - `seedream-v4` - 640px, 1k, 2k, 4k
|
|
78
83
|
* - `nano-banana` - 640px, 1k
|
|
@@ -96,7 +101,7 @@ export type V1AiImageGeneratorCreateBody = {
|
|
|
96
101
|
export type External$V1AiImageGeneratorCreateBody = {
|
|
97
102
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
98
103
|
image_count: number;
|
|
99
|
-
model?: ("default" | "flux-schnell" | "gpt-image-2" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
|
|
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;
|
|
100
105
|
name?: string | undefined;
|
|
101
106
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
102
107
|
resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
|
|
@@ -47,6 +47,7 @@ const SchemaIn$V1AiImageGeneratorCreateBody = z
|
|
|
47
47
|
model: z
|
|
48
48
|
.enum([
|
|
49
49
|
"default",
|
|
50
|
+
"flux-2-klein",
|
|
50
51
|
"flux-schnell",
|
|
51
52
|
"gpt-image-2",
|
|
52
53
|
"nano-banana",
|
|
@@ -84,6 +85,7 @@ const SchemaOut$V1AiImageGeneratorCreateBody = z
|
|
|
84
85
|
model: z
|
|
85
86
|
.enum([
|
|
86
87
|
"default",
|
|
88
|
+
"flux-2-klein",
|
|
87
89
|
"flux-schnell",
|
|
88
90
|
"gpt-image-2",
|
|
89
91
|
"nano-banana",
|
|
@@ -4,7 +4,7 @@ import * as z from "zod";
|
|
|
4
4
|
*/
|
|
5
5
|
export type V1FilesUploadUrlsCreateBodyItemsItem = {
|
|
6
6
|
/**
|
|
7
|
-
* The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,m4a,png,jpg,jpeg,heic,heif,webp,avif,jp2,tiff,bmp,gif,webp,webm
|
|
7
|
+
* The extension of the file to upload. Do not include the dot (.) before the extension. Possible extensions are mp4,m4v,mov,webm,mp3,wav,aac,flac,webm,m4a,opus,ogg,aiff,amr,png,jpg,jpeg,heic,heif,webp,avif,jp2,tiff,bmp,gif,webp,webm
|
|
8
8
|
*/
|
|
9
9
|
extension: string;
|
|
10
10
|
/**
|