magic-hour 0.76.0 → 0.77.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.
@@ -1,4 +1,4 @@
1
1
  export declare enum Environment {
2
2
  Environment = "https://api.magichour.ai",
3
- MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.80.0"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.81.0"
4
4
  }
@@ -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.80.0";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.81.0";
8
8
  })(Environment || (exports.Environment = Environment = {}));
@@ -34,6 +34,10 @@ export type CreateRequest = {
34
34
  * - Supported resolutions: 640px, 1k, 2k, 4k
35
35
  * - Available for tiers: creator, pro, business
36
36
  * - Max additional input images: 9
37
+ * - `krea-2` - from 10 credits/image
38
+ * - Supported resolutions: 640px, 1k
39
+ * - Available for tiers: free, creator, pro, business
40
+ * - Max additional input images: 1
37
41
  * - `nano-banana` - from 50 credits/image
38
42
  * - Supported resolutions: 640px, 1k
39
43
  * - Available for tiers: creator, pro, business
@@ -68,7 +72,7 @@ export type CreateRequest = {
68
72
  * - Max additional input images: 9
69
73
  *
70
74
  */
71
- model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
75
+ model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
72
76
  /**
73
77
  * Give your image a custom name for easy identification.
74
78
  */
@@ -87,6 +91,7 @@ export type CreateRequest = {
87
91
  * - `flux-2-klein` - 640px, 1k, 2k
88
92
  * - `gpt-image-2` - 640px, 1k, 2k, 4k
89
93
  * - `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
94
+ * - `krea-2` - 640px, 1k
90
95
  * - `nano-banana` - 640px, 1k
91
96
  * - `nano-banana-2` - 640px, 1k, 2k, 4k
92
97
  * - `nano-banana-2-lite` - 640px, 1k
@@ -110,7 +115,7 @@ export type External$CreateRequest = {
110
115
  aspect_ratio?: ("16:9" | "1:1" | "2:3" | "3:2" | "4:3" | "4:5" | "9:16" | "auto") | undefined;
111
116
  assets: External$V1AiImageEditorCreateBodyAssets;
112
117
  image_count?: number | undefined;
113
- model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
118
+ model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
114
119
  name?: string | undefined;
115
120
  resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
116
121
  style: External$V1AiImageEditorCreateBodyStyle;
@@ -54,6 +54,7 @@ const SchemaIn$CreateRequest = z
54
54
  "flux-2-klein",
55
55
  "gpt-image-2",
56
56
  "gpt-image-2.5-flare",
57
+ "krea-2",
57
58
  "nano-banana",
58
59
  "nano-banana-2",
59
60
  "nano-banana-2-lite",
@@ -96,6 +97,7 @@ const SchemaOut$CreateRequest = z
96
97
  "flux-2-klein",
97
98
  "gpt-image-2",
98
99
  "gpt-image-2.5-flare",
100
+ "krea-2",
99
101
  "nano-banana",
100
102
  "nano-banana-2",
101
103
  "nano-banana-2-lite",
@@ -33,6 +33,10 @@ export type CreateRequest = {
33
33
  * - Supported resolutions: 640px, 1k, 2k, 4k
34
34
  * - Available for tiers: creator, pro, business
35
35
  * - Image count allowed: 1, 2, 3, 4
36
+ * - `krea-2` - from 10 credits/image
37
+ * - Supported resolutions: 640px, 1k
38
+ * - Available for tiers: free, creator, pro, business
39
+ * - Image count allowed: 1
36
40
  * - `nano-banana` - from 50 credits/image
37
41
  * - Supported resolutions: 640px, 1k
38
42
  * - Available for tiers: creator, pro, business
@@ -66,7 +70,7 @@ export type CreateRequest = {
66
70
  * - `seedream` - Use `seedream-v4` instead.
67
71
  *
68
72
  */
69
- model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
73
+ model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
70
74
  /**
71
75
  * Give your image a custom name for easy identification.
72
76
  */
@@ -92,6 +96,7 @@ export type CreateRequest = {
92
96
  * - `flux-schnell` - 640px, 1k, 2k
93
97
  * - `gpt-image-2` - 640px, 1k, 2k, 4k
94
98
  * - `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
99
+ * - `krea-2` - 640px, 1k
95
100
  * - `nano-banana` - 640px, 1k
96
101
  * - `nano-banana-2` - 640px, 1k, 2k, 4k
97
102
  * - `nano-banana-2-lite` - 640px, 1k
@@ -116,7 +121,7 @@ export type CreateRequest = {
116
121
  export type External$CreateRequest = {
117
122
  aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
118
123
  image_count: number;
119
- model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
124
+ model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
120
125
  name?: string | undefined;
121
126
  orientation?: ("landscape" | "portrait" | "square") | undefined;
122
127
  resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
@@ -51,6 +51,7 @@ const SchemaIn$CreateRequest = z
51
51
  "flux-schnell",
52
52
  "gpt-image-2",
53
53
  "gpt-image-2.5-flare",
54
+ "krea-2",
54
55
  "nano-banana",
55
56
  "nano-banana-2",
56
57
  "nano-banana-2-lite",
@@ -92,6 +93,7 @@ const SchemaOut$CreateRequest = z
92
93
  "flux-schnell",
93
94
  "gpt-image-2",
94
95
  "gpt-image-2.5-flare",
96
+ "krea-2",
95
97
  "nano-banana",
96
98
  "nano-banana-2",
97
99
  "nano-banana-2-lite",
@@ -15,6 +15,10 @@
15
15
  * - Supported resolutions: 640px, 1k, 2k, 4k
16
16
  * - Available for tiers: creator, pro, business
17
17
  * - Max additional input images: 9
18
+ * - `krea-2` - from 10 credits/image
19
+ * - Supported resolutions: 640px, 1k
20
+ * - Available for tiers: free, creator, pro, business
21
+ * - Max additional input images: 1
18
22
  * - `nano-banana` - from 50 credits/image
19
23
  * - Supported resolutions: 640px, 1k
20
24
  * - Available for tiers: creator, pro, business
@@ -49,4 +53,4 @@
49
53
  * - Max additional input images: 9
50
54
  *
51
55
  */
52
- export type V1AiImageEditorCreateBodyModelEnum = "default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro";
56
+ export type V1AiImageEditorCreateBodyModelEnum = "default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro";
@@ -12,6 +12,7 @@
12
12
  * - `flux-2-klein` - 640px, 1k, 2k
13
13
  * - `gpt-image-2` - 640px, 1k, 2k, 4k
14
14
  * - `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
15
+ * - `krea-2` - 640px, 1k
15
16
  * - `nano-banana` - 640px, 1k
16
17
  * - `nano-banana-2` - 640px, 1k, 2k, 4k
17
18
  * - `nano-banana-2-lite` - 640px, 1k
@@ -34,6 +34,10 @@ export type V1AiImageEditorCreateBody = {
34
34
  * - Supported resolutions: 640px, 1k, 2k, 4k
35
35
  * - Available for tiers: creator, pro, business
36
36
  * - Max additional input images: 9
37
+ * - `krea-2` - from 10 credits/image
38
+ * - Supported resolutions: 640px, 1k
39
+ * - Available for tiers: free, creator, pro, business
40
+ * - Max additional input images: 1
37
41
  * - `nano-banana` - from 50 credits/image
38
42
  * - Supported resolutions: 640px, 1k
39
43
  * - Available for tiers: creator, pro, business
@@ -68,7 +72,7 @@ export type V1AiImageEditorCreateBody = {
68
72
  * - Max additional input images: 9
69
73
  *
70
74
  */
71
- model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
75
+ model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
72
76
  /**
73
77
  * Give your image a custom name for easy identification.
74
78
  */
@@ -87,6 +91,7 @@ export type V1AiImageEditorCreateBody = {
87
91
  * - `flux-2-klein` - 640px, 1k, 2k
88
92
  * - `gpt-image-2` - 640px, 1k, 2k, 4k
89
93
  * - `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
94
+ * - `krea-2` - 640px, 1k
90
95
  * - `nano-banana` - 640px, 1k
91
96
  * - `nano-banana-2` - 640px, 1k, 2k, 4k
92
97
  * - `nano-banana-2-lite` - 640px, 1k
@@ -110,7 +115,7 @@ export type External$V1AiImageEditorCreateBody = {
110
115
  aspect_ratio?: ("16:9" | "1:1" | "2:3" | "3:2" | "4:3" | "4:5" | "9:16" | "auto") | undefined;
111
116
  assets: External$V1AiImageEditorCreateBodyAssets;
112
117
  image_count?: number | undefined;
113
- model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
118
+ model?: ("default" | "flux-2-klein" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5" | "seedream-v5-pro") | undefined;
114
119
  name?: string | undefined;
115
120
  resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
116
121
  style: External$V1AiImageEditorCreateBodyStyle;
@@ -54,6 +54,7 @@ const SchemaIn$V1AiImageEditorCreateBody = z
54
54
  "flux-2-klein",
55
55
  "gpt-image-2",
56
56
  "gpt-image-2.5-flare",
57
+ "krea-2",
57
58
  "nano-banana",
58
59
  "nano-banana-2",
59
60
  "nano-banana-2-lite",
@@ -96,6 +97,7 @@ const SchemaOut$V1AiImageEditorCreateBody = z
96
97
  "flux-2-klein",
97
98
  "gpt-image-2",
98
99
  "gpt-image-2.5-flare",
100
+ "krea-2",
99
101
  "nano-banana",
100
102
  "nano-banana-2",
101
103
  "nano-banana-2-lite",
@@ -19,6 +19,10 @@
19
19
  * - Supported resolutions: 640px, 1k, 2k, 4k
20
20
  * - Available for tiers: creator, pro, business
21
21
  * - Image count allowed: 1, 2, 3, 4
22
+ * - `krea-2` - from 10 credits/image
23
+ * - Supported resolutions: 640px, 1k
24
+ * - Available for tiers: free, creator, pro, business
25
+ * - Image count allowed: 1
22
26
  * - `nano-banana` - from 50 credits/image
23
27
  * - Supported resolutions: 640px, 1k
24
28
  * - Available for tiers: creator, pro, business
@@ -52,4 +56,4 @@
52
56
  * - `seedream` - Use `seedream-v4` instead.
53
57
  *
54
58
  */
55
- export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo";
59
+ export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo";
@@ -13,6 +13,7 @@
13
13
  * - `flux-schnell` - 640px, 1k, 2k
14
14
  * - `gpt-image-2` - 640px, 1k, 2k, 4k
15
15
  * - `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
16
+ * - `krea-2` - 640px, 1k
16
17
  * - `nano-banana` - 640px, 1k
17
18
  * - `nano-banana-2` - 640px, 1k, 2k, 4k
18
19
  * - `nano-banana-2-lite` - 640px, 1k
@@ -33,6 +33,10 @@ export type V1AiImageGeneratorCreateBody = {
33
33
  * - Supported resolutions: 640px, 1k, 2k, 4k
34
34
  * - Available for tiers: creator, pro, business
35
35
  * - Image count allowed: 1, 2, 3, 4
36
+ * - `krea-2` - from 10 credits/image
37
+ * - Supported resolutions: 640px, 1k
38
+ * - Available for tiers: free, creator, pro, business
39
+ * - Image count allowed: 1
36
40
  * - `nano-banana` - from 50 credits/image
37
41
  * - Supported resolutions: 640px, 1k
38
42
  * - Available for tiers: creator, pro, business
@@ -66,7 +70,7 @@ export type V1AiImageGeneratorCreateBody = {
66
70
  * - `seedream` - Use `seedream-v4` instead.
67
71
  *
68
72
  */
69
- model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
73
+ model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
70
74
  /**
71
75
  * Give your image a custom name for easy identification.
72
76
  */
@@ -92,6 +96,7 @@ export type V1AiImageGeneratorCreateBody = {
92
96
  * - `flux-schnell` - 640px, 1k, 2k
93
97
  * - `gpt-image-2` - 640px, 1k, 2k, 4k
94
98
  * - `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
99
+ * - `krea-2` - 640px, 1k
95
100
  * - `nano-banana` - 640px, 1k
96
101
  * - `nano-banana-2` - 640px, 1k, 2k, 4k
97
102
  * - `nano-banana-2-lite` - 640px, 1k
@@ -116,7 +121,7 @@ export type V1AiImageGeneratorCreateBody = {
116
121
  export type External$V1AiImageGeneratorCreateBody = {
117
122
  aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
118
123
  image_count: number;
119
- model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
124
+ model?: ("default" | "flux-2-klein" | "flux-schnell" | "gpt-image-2" | "gpt-image-2.5-flare" | "krea-2" | "nano-banana" | "nano-banana-2" | "nano-banana-2-lite" | "nano-banana-pro" | "seedream" | "seedream-v4" | "seedream-v5-pro" | "z-image-turbo") | undefined;
120
125
  name?: string | undefined;
121
126
  orientation?: ("landscape" | "portrait" | "square") | undefined;
122
127
  resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
@@ -51,6 +51,7 @@ const SchemaIn$V1AiImageGeneratorCreateBody = z
51
51
  "flux-schnell",
52
52
  "gpt-image-2",
53
53
  "gpt-image-2.5-flare",
54
+ "krea-2",
54
55
  "nano-banana",
55
56
  "nano-banana-2",
56
57
  "nano-banana-2-lite",
@@ -92,6 +93,7 @@ const SchemaOut$V1AiImageGeneratorCreateBody = z
92
93
  "flux-schnell",
93
94
  "gpt-image-2",
94
95
  "gpt-image-2.5-flare",
96
+ "krea-2",
95
97
  "nano-banana",
96
98
  "nano-banana-2",
97
99
  "nano-banana-2-lite",
@@ -43,7 +43,7 @@ export type V1AudioProjectsGetResponse = {
43
43
  */
44
44
  status: "canceled" | "complete" | "draft" | "error" | "queued" | "rendering";
45
45
  /**
46
- * The type of the audio project. Possible values are VOICE_GENERATOR, VOICE_CHANGER, VOICE_CLONER, VIDEO_TO_AUDIO, MUSIC_GENERATOR
46
+ * The type of the audio project. Possible values are AUDIO_TRANSLATOR, VOICE_GENERATOR, VOICE_CHANGER, VOICE_CLONER, VIDEO_TO_AUDIO, MUSIC_GENERATOR
47
47
  */
48
48
  type: string;
49
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.76.0",
3
+ "version": "0.77.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {