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
@@ -3,30 +3,33 @@
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
- * - `flux-schnell` - 5 credits/image
7
- * - Supported resolutions: auto
6
+ * - `flux-schnell` - from 5 credits/image
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
- * - `z-image-turbo` - 5 credits/image
11
- * - Supported resolutions: auto, 2k
10
+ * - `z-image-turbo` - from 5 credits/image
11
+ * - Supported resolutions: 640px, 1k, 2k
12
12
  * - Available for tiers: free, creator, pro, business
13
13
  * - Image count allowed: 1, 2, 3, 4
14
- * - `seedream` - 30 credits/image
15
- * - Supported resolutions: auto, 2k, 4k
14
+ * - `seedream-v4` - from 40 credits/image
15
+ * - Supported resolutions: 640px, 1k, 2k, 4k
16
16
  * - Available for tiers: free, creator, pro, business
17
17
  * - Image count allowed: 1, 2, 3, 4
18
- * - `nano-banana` - 50 credits/image
19
- * - Supported resolutions: auto
18
+ * - `nano-banana` - from 50 credits/image
19
+ * - Supported resolutions: 640px, 1k
20
20
  * - Available for tiers: free, creator, pro, business
21
21
  * - Image count allowed: 1, 2, 3, 4
22
- * - `nano-banana-2` - 100 credits/image
23
- * - Supported resolutions: auto, 2k, 4k
22
+ * - `nano-banana-2` - from 100 credits/image
23
+ * - Supported resolutions: 640px, 1k, 2k, 4k
24
24
  * - Available for tiers: free, creator, pro, business
25
25
  * - Image count allowed: 1, 2, 3, 4
26
- * - `nano-banana-pro` - 150 credits/image
27
- * - Supported resolutions: auto, 2k, 4k
26
+ * - `nano-banana-pro` - from 150 credits/image
27
+ * - Supported resolutions: 1k, 2k, 4k
28
28
  * - Available for tiers: creator, pro, business
29
29
  * - Image count allowed: 1, 4, 9, 16
30
30
  *
31
+ * **Deprecated Enum Values:**
32
+ * - `seedream` - Use `seedream-v4` instead.
33
+ *
31
34
  */
32
- export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-schnell" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "z-image-turbo";
35
+ export type V1AiImageGeneratorCreateBodyModelEnum = "default" | "flux-schnell" | "nano-banana" | "nano-banana-2" | "nano-banana-pro" | "seedream" | "seedream-v4" | "z-image-turbo";
@@ -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 the model and your subscription tier. See `model` field for which resolutions each model supports. Defaults to `auto` if not specified.
11
+ * **Per-model support:**
12
+ * - `flux-schnell` - 640px, 1k, 2k
13
+ * - `z-image-turbo` - 640px, 1k, 2k
14
+ * - `seedream-v4` - 640px, 1k, 2k, 4k
15
+ * - `nano-banana` - 640px, 1k
16
+ * - `nano-banana-2` - 640px, 1k, 2k, 4k
17
+ * - `nano-banana-pro` - 1k, 2k, 4k
18
+ *
19
+ * Note: Resolution availability depends on the model and your subscription tier.
10
20
  */
11
- export type V1AiImageGeneratorCreateBodyResolutionEnum = "2k" | "4k" | "auto";
21
+ export type V1AiImageGeneratorCreateBodyResolutionEnum = "1k" | "2k" | "4k" | "640px" | "auto";
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Legacy quality mode mapping:
5
5
  * - `standard` → `z-image-turbo` model
6
- * - `pro` → `seedream` model
6
+ * - `pro` → `seedream-v4` model
7
7
  *
8
8
  * If model is specified, it will take precedence over the legacy quality_mode field.
9
9
  */
@@ -12,7 +12,7 @@ export type V1AiImageGeneratorCreateBodyStyle = {
12
12
  *
13
13
  * Legacy quality mode mapping:
14
14
  * - `standard` → `z-image-turbo` model
15
- * - `pro` → `seedream` model
15
+ * - `pro` → `seedream-v4` model
16
16
  *
17
17
  * If model is specified, it will take precedence over the legacy quality_mode field.
18
18
  */
@@ -17,33 +17,36 @@ export type V1AiImageGeneratorCreateBody = {
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 V1AiImageGeneratorCreateBody = {
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 V1AiImageGeneratorCreateBody = {
78
91
  export type External$V1AiImageGeneratorCreateBody = {
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$V1AiImageGeneratorCreateBody: {
@@ -52,12 +52,13 @@ const SchemaIn$V1AiImageGeneratorCreateBody = 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$V1AiImageGeneratorCreateBody = 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) => {
@@ -42,7 +42,7 @@ export type V1ImageProjectsGetResponse = {
42
42
  */
43
43
  totalFrameCost: number;
44
44
  /**
45
- * The type of the image project. Possible values are AI_HEADSHOT, AI_IMAGE, IMAGE_UPSCALER, FACE_SWAP, PHOTO_EDITOR, QR_CODE, BACKGROUND_REMOVER, CLOTHES_CHANGER, AI_MEME, FACE_EDITOR, PHOTO_COLORIZER, AI_GIF, AI_SELFIE, AI_IMAGE_EDITOR, HEAD_SWAP, STORYBOARD
45
+ * The type of the image project. Possible values are FACE_EDITOR, AI_IMAGE_EDITOR, AI_SELFIE, AI_HEADSHOT, AI_IMAGE, AI_MEME, CLOTHES_CHANGER, BACKGROUND_REMOVER, FACE_SWAP, IMAGE_UPSCALER, AI_GIF, QR_CODE, PHOTO_EDITOR, PHOTO_COLORIZER, HEAD_SWAP, BODY_SWAP, STORYBOARD
46
46
  */
47
47
  type: string;
48
48
  };
@@ -9,10 +9,12 @@ export type V1ImageToVideoCreateBodyAssets = {
9
9
  * * **`ltx-2`**: Not supported
10
10
  * * **`wan-2.2`**: Not supported
11
11
  * * **`seedance`**: Supports 480p, 720p, 1080p.
12
+ * * **`seedance-2.0`**: Supports 480p, 720p.
12
13
  * * **`kling-2.5`**: Supports 1080p.
13
14
  * * **`kling-3.0`**: Supports 1080p.
14
15
  * * **`sora-2`**: Not supported
15
16
  * * **`veo3.1`**: Not supported
17
+ * * **`veo3.1-lite`**: Not supported
16
18
  *
17
19
  * Legacy models:
18
20
  * * **`kling-1.6`**: Not supported
@@ -2,17 +2,19 @@
2
2
  * The AI model to use for video generation.
3
3
  *
4
4
  * * `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`.
5
- * * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
6
- * * `wan-2.2`: Fast, medium-quality model with strong visuals and effect support.
7
- * * `seedance`: Great for fast iteration and start/end frame
8
- * * `kling-2.5`: Great for motion, action, and camera control
9
- * * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
10
- * * `sora-2`: Great for story-telling, dialogue & creativity
11
- * * `veo3.1`: Great for realism, polish, & prompt adherence
5
+ * * `ltx-2`: Fast iteration with audio and lip-sync
6
+ * * `wan-2.2`: Fast, strong visuals with effects
7
+ * * `seedance`: Fast iteration and start/end frames
8
+ * * `seedance-2.0`: State-of-the-art quality and consistency
9
+ * * `kling-2.5`: Motion, action, and camera control
10
+ * * `kling-3.0`: Cinematic, multi-scene storytelling
11
+ * * `sora-2`: Story-first concepts and creativity
12
+ * * `veo3.1`: Realistic visuals and prompt adherence
13
+ * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation.
12
14
  *
13
15
  * Legacy models:
14
- * * `kling-1.6`: Great for dependable clips with smooth motion
16
+ * * `kling-1.6`: Reliable baseline with smooth motion
15
17
  *
16
18
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
17
19
  */
18
- export type V1ImageToVideoCreateBodyModelEnum = "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";
20
+ export type V1ImageToVideoCreateBodyModelEnum = "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";
@@ -4,10 +4,12 @@
4
4
  * * **`ltx-2`**: Supports 480p, 720p, 1080p.
5
5
  * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
6
6
  * * **`seedance`**: Supports 480p, 720p, 1080p.
7
+ * * **`seedance-2.0`**: Supports 480p, 720p.
7
8
  * * **`kling-2.5`**: Supports 720p, 1080p.
8
9
  * * **`kling-3.0`**: Supports 720p, 1080p.
9
10
  * * **`sora-2`**: Supports 720p.
10
11
  * * **`veo3.1`**: Supports 720p, 1080p.
12
+ * * **`veo3.1-lite`**: Supports 720p, 1080p.
11
13
  *
12
14
  * Legacy models:
13
15
  * * **`kling-1.6`**: Supports 720p, 1080p.
@@ -16,10 +16,12 @@ export type V1ImageToVideoCreateBody = {
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 V1ImageToVideoCreateBody = {
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 V1ImageToVideoCreateBody = {
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 V1ImageToVideoCreateBody = {
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$V1ImageToVideoCreateBody = {
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$V1ImageToVideoCreateBody = 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$V1ImageToVideoCreateBody = 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(),
@@ -4,10 +4,12 @@
4
4
  * * **`ltx-2`**: Supports 9:16, 16:9, 1:1.
5
5
  * * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
6
6
  * * **`seedance`**: Supports 9:16, 16:9, 1:1.
7
+ * * **`seedance-2.0`**: Supports 9:16, 16:9, 1:1.
7
8
  * * **`kling-2.5`**: Supports 9:16, 16:9, 1:1.
8
9
  * * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
9
10
  * * **`sora-2`**: Supports 9:16, 16:9.
10
11
  * * **`veo3.1`**: Supports 9:16, 16:9.
12
+ * * **`veo3.1-lite`**: Supports 9:16, 16:9.
11
13
  *
12
14
  * Legacy models:
13
15
  * * **`kling-1.6`**: Supports 9:16, 16:9, 1:1.
@@ -2,17 +2,19 @@
2
2
  * The AI model to use for video generation.
3
3
  *
4
4
  * * `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`.
5
- * * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
6
- * * `wan-2.2`: Fast, medium-quality model with strong visuals and effect support.
7
- * * `seedance`: Great for fast iteration and start/end frame
8
- * * `kling-2.5`: Great for motion, action, and camera control
9
- * * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
10
- * * `sora-2`: Great for story-telling, dialogue & creativity
11
- * * `veo3.1`: Great for realism, polish, & prompt adherence
5
+ * * `ltx-2`: Fast iteration with audio and lip-sync
6
+ * * `wan-2.2`: Fast, strong visuals with effects
7
+ * * `seedance`: Fast iteration and start/end frames
8
+ * * `seedance-2.0`: State-of-the-art quality and consistency
9
+ * * `kling-2.5`: Motion, action, and camera control
10
+ * * `kling-3.0`: Cinematic, multi-scene storytelling
11
+ * * `sora-2`: Story-first concepts and creativity
12
+ * * `veo3.1`: Realistic visuals and prompt adherence
13
+ * * `veo3.1-lite`: Good for fast, affordable, high-quality daily generation.
12
14
  *
13
15
  * Legacy models:
14
- * * `kling-1.6`: Great for dependable clips with smooth motion
16
+ * * `kling-1.6`: Reliable baseline with smooth motion
15
17
  *
16
18
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
17
19
  */
18
- export type V1TextToVideoCreateBodyModelEnum = "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";
20
+ export type V1TextToVideoCreateBodyModelEnum = "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";
@@ -4,10 +4,12 @@
4
4
  * * **`ltx-2`**: Supports 480p, 720p, 1080p.
5
5
  * * **`wan-2.2`**: Supports 480p, 720p, 1080p.
6
6
  * * **`seedance`**: Supports 480p, 720p, 1080p.
7
+ * * **`seedance-2.0`**: Supports 480p, 720p.
7
8
  * * **`kling-2.5`**: Supports 720p, 1080p.
8
9
  * * **`kling-3.0`**: Supports 720p, 1080p.
9
10
  * * **`sora-2`**: Supports 720p.
10
11
  * * **`veo3.1`**: Supports 720p, 1080p.
12
+ * * **`veo3.1-lite`**: Supports 720p, 1080p.
11
13
  *
12
14
  * Legacy models:
13
15
  * * **`kling-1.6`**: Supports 720p, 1080p.
@@ -10,10 +10,12 @@ export type V1TextToVideoCreateBody = {
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 V1TextToVideoCreateBody = {
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 V1TextToVideoCreateBody = {
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 V1TextToVideoCreateBody = {
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 V1TextToVideoCreateBody = {
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$V1TextToVideoCreateBody = {
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$V1TextToVideoCreateBody = 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$V1TextToVideoCreateBody = 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(),
@@ -61,7 +61,7 @@ export type V1VideoProjectsGetResponse = {
61
61
  */
62
62
  totalFrameCost: number;
63
63
  /**
64
- * The type of the video project. Possible values are ANIMATION, IMAGE_TO_VIDEO, VIDEO_TO_VIDEO, TEXT_TO_VIDEO, FACE_SWAP, LIP_SYNC, AUTO_SUBTITLE, TALKING_PHOTO, UGC_AD, VIDEO_UPSCALER, EXTEND, AUDIO_TO_VIDEO
64
+ * The type of the video project. Possible values are ANIMATION, AUTO_SUBTITLE, VIDEO_TO_VIDEO, FACE_SWAP, TEXT_TO_VIDEO, IMAGE_TO_VIDEO, LIP_SYNC, TALKING_PHOTO, VIDEO_UPSCALER, EXTEND, AUDIO_TO_VIDEO, UGC_AD
65
65
  */
66
66
  type: string;
67
67
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.58.0",
3
+ "version": "0.60.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {