magic-hour 0.58.0 → 0.60.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.
Files changed (33) hide show
  1. package/dist/environment.d.ts +1 -1
  2. package/dist/environment.js +1 -1
  3. package/dist/resources/v1/ai-image-editor/request-types.d.ts +29 -19
  4. package/dist/resources/v1/ai-image-editor/request-types.js +2 -2
  5. package/dist/resources/v1/ai-image-generator/request-types.d.ts +34 -21
  6. package/dist/resources/v1/ai-image-generator/request-types.js +4 -2
  7. package/dist/resources/v1/image-to-video/request-types.d.ts +19 -11
  8. package/dist/resources/v1/image-to-video/request-types.js +4 -0
  9. package/dist/resources/v1/text-to-video/request-types.d.ts +21 -11
  10. package/dist/resources/v1/text-to-video/request-types.js +4 -0
  11. package/dist/types/v1-ai-image-editor-create-body-model-enum.d.ts +12 -12
  12. package/dist/types/v1-ai-image-editor-create-body-resolution-enum.d.ts +16 -6
  13. package/dist/types/v1-ai-image-editor-create-body.d.ts +29 -19
  14. package/dist/types/v1-ai-image-editor-create-body.js +2 -2
  15. package/dist/types/v1-ai-image-generator-create-body-model-enum.d.ts +16 -13
  16. package/dist/types/v1-ai-image-generator-create-body-resolution-enum.d.ts +16 -6
  17. package/dist/types/v1-ai-image-generator-create-body-style-quality-mode-enum.d.ts +1 -1
  18. package/dist/types/v1-ai-image-generator-create-body-style.d.ts +1 -1
  19. package/dist/types/v1-ai-image-generator-create-body.d.ts +34 -21
  20. package/dist/types/v1-ai-image-generator-create-body.js +4 -2
  21. package/dist/types/v1-image-projects-get-response.d.ts +1 -1
  22. package/dist/types/v1-image-to-video-create-body-assets.d.ts +2 -0
  23. package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +11 -9
  24. package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +2 -0
  25. package/dist/types/v1-image-to-video-create-body.d.ts +19 -11
  26. package/dist/types/v1-image-to-video-create-body.js +4 -0
  27. package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +2 -0
  28. package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +11 -9
  29. package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +2 -0
  30. package/dist/types/v1-text-to-video-create-body.d.ts +21 -11
  31. package/dist/types/v1-text-to-video-create-body.js +4 -0
  32. package/dist/types/v1-video-projects-get-response.d.ts +1 -1
  33. package/package.json +1 -1
@@ -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.59.0"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.61.1"
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.59.0";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.61.1";
8
8
  })(Environment || (exports.Environment = Environment = {}));
@@ -22,29 +22,29 @@ export type CreateRequest = {
22
22
  *
23
23
  * **Models:**
24
24
  * - `default` - Use the model we recommend, which will change over time. This is recommended unless you need a specific model. This is the default behavior.
25
- * - `qwen-edit` - 10 credits/image
25
+ * - `qwen-edit` - from 10 credits/image
26
+ * - Supported resolutions: 640px, 1k, 2k
26
27
  * - Available for tiers: free, creator, pro, business
27
- * - Image count allowed: 1
28
28
  * - Max additional input images: 2
29
- * - `nano-banana` - 50 credits/image
29
+ * - `nano-banana` - from 50 credits/image
30
+ * - Supported resolutions: 640px, 1k
30
31
  * - Available for tiers: free, creator, pro, business
31
- * - Image count allowed: 1
32
32
  * - Max additional input images: 9
33
- * - `nano-banana-2` - 100 credits/image
33
+ * - `nano-banana-2` - from 100 credits/image
34
+ * - Supported resolutions: 640px, 1k, 2k, 4k
34
35
  * - Available for tiers: free, creator, pro, business
35
- * - Image count allowed: 1
36
36
  * - Max additional input images: 9
37
- * - `seedream-v4` - 50 credits/image
37
+ * - `seedream-v4` - from 40 credits/image
38
+ * - Supported resolutions: 640px, 1k, 2k, 4k
38
39
  * - Available for tiers: free, creator, pro, business
39
- * - Image count allowed: 1
40
40
  * - Max additional input images: 9
41
- * - `nano-banana-pro` - 150 credits/image
41
+ * - `nano-banana-pro` - from 150 credits/image
42
+ * - Supported resolutions: 1k, 2k, 4k
42
43
  * - Available for tiers: creator, pro, business
43
- * - Image count allowed: 1, 4, 9, 16
44
44
  * - Max additional input images: 9
45
- * - `seedream-v4.5` - 100 credits/image
45
+ * - `seedream-v4.5` - from 50 credits/image
46
+ * - Supported resolutions: 640px, 1k, 2k, 4k
46
47
  * - Available for tiers: creator, pro, business
47
- * - Image count allowed: 1
48
48
  * - Max additional input images: 9
49
49
  *
50
50
  */
@@ -54,16 +54,26 @@ export type CreateRequest = {
54
54
  */
55
55
  name?: string | undefined;
56
56
  /**
57
- * Maximum resolution for the generated image.
57
+ * Maximum resolution (longest edge) for the output image.
58
58
  *
59
59
  * **Options:**
60
- * - `auto` - Automatic resolution (all tiers, default)
61
- * - `2k` - Up to 2048px (requires Pro or Business tier)
62
- * - `4k` - Up to 4096px (requires Business tier)
60
+ * - `640px` — up to 640px
61
+ * - `1k` — up to 1024px
62
+ * - `2k` — up to 2048px
63
+ * - `4k` — up to 4096px
64
+ * - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports
63
65
  *
64
- * Note: Resolution availability depends on your subscription tier. Defaults to `auto` if not specified.
66
+ * **Per-model support:**
67
+ * - `qwen-edit` - 640px, 1k, 2k
68
+ * - `nano-banana` - 640px, 1k
69
+ * - `nano-banana-2` - 640px, 1k, 2k, 4k
70
+ * - `seedream-v4` - 640px, 1k, 2k, 4k
71
+ * - `nano-banana-pro` - 1k, 2k, 4k
72
+ * - `seedream-v4.5` - 640px, 1k, 2k, 4k
73
+ *
74
+ * Note: Resolution availability depends on the model and your subscription tier.
65
75
  */
66
- resolution?: ("2k" | "4k" | "auto") | undefined;
76
+ resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
67
77
  style: V1AiImageEditorCreateBodyStyle;
68
78
  };
69
79
  /**
@@ -77,7 +87,7 @@ export type External$CreateRequest = {
77
87
  image_count?: number | undefined;
78
88
  model?: ("default" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
79
89
  name?: string | undefined;
80
- resolution?: ("2k" | "4k" | "auto") | undefined;
90
+ resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
81
91
  style: External$V1AiImageEditorCreateBodyStyle;
82
92
  };
83
93
  export declare const Schemas$CreateRequest: {
@@ -60,7 +60,7 @@ const SchemaIn$CreateRequest = z
60
60
  ])
61
61
  .optional(),
62
62
  name: z.string().optional(),
63
- resolution: z.enum(["2k", "4k", "auto"]).optional(),
63
+ resolution: z.enum(["1k", "2k", "4k", "640px", "auto"]).optional(),
64
64
  style: v1_ai_image_editor_create_body_style_1.Schemas$V1AiImageEditorCreateBodyStyle.in,
65
65
  })
66
66
  .transform((obj) => {
@@ -97,7 +97,7 @@ const SchemaOut$CreateRequest = z
97
97
  ])
98
98
  .optional(),
99
99
  name: z.string().optional(),
100
- resolution: z.enum(["2k", "4k", "auto"]).optional(),
100
+ resolution: z.enum(["1k", "2k", "4k", "640px", "auto"]).optional(),
101
101
  style: v1_ai_image_editor_create_body_style_1.Schemas$V1AiImageEditorCreateBodyStyle.out,
102
102
  })
103
103
  .transform((obj) => {
@@ -17,33 +17,36 @@ export type CreateRequest = {
17
17
  *
18
18
  * **Models:**
19
19
  * - `default` - Use the model we recommend, which will change over time. This is recommended unless you need a specific model. This is the default behavior.
20
- * - `flux-schnell` - 5 credits/image
21
- * - Supported resolutions: auto
20
+ * - `flux-schnell` - from 5 credits/image
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
- * - `z-image-turbo` - 5 credits/image
25
- * - Supported resolutions: auto, 2k
24
+ * - `z-image-turbo` - from 5 credits/image
25
+ * - Supported resolutions: 640px, 1k, 2k
26
26
  * - Available for tiers: free, creator, pro, business
27
27
  * - Image count allowed: 1, 2, 3, 4
28
- * - `seedream` - 30 credits/image
29
- * - Supported resolutions: auto, 2k, 4k
28
+ * - `seedream-v4` - from 40 credits/image
29
+ * - Supported resolutions: 640px, 1k, 2k, 4k
30
30
  * - Available for tiers: free, creator, pro, business
31
31
  * - Image count allowed: 1, 2, 3, 4
32
- * - `nano-banana` - 50 credits/image
33
- * - Supported resolutions: auto
32
+ * - `nano-banana` - from 50 credits/image
33
+ * - Supported resolutions: 640px, 1k
34
34
  * - Available for tiers: free, creator, pro, business
35
35
  * - Image count allowed: 1, 2, 3, 4
36
- * - `nano-banana-2` - 100 credits/image
37
- * - Supported resolutions: auto, 2k, 4k
36
+ * - `nano-banana-2` - from 100 credits/image
37
+ * - Supported resolutions: 640px, 1k, 2k, 4k
38
38
  * - Available for tiers: free, creator, pro, business
39
39
  * - Image count allowed: 1, 2, 3, 4
40
- * - `nano-banana-pro` - 150 credits/image
41
- * - Supported resolutions: auto, 2k, 4k
40
+ * - `nano-banana-pro` - from 150 credits/image
41
+ * - Supported resolutions: 1k, 2k, 4k
42
42
  * - Available for tiers: creator, pro, business
43
43
  * - Image count allowed: 1, 4, 9, 16
44
44
  *
45
+ * **Deprecated Enum Values:**
46
+ * - `seedream` - Use `seedream-v4` instead.
47
+ *
45
48
  */
46
- model?: ("default" | "flux-schnell" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "z-image-turbo") | undefined;
49
+ model?: ("default" | "flux-schnell" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
47
50
  /**
48
51
  * Give your image a custom name for easy identification.
49
52
  */
@@ -55,16 +58,26 @@ export type CreateRequest = {
55
58
  */
56
59
  orientation?: ("landscape" | "portrait" | "square") | undefined;
57
60
  /**
58
- * Maximum resolution for the generated image.
61
+ * Maximum resolution (longest edge) for the output image.
59
62
  *
60
63
  * **Options:**
61
- * - `auto` - Automatic resolution (all tiers, default)
62
- * - `2k` - Up to 2048px (requires Pro or Business tier)
63
- * - `4k` - Up to 4096px (requires Business tier)
64
+ * - `640px` — up to 640px
65
+ * - `1k` — up to 1024px
66
+ * - `2k` — up to 2048px
67
+ * - `4k` — up to 4096px
68
+ * - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports
69
+ *
70
+ * **Per-model support:**
71
+ * - `flux-schnell` - 640px, 1k, 2k
72
+ * - `z-image-turbo` - 640px, 1k, 2k
73
+ * - `seedream-v4` - 640px, 1k, 2k, 4k
74
+ * - `nano-banana` - 640px, 1k
75
+ * - `nano-banana-2` - 640px, 1k, 2k, 4k
76
+ * - `nano-banana-pro` - 1k, 2k, 4k
64
77
  *
65
- * Note: Resolution availability depends on the model and your subscription tier. See `model` field for which resolutions each model supports. Defaults to `auto` if not specified.
78
+ * Note: Resolution availability depends on the model and your subscription tier.
66
79
  */
67
- resolution?: ("2k" | "4k" | "auto") | undefined;
80
+ resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
68
81
  /**
69
82
  * The art style to use for image generation.
70
83
  */
@@ -78,10 +91,10 @@ export type CreateRequest = {
78
91
  export type External$CreateRequest = {
79
92
  aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
80
93
  image_count: number;
81
- model?: ("default" | "flux-schnell" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "z-image-turbo") | undefined;
94
+ model?: ("default" | "flux-schnell" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo") | undefined;
82
95
  name?: string | undefined;
83
96
  orientation?: ("landscape" | "portrait" | "square") | undefined;
84
- resolution?: ("2k" | "4k" | "auto") | undefined;
97
+ resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
85
98
  style: External$V1AiImageGeneratorCreateBodyStyle;
86
99
  };
87
100
  export declare const Schemas$CreateRequest: {
@@ -52,12 +52,13 @@ const SchemaIn$CreateRequest = z
52
52
  "nano-banana-2",
53
53
  "nano-banana-pro",
54
54
  "seedream",
55
+ "seedream-v4",
55
56
  "z-image-turbo",
56
57
  ])
57
58
  .optional(),
58
59
  name: z.string().optional(),
59
60
  orientation: z.enum(["landscape", "portrait", "square"]).optional(),
60
- resolution: z.enum(["2k", "4k", "auto"]).optional(),
61
+ resolution: z.enum(["1k", "2k", "4k", "640px", "auto"]).optional(),
61
62
  style: v1_ai_image_generator_create_body_style_1.Schemas$V1AiImageGeneratorCreateBodyStyle.in,
62
63
  })
63
64
  .transform((obj) => {
@@ -87,12 +88,13 @@ const SchemaOut$CreateRequest = z
87
88
  "nano-banana-2",
88
89
  "nano-banana-pro",
89
90
  "seedream",
91
+ "seedream-v4",
90
92
  "z-image-turbo",
91
93
  ])
92
94
  .optional(),
93
95
  name: z.string().optional(),
94
96
  orientation: z.enum(["landscape", "portrait", "square"]).optional(),
95
- resolution: z.enum(["2k", "4k", "auto"]).optional(),
97
+ resolution: z.enum(["1k", "2k", "4k", "640px", "auto"]).optional(),
96
98
  style: v1_ai_image_generator_create_body_style_1.Schemas$V1AiImageGeneratorCreateBodyStyle.out,
97
99
  })
98
100
  .transform((obj) => {
@@ -16,10 +16,12 @@ export type CreateRequest = {
16
16
  * * **`ltx-2`**: Automatically included with no extra credits
17
17
  * * **`wan-2.2`**: Not supported
18
18
  * * **`seedance`**: Not supported
19
+ * * **`seedance-2.0`**: Not supported
19
20
  * * **`kling-2.5`**: Automatically included with no extra credits
20
21
  * * **`kling-3.0`**: Toggle-able (can enable/disable)
21
22
  * * **`sora-2`**: Automatically included with no extra credits
22
23
  * * **`veo3.1`**: Toggle-able (can enable/disable)
24
+ * * **`veo3.1-lite`**: Toggle-able (can enable/disable)
23
25
  *
24
26
  * Legacy models:
25
27
  * * **`kling-1.6`**: Not supported
@@ -28,13 +30,15 @@ export type CreateRequest = {
28
30
  /**
29
31
  * The total duration of the output video in seconds. Supported durations depend on the chosen model:
30
32
  *
31
- * * **`ltx-2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
33
+ * * **`ltx-2`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
32
34
  * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
33
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
34
37
  * * **`kling-2.5`**: 5, 10
35
38
  * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
36
39
  * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
37
40
  * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
41
+ * * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56
38
42
  *
39
43
  * Legacy models:
40
44
  * * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
@@ -50,20 +54,22 @@ export type CreateRequest = {
50
54
  * The AI model to use for video generation.
51
55
  *
52
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`.
53
- * * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
54
- * * `wan-2.2`: Fast, medium-quality model with strong visuals and effect support.
55
- * * `seedance`: Great for fast iteration and start/end frame
56
- * * `kling-2.5`: Great for motion, action, and camera control
57
- * * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
58
- * * `sora-2`: Great for story-telling, dialogue & creativity
59
- * * `veo3.1`: Great for realism, polish, & prompt adherence
57
+ * * `ltx-2`: Fast iteration with audio and lip-sync
58
+ * * `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
+ * * `kling-2.5`: Motion, action, and camera control
62
+ * * `kling-3.0`: Cinematic, multi-scene storytelling
63
+ * * `sora-2`: Story-first concepts and creativity
64
+ * * `veo3.1`: Realistic visuals and prompt adherence
65
+ * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation.
60
66
  *
61
67
  * Legacy models:
62
- * * `kling-1.6`: Great for dependable clips with smooth motion
68
+ * * `kling-1.6`: Reliable baseline with smooth motion
63
69
  *
64
70
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
65
71
  */
66
- model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio" | "wan-2.2") | undefined;
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;
67
73
  /**
68
74
  * Give your video a custom name for easy identification.
69
75
  */
@@ -74,10 +80,12 @@ export type CreateRequest = {
74
80
  * * **`ltx-2`**: Supports 480p, 720p, 1080p.
75
81
  * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
76
82
  * * **`seedance`**: Supports 480p, 720p, 1080p.
83
+ * * **`seedance-2.0`**: Supports 480p, 720p.
77
84
  * * **`kling-2.5`**: Supports 720p, 1080p.
78
85
  * * **`kling-3.0`**: Supports 720p, 1080p.
79
86
  * * **`sora-2`**: Supports 720p.
80
87
  * * **`veo3.1`**: Supports 720p, 1080p.
88
+ * * **`veo3.1-lite`**: Supports 720p, 1080p.
81
89
  *
82
90
  * Legacy models:
83
91
  * * **`kling-1.6`**: Supports 720p, 1080p.
@@ -104,7 +112,7 @@ export type External$CreateRequest = {
104
112
  audio?: boolean | undefined;
105
113
  end_seconds: number;
106
114
  height?: number | null | undefined;
107
- model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio" | "wan-2.2") | 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;
108
116
  name?: string | undefined;
109
117
  resolution?: ("1080p" | "480p" | "720p") | undefined;
110
118
  style?: External$V1ImageToVideoCreateBodyStyle | undefined;
@@ -56,9 +56,11 @@ const SchemaIn$CreateRequest = z
56
56
  "kling-3.0",
57
57
  "ltx-2",
58
58
  "seedance",
59
+ "seedance-2.0",
59
60
  "sora-2",
60
61
  "veo3.1",
61
62
  "veo3.1-audio",
63
+ "veo3.1-lite",
62
64
  "wan-2.2",
63
65
  ])
64
66
  .optional(),
@@ -99,9 +101,11 @@ const SchemaOut$CreateRequest = z
99
101
  "kling-3.0",
100
102
  "ltx-2",
101
103
  "seedance",
104
+ "seedance-2.0",
102
105
  "sora-2",
103
106
  "veo3.1",
104
107
  "veo3.1-audio",
108
+ "veo3.1-lite",
105
109
  "wan-2.2",
106
110
  ])
107
111
  .optional(),
@@ -10,10 +10,12 @@ export type CreateRequest = {
10
10
  * * **`ltx-2`**: Supports 9:16, 16:9, 1:1.
11
11
  * * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
12
12
  * * **`seedance`**: Supports 9:16, 16:9, 1:1.
13
+ * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
13
14
  * * **`kling-2.5`**: Supports 9:16, 16:9, 1:1.
14
15
  * * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
15
16
  * * **`sora-2`**: Supports 9:16, 16:9.
16
17
  * * **`veo3.1`**: Supports 9:16, 16:9.
18
+ * * **`veo3.1-lite`**: Supports 9:16, 16:9.
17
19
  *
18
20
  * Legacy models:
19
21
  * * **`kling-1.6`**: Supports 9:16, 16:9, 1:1.
@@ -26,10 +28,12 @@ export type CreateRequest = {
26
28
  * * **`ltx-2`**: Automatically included with no extra credits
27
29
  * * **`wan-2.2`**: Not supported
28
30
  * * **`seedance`**: Not supported
31
+ * * **`seedance-2.0`**: Not supported
29
32
  * * **`kling-2.5`**: Automatically included with no extra credits
30
33
  * * **`kling-3.0`**: Toggle-able (can enable/disable)
31
34
  * * **`sora-2`**: Automatically included with no extra credits
32
35
  * * **`veo3.1`**: Toggle-able (can enable/disable)
36
+ * * **`veo3.1-lite`**: Toggle-able (can enable/disable)
33
37
  *
34
38
  * Legacy models:
35
39
  * * **`kling-1.6`**: Not supported
@@ -38,13 +42,15 @@ export type CreateRequest = {
38
42
  /**
39
43
  * The total duration of the output video in seconds. Supported durations depend on the chosen model:
40
44
  *
41
- * * **`ltx-2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
45
+ * * **`ltx-2`**: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
42
46
  * * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
43
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
44
49
  * * **`kling-2.5`**: 5, 10
45
50
  * * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
46
51
  * * **`sora-2`**: 4, 8, 12, 24, 36, 48, 60
47
52
  * * **`veo3.1`**: 4, 6, 8, 16, 24, 32, 40, 48, 56
53
+ * * **`veo3.1-lite`**: 8, 16, 24, 32, 40, 48, 56
48
54
  *
49
55
  * Legacy models:
50
56
  * * **`kling-1.6`**: 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60
@@ -54,20 +60,22 @@ export type CreateRequest = {
54
60
  * The AI model to use for video generation.
55
61
  *
56
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`.
57
- * * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
58
- * * `wan-2.2`: Fast, medium-quality model with strong visuals and effect support.
59
- * * `seedance`: Great for fast iteration and start/end frame
60
- * * `kling-2.5`: Great for motion, action, and camera control
61
- * * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
62
- * * `sora-2`: Great for story-telling, dialogue & creativity
63
- * * `veo3.1`: Great for realism, polish, & prompt adherence
63
+ * * `ltx-2`: Fast iteration with audio and lip-sync
64
+ * * `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
+ * * `kling-2.5`: Motion, action, and camera control
68
+ * * `kling-3.0`: Cinematic, multi-scene storytelling
69
+ * * `sora-2`: Story-first concepts and creativity
70
+ * * `veo3.1`: Realistic visuals and prompt adherence
71
+ * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation.
64
72
  *
65
73
  * Legacy models:
66
- * * `kling-1.6`: Great for dependable clips with smooth motion
74
+ * * `kling-1.6`: Reliable baseline with smooth motion
67
75
  *
68
76
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
69
77
  */
70
- model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio" | "wan-2.2") | undefined;
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;
71
79
  /**
72
80
  * Give your video a custom name for easy identification.
73
81
  */
@@ -82,10 +90,12 @@ export type CreateRequest = {
82
90
  * * **`ltx-2`**: Supports 480p, 720p, 1080p.
83
91
  * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
84
92
  * * **`seedance`**: Supports 480p, 720p, 1080p.
93
+ * * **`seedance-2.0`**: Supports 480p, 720p.
85
94
  * * **`kling-2.5`**: Supports 720p, 1080p.
86
95
  * * **`kling-3.0`**: Supports 720p, 1080p.
87
96
  * * **`sora-2`**: Supports 720p.
88
97
  * * **`veo3.1`**: Supports 720p, 1080p.
98
+ * * **`veo3.1-lite`**: Supports 720p, 1080p.
89
99
  *
90
100
  * Legacy models:
91
101
  * * **`kling-1.6`**: Supports 720p, 1080p.
@@ -102,7 +112,7 @@ export type External$CreateRequest = {
102
112
  aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
103
113
  audio?: boolean | undefined;
104
114
  end_seconds: number;
105
- model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio" | "wan-2.2") | 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
116
  name?: string | undefined;
107
117
  orientation?: ("landscape" | "portrait" | "square") | undefined;
108
118
  resolution?: ("1080p" | "480p" | "720p") | undefined;
@@ -54,9 +54,11 @@ const SchemaIn$CreateRequest = z
54
54
  "kling-3.0",
55
55
  "ltx-2",
56
56
  "seedance",
57
+ "seedance-2.0",
57
58
  "sora-2",
58
59
  "veo3.1",
59
60
  "veo3.1-audio",
61
+ "veo3.1-lite",
60
62
  "wan-2.2",
61
63
  ])
62
64
  .optional(),
@@ -95,9 +97,11 @@ const SchemaOut$CreateRequest = z
95
97
  "kling-3.0",
96
98
  "ltx-2",
97
99
  "seedance",
100
+ "seedance-2.0",
98
101
  "sora-2",
99
102
  "veo3.1",
100
103
  "veo3.1-audio",
104
+ "veo3.1-lite",
101
105
  "wan-2.2",
102
106
  ])
103
107
  .optional(),
@@ -3,29 +3,29 @@
3
3
  *
4
4
  * **Models:**
5
5
  * - `default` - Use the model we recommend, which will change over time. This is recommended unless you need a specific model. This is the default behavior.
6
- * - `qwen-edit` - 10 credits/image
6
+ * - `qwen-edit` - from 10 credits/image
7
+ * - Supported resolutions: 640px, 1k, 2k
7
8
  * - Available for tiers: free, creator, pro, business
8
- * - Image count allowed: 1
9
9
  * - Max additional input images: 2
10
- * - `nano-banana` - 50 credits/image
10
+ * - `nano-banana` - from 50 credits/image
11
+ * - Supported resolutions: 640px, 1k
11
12
  * - Available for tiers: free, creator, pro, business
12
- * - Image count allowed: 1
13
13
  * - Max additional input images: 9
14
- * - `nano-banana-2` - 100 credits/image
14
+ * - `nano-banana-2` - from 100 credits/image
15
+ * - Supported resolutions: 640px, 1k, 2k, 4k
15
16
  * - Available for tiers: free, creator, pro, business
16
- * - Image count allowed: 1
17
17
  * - Max additional input images: 9
18
- * - `seedream-v4` - 50 credits/image
18
+ * - `seedream-v4` - from 40 credits/image
19
+ * - Supported resolutions: 640px, 1k, 2k, 4k
19
20
  * - Available for tiers: free, creator, pro, business
20
- * - Image count allowed: 1
21
21
  * - Max additional input images: 9
22
- * - `nano-banana-pro` - 150 credits/image
22
+ * - `nano-banana-pro` - from 150 credits/image
23
+ * - Supported resolutions: 1k, 2k, 4k
23
24
  * - Available for tiers: creator, pro, business
24
- * - Image count allowed: 1, 4, 9, 16
25
25
  * - Max additional input images: 9
26
- * - `seedream-v4.5` - 100 credits/image
26
+ * - `seedream-v4.5` - from 50 credits/image
27
+ * - Supported resolutions: 640px, 1k, 2k, 4k
27
28
  * - Available for tiers: creator, pro, business
28
- * - Image count allowed: 1
29
29
  * - Max additional input images: 9
30
30
  *
31
31
  */
@@ -1,11 +1,21 @@
1
1
  /**
2
- * Maximum resolution for the generated image.
2
+ * Maximum resolution (longest edge) for the output image.
3
3
  *
4
4
  * **Options:**
5
- * - `auto` - Automatic resolution (all tiers, default)
6
- * - `2k` - Up to 2048px (requires Pro or Business tier)
7
- * - `4k` - Up to 4096px (requires Business tier)
5
+ * - `640px` — up to 640px
6
+ * - `1k` — up to 1024px
7
+ * - `2k` — up to 2048px
8
+ * - `4k` — up to 4096px
9
+ * - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports
8
10
  *
9
- * Note: Resolution availability depends on your subscription tier. Defaults to `auto` if not specified.
11
+ * **Per-model support:**
12
+ * - `qwen-edit` - 640px, 1k, 2k
13
+ * - `nano-banana` - 640px, 1k
14
+ * - `nano-banana-2` - 640px, 1k, 2k, 4k
15
+ * - `seedream-v4` - 640px, 1k, 2k, 4k
16
+ * - `nano-banana-pro` - 1k, 2k, 4k
17
+ * - `seedream-v4.5` - 640px, 1k, 2k, 4k
18
+ *
19
+ * Note: Resolution availability depends on the model and your subscription tier.
10
20
  */
11
- export type V1AiImageEditorCreateBodyResolutionEnum = "2k" | "4k" | "auto";
21
+ export type V1AiImageEditorCreateBodyResolutionEnum = "1k" | "2k" | "4k" | "640px" | "auto";
@@ -22,29 +22,29 @@ export type V1AiImageEditorCreateBody = {
22
22
  *
23
23
  * **Models:**
24
24
  * - `default` - Use the model we recommend, which will change over time. This is recommended unless you need a specific model. This is the default behavior.
25
- * - `qwen-edit` - 10 credits/image
25
+ * - `qwen-edit` - from 10 credits/image
26
+ * - Supported resolutions: 640px, 1k, 2k
26
27
  * - Available for tiers: free, creator, pro, business
27
- * - Image count allowed: 1
28
28
  * - Max additional input images: 2
29
- * - `nano-banana` - 50 credits/image
29
+ * - `nano-banana` - from 50 credits/image
30
+ * - Supported resolutions: 640px, 1k
30
31
  * - Available for tiers: free, creator, pro, business
31
- * - Image count allowed: 1
32
32
  * - Max additional input images: 9
33
- * - `nano-banana-2` - 100 credits/image
33
+ * - `nano-banana-2` - from 100 credits/image
34
+ * - Supported resolutions: 640px, 1k, 2k, 4k
34
35
  * - Available for tiers: free, creator, pro, business
35
- * - Image count allowed: 1
36
36
  * - Max additional input images: 9
37
- * - `seedream-v4` - 50 credits/image
37
+ * - `seedream-v4` - from 40 credits/image
38
+ * - Supported resolutions: 640px, 1k, 2k, 4k
38
39
  * - Available for tiers: free, creator, pro, business
39
- * - Image count allowed: 1
40
40
  * - Max additional input images: 9
41
- * - `nano-banana-pro` - 150 credits/image
41
+ * - `nano-banana-pro` - from 150 credits/image
42
+ * - Supported resolutions: 1k, 2k, 4k
42
43
  * - Available for tiers: creator, pro, business
43
- * - Image count allowed: 1, 4, 9, 16
44
44
  * - Max additional input images: 9
45
- * - `seedream-v4.5` - 100 credits/image
45
+ * - `seedream-v4.5` - from 50 credits/image
46
+ * - Supported resolutions: 640px, 1k, 2k, 4k
46
47
  * - Available for tiers: creator, pro, business
47
- * - Image count allowed: 1
48
48
  * - Max additional input images: 9
49
49
  *
50
50
  */
@@ -54,16 +54,26 @@ export type V1AiImageEditorCreateBody = {
54
54
  */
55
55
  name?: string | undefined;
56
56
  /**
57
- * Maximum resolution for the generated image.
57
+ * Maximum resolution (longest edge) for the output image.
58
58
  *
59
59
  * **Options:**
60
- * - `auto` - Automatic resolution (all tiers, default)
61
- * - `2k` - Up to 2048px (requires Pro or Business tier)
62
- * - `4k` - Up to 4096px (requires Business tier)
60
+ * - `640px` — up to 640px
61
+ * - `1k` — up to 1024px
62
+ * - `2k` — up to 2048px
63
+ * - `4k` — up to 4096px
64
+ * - `auto` — **Deprecated.** Mapped server-side from your subscription tier to the best matching resolution the model supports
63
65
  *
64
- * Note: Resolution availability depends on your subscription tier. Defaults to `auto` if not specified.
66
+ * **Per-model support:**
67
+ * - `qwen-edit` - 640px, 1k, 2k
68
+ * - `nano-banana` - 640px, 1k
69
+ * - `nano-banana-2` - 640px, 1k, 2k, 4k
70
+ * - `seedream-v4` - 640px, 1k, 2k, 4k
71
+ * - `nano-banana-pro` - 1k, 2k, 4k
72
+ * - `seedream-v4.5` - 640px, 1k, 2k, 4k
73
+ *
74
+ * Note: Resolution availability depends on the model and your subscription tier.
65
75
  */
66
- resolution?: ("2k" | "4k" | "auto") | undefined;
76
+ resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
67
77
  style: V1AiImageEditorCreateBodyStyle;
68
78
  };
69
79
  /**
@@ -77,7 +87,7 @@ export type External$V1AiImageEditorCreateBody = {
77
87
  image_count?: number | undefined;
78
88
  model?: ("default" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "qwen-edit" | "seedream-v4" | "seedream-v4.5") | undefined;
79
89
  name?: string | undefined;
80
- resolution?: ("2k" | "4k" | "auto") | undefined;
90
+ resolution?: ("1k" | "2k" | "4k" | "640px" | "auto") | undefined;
81
91
  style: External$V1AiImageEditorCreateBodyStyle;
82
92
  };
83
93
  export declare const Schemas$V1AiImageEditorCreateBody: {
@@ -60,7 +60,7 @@ const SchemaIn$V1AiImageEditorCreateBody = z
60
60
  ])
61
61
  .optional(),
62
62
  name: z.string().optional(),
63
- resolution: z.enum(["2k", "4k", "auto"]).optional(),
63
+ resolution: z.enum(["1k", "2k", "4k", "640px", "auto"]).optional(),
64
64
  style: v1_ai_image_editor_create_body_style_1.Schemas$V1AiImageEditorCreateBodyStyle.in,
65
65
  })
66
66
  .transform((obj) => {
@@ -97,7 +97,7 @@ const SchemaOut$V1AiImageEditorCreateBody = z
97
97
  ])
98
98
  .optional(),
99
99
  name: z.string().optional(),
100
- resolution: z.enum(["2k", "4k", "auto"]).optional(),
100
+ resolution: z.enum(["1k", "2k", "4k", "640px", "auto"]).optional(),
101
101
  style: v1_ai_image_editor_create_body_style_1.Schemas$V1AiImageEditorCreateBodyStyle.out,
102
102
  })
103
103
  .transform((obj) => {