magic-hour 0.90.2 → 0.92.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 (39) 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 +0 -5
  4. package/dist/resources/v1/ai-image-generator/request-types.d.ts +0 -5
  5. package/dist/resources/v1/ai-video-editor/request-types.d.ts +11 -6
  6. package/dist/resources/v1/ai-video-editor/request-types.js +18 -2
  7. package/dist/resources/v1/ai-voice-cloner/resource-client.js +1 -1
  8. package/dist/resources/v1/body-swap/resource-client.d.ts +1 -1
  9. package/dist/resources/v1/body-swap/resource-client.js +1 -1
  10. package/dist/resources/v1/image-to-video/request-types.d.ts +7 -7
  11. package/dist/resources/v1/image-to-video/request-types.js +2 -0
  12. package/dist/resources/v1/text-to-video/request-types.d.ts +10 -10
  13. package/dist/resources/v1/text-to-video/request-types.js +2 -0
  14. package/dist/types/v1-ai-image-editor-create-body-model-enum.d.ts +0 -4
  15. package/dist/types/v1-ai-image-editor-create-body-resolution-enum.d.ts +0 -1
  16. package/dist/types/v1-ai-image-editor-create-body.d.ts +0 -5
  17. package/dist/types/v1-ai-image-generator-create-body-model-enum.d.ts +0 -4
  18. package/dist/types/v1-ai-image-generator-create-body-resolution-enum.d.ts +0 -1
  19. package/dist/types/v1-ai-image-generator-create-body.d.ts +0 -5
  20. package/dist/types/v1-ai-video-editor-create-body-model-enum.d.ts +7 -2
  21. package/dist/types/v1-ai-video-editor-create-body-resolution-enum.d.ts +1 -1
  22. package/dist/types/v1-ai-video-editor-create-body.d.ts +11 -6
  23. package/dist/types/v1-ai-video-editor-create-body.js +18 -2
  24. package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.d.ts +1 -1
  25. package/dist/types/v1-ai-voice-generator-create-body-style.d.ts +2 -2
  26. package/dist/types/v1-ai-voice-generator-create-body-style.js +0 -2
  27. package/dist/types/v1-image-to-video-create-body-assets.d.ts +1 -1
  28. package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +3 -3
  29. package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +1 -1
  30. package/dist/types/v1-image-to-video-create-body-style.d.ts +19 -1
  31. package/dist/types/v1-image-to-video-create-body.d.ts +7 -7
  32. package/dist/types/v1-image-to-video-create-body.js +2 -0
  33. package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +2 -2
  34. package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +3 -3
  35. package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +1 -1
  36. package/dist/types/v1-text-to-video-create-body-style.d.ts +19 -1
  37. package/dist/types/v1-text-to-video-create-body.d.ts +10 -10
  38. package/dist/types/v1-text-to-video-create-body.js +2 -0
  39. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Provide `aspect_ratio` to set the video’s aspect ratio. Determines the aspect ratio of the output video.
2
+ * Determines the aspect ratio of the output video.
3
3
  *
4
- * * **`gemini-omni-1.1`**: Supports 16:9, 9:16.
4
+ * * **`gemini-omni-1.2`**: Supports 16:9, 9:16.
5
5
  * * **`kling-2.6`**: Supports 9:16, 16:9, 1:1.
6
6
  * * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
7
7
  * * **`kling-4.0`**: Supports 9:16, 16:9, 1:1.
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * The AI model to use for video generation.
3
3
  *
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`.
5
- * * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.
4
+ * * `default`: automatically selects a model based on subscription tier, resolution and duration.
5
+ * * `gemini-omni-1.2`: Best for precise clips up to 15s, references, and high-resolution output.
6
6
  * * `kling-2.6`: Best for action, motion blur, and controlled camera moves.
7
7
  * * `kling-3.0`: Best for cinematic stories, references, and optional audio.
8
8
  * * `kling-4.0`: Create cinematic videos with image and video references and optional audio.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
22
22
  */
23
- export type V1TextToVideoCreateBodyModelEnum = "default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "kling-4.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0";
23
+ export type V1TextToVideoCreateBodyModelEnum = "default" | "gemini-omni-1.1" | "gemini-omni-1.2" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "kling-4.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
3
3
  *
4
- * * **`gemini-omni-1.1`**: Supports 360p, 720p, 1080p, 4k.
4
+ * * **`gemini-omni-1.2`**: Supports 360p, 720p, 1080p, 4k.
5
5
  * * **`kling-2.6`**: Supports 720p, 1080p.
6
6
  * * **`kling-3.0`**: Supports 720p, 1080p, 4k.
7
7
  * * **`kling-4.0`**: Supports 720p, 1080p.
@@ -4,7 +4,25 @@ import * as z from "zod";
4
4
  */
5
5
  export type V1TextToVideoCreateBodyStyle = {
6
6
  /**
7
- * The prompt used for the video.
7
+ * The prompt used for the video. Maximum length depends on the model that runs, in characters:
8
+ *
9
+ * * **`gemini-omni-1.2`**: 2500 characters.
10
+ * * **`kling-2.6`**: 2500 characters.
11
+ * * **`kling-3.0`**: 2500 characters.
12
+ * * **`kling-4.0`**: 10000 characters.
13
+ * * **`ltx-2.5`**: 2000 characters.
14
+ * * **`minimax-h3`**: 20000 characters.
15
+ * * **`seedance-1.5`**: 2000 characters.
16
+ * * **`seedance-2.0`**: 2000 characters.
17
+ * * **`seedance-2.0-fast`**: 2000 characters.
18
+ * * **`seedance-2.0-mini`**: 2000 characters.
19
+ * * **`seedance-2.5`**: 2000 characters.
20
+ * * **`veo3.1`**: 2500 characters.
21
+ * * **`veo3.1-lite`**: 2500 characters.
22
+ * * **`wan-2.2`**: 10000 characters.
23
+ * * **`wan-3.0`**: 10000 characters.
24
+ *
25
+ * For `default`, the limit of the automatically selected model applies. Selection depends on subscription tier, resolution and duration. Specify an explicit model to use a known prompt limit. Prompts exceeding the effective model's limit are rejected, not truncated.
8
26
  */
9
27
  prompt: string;
10
28
  /**
@@ -6,9 +6,9 @@ import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } f
6
6
  */
7
7
  export type V1TextToVideoCreateBody = {
8
8
  /**
9
- * Provide `aspect_ratio` to set the video’s aspect ratio. Determines the aspect ratio of the output video.
9
+ * Determines the aspect ratio of the output video.
10
10
  *
11
- * * **`gemini-omni-1.1`**: Supports 16:9, 9:16.
11
+ * * **`gemini-omni-1.2`**: Supports 16:9, 9:16.
12
12
  * * **`kling-2.6`**: Supports 9:16, 16:9, 1:1.
13
13
  * * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
14
14
  * * **`kling-4.0`**: Supports 9:16, 16:9, 1:1.
@@ -30,7 +30,7 @@ export type V1TextToVideoCreateBody = {
30
30
  * Whether to include audio in the video. Defaults to `false` if not specified.
31
31
  *
32
32
  * Audio support varies by model:
33
- * * **`gemini-omni-1.1`**: Not supported
33
+ * * **`gemini-omni-1.2`**: Not supported
34
34
  * * **`kling-2.6`**: Not supported
35
35
  * * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
36
36
  * * **`kling-4.0`**: Toggle-able: no additional credits for audio
@@ -51,7 +51,7 @@ export type V1TextToVideoCreateBody = {
51
51
  /**
52
52
  * The total duration of the output video in seconds. Supported durations depend on the chosen model:
53
53
  *
54
- * * **`gemini-omni-1.1`**: any integer from 3 to 10
54
+ * * **`gemini-omni-1.2`**: any integer from 3 to 15
55
55
  * * **`kling-2.6`**: 5, 10
56
56
  * * **`kling-3.0`**: any integer from 3 to 15
57
57
  * * **`kling-4.0`**: any integer from 3 to 30
@@ -72,8 +72,8 @@ export type V1TextToVideoCreateBody = {
72
72
  /**
73
73
  * The AI model to use for video generation.
74
74
  *
75
- * * `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`.
76
- * * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.
75
+ * * `default`: automatically selects a model based on subscription tier, resolution and duration.
76
+ * * `gemini-omni-1.2`: Best for precise clips up to 15s, references, and high-resolution output.
77
77
  * * `kling-2.6`: Best for action, motion blur, and controlled camera moves.
78
78
  * * `kling-3.0`: Best for cinematic stories, references, and optional audio.
79
79
  * * `kling-4.0`: Create cinematic videos with image and video references and optional audio.
@@ -91,7 +91,7 @@ export type V1TextToVideoCreateBody = {
91
91
  *
92
92
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
93
93
  */
94
- model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "kling-4.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
94
+ model?: ("default" | "gemini-omni-1.1" | "gemini-omni-1.2" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "kling-4.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
95
95
  /**
96
96
  * Give your video a custom name for easy identification.
97
97
  */
@@ -106,7 +106,7 @@ export type V1TextToVideoCreateBody = {
106
106
  * Reference media for video generation.
107
107
  *
108
108
  * Supported models and reference media:
109
- * * **`gemini-omni-1.1`**: Supports images, videos. Up to 10 references.
109
+ * * **`gemini-omni-1.2`**: Supports images, videos. Up to 10 references.
110
110
  * * **`kling-3.0`**: Supports images, videos. Up to 10 references.
111
111
  * * **`kling-4.0`**: Supports images, videos. Up to 10 references.
112
112
  * * **`minimax-h3`**: Supports images, videos, audio. Up to 10 references. Video references must be 2–15 seconds each and 15 seconds combined, and are used in full. Audio references must be 2–15 seconds each and are used in full.
@@ -121,7 +121,7 @@ export type V1TextToVideoCreateBody = {
121
121
  /**
122
122
  * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
123
123
  *
124
- * * **`gemini-omni-1.1`**: Supports 360p, 720p, 1080p, 4k.
124
+ * * **`gemini-omni-1.2`**: Supports 360p, 720p, 1080p, 4k.
125
125
  * * **`kling-2.6`**: Supports 720p, 1080p.
126
126
  * * **`kling-3.0`**: Supports 720p, 1080p, 4k.
127
127
  * * **`kling-4.0`**: Supports 720p, 1080p.
@@ -150,7 +150,7 @@ export type External$V1TextToVideoCreateBody = {
150
150
  aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
151
151
  audio?: boolean | undefined;
152
152
  end_seconds: number;
153
- model?: ("default" | "gemini-omni-1.1" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "kling-4.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
153
+ model?: ("default" | "gemini-omni-1.1" | "gemini-omni-1.2" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-2.6" | "kling-3.0" | "kling-4.0" | "ltx-2" | "ltx-2.3" | "ltx-2.5" | "minimax-h3" | "seedance" | "seedance-1.5" | "seedance-2.0" | "seedance-2.0-fast" | "seedance-2.0-mini" | "seedance-2.5" | "sora-2" | "veo3.1" | "veo3.1-audio" | "veo3.1-lite" | "wan-2.2" | "wan-3.0") | undefined;
154
154
  name?: string | undefined;
155
155
  orientation?: ("landscape" | "portrait" | "square") | undefined;
156
156
  references?: External$V1TextToVideoCreateBodyReferencesItem[] | undefined;
@@ -50,6 +50,7 @@ const SchemaIn$V1TextToVideoCreateBody = z
50
50
  .enum([
51
51
  "default",
52
52
  "gemini-omni-1.1",
53
+ "gemini-omni-1.2",
53
54
  "kling-1.6",
54
55
  "kling-2.5",
55
56
  "kling-2.5-audio",
@@ -108,6 +109,7 @@ const SchemaOut$V1TextToVideoCreateBody = z
108
109
  .enum([
109
110
  "default",
110
111
  "gemini-omni-1.1",
112
+ "gemini-omni-1.2",
111
113
  "kling-1.6",
112
114
  "kling-2.5",
113
115
  "kling-2.5-audio",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.90.2",
3
+ "version": "0.92.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -70,4 +70,4 @@
70
70
  "type": "git",
71
71
  "url": "https://github.com/magichourhq/magic-hour-node.git"
72
72
  }
73
- }
73
+ }