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,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.94.1"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.96.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.94.1";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.96.0";
8
8
  })(Environment || (exports.Environment = Environment = {}));
@@ -42,10 +42,6 @@ export type CreateRequest = {
42
42
  * - Supported resolutions: 640px, 1k
43
43
  * - Available for tiers: creator, pro, business
44
44
  * - Max additional input images: 9
45
- * - `nano-banana-2` - from 100 credits/image
46
- * - Supported resolutions: 640px, 1k, 2k, 4k
47
- * - Available for tiers: creator, pro, business
48
- * - Max additional input images: 9
49
45
  * - `nano-banana-2-lite` - from 50 credits/image
50
46
  * - Supported resolutions: 640px, 1k
51
47
  * - Available for tiers: creator, pro, business
@@ -101,7 +97,6 @@ export type CreateRequest = {
101
97
  * - `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
102
98
  * - `krea-2` - 640px, 1k
103
99
  * - `nano-banana` - 640px, 1k
104
- * - `nano-banana-2` - 640px, 1k, 2k, 4k
105
100
  * - `nano-banana-2-lite` - 640px, 1k
106
101
  * - `nano-banana-2.1` - 640px, 1k, 2k, 4k
107
102
  * - `nano-banana-pro` - 1k, 2k, 4k
@@ -41,10 +41,6 @@ export type CreateRequest = {
41
41
  * - Supported resolutions: 640px, 1k
42
42
  * - Available for tiers: creator, pro, business
43
43
  * - Image count allowed: 1, 2, 3, 4
44
- * - `nano-banana-2` - from 100 credits/image
45
- * - Supported resolutions: 640px, 1k, 2k, 4k
46
- * - Available for tiers: creator, pro, business
47
- * - Image count allowed: 1, 4, 9, 16
48
44
  * - `nano-banana-2-lite` - from 50 credits/image
49
45
  * - Supported resolutions: 640px, 1k
50
46
  * - Available for tiers: creator, pro, business
@@ -110,7 +106,6 @@ export type CreateRequest = {
110
106
  * - `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
111
107
  * - `krea-2` - 640px, 1k
112
108
  * - `nano-banana` - 640px, 1k
113
- * - `nano-banana-2` - 640px, 1k, 2k, 4k
114
109
  * - `nano-banana-2-lite` - 640px, 1k
115
110
  * - `nano-banana-2.1` - 640px, 1k, 2k, 4k
116
111
  * - `nano-banana-pro` - 1k, 2k, 4k
@@ -11,13 +11,18 @@ export type CreateRequest = {
11
11
  */
12
12
  assets: V1AiVideoEditorCreateBodyAssets;
13
13
  /**
14
- * End time of your clip in seconds. Must be greater than `start_seconds`. Allowed duration depends on model: `gemini-omni-1.1`: 3-10s, `wan-3.0`: 2-15s, `ltx-2.5`: 0.5-60s (30s at 1080p).
14
+ * End time of your clip in seconds. Must be greater than `start_seconds`. Allowed duration depends on model: `gemini-omni-1.2`: 3-15s, `wan-3.0`: 2-15s, `ltx-2.5`: 0.5-60s (30s at 1080p), `kling-4.0`: 3-30s.
15
15
  */
16
16
  endSeconds: number;
17
17
  /**
18
- * Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `wan-3.0` requires a paid tier. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.
18
+ * The AI model to use for video editing. Defaults to `ltx-2.5` on free tiers and `gemini-omni-1.2` on paid tiers.
19
+ *
20
+ * * `gemini-omni-1.2`: Best for precise clips up to 15s, references, and high-resolution output. Requires a paid tier.
21
+ * * `wan-3.0`: High-quality video with native audio, long clips, and end-frame control. Requires a paid tier.
22
+ * * `ltx-2.5`: Fastest for general scenes, long clips, audio, and rapid iteration.
23
+ * * `kling-4.0`: Create cinematic videos with image and video references and optional audio. Requires a paid tier.
19
24
  */
20
- model?: ("gemini-omni" | "gemini-omni-1.1" | "ltx-2.3" | "ltx-2.5" | "wan-3.0") | undefined;
25
+ model?: ("gemini-omni" | "gemini-omni-1.1" | "gemini-omni-1.2" | "kling-4.0" | "ltx-2.3" | "ltx-2.5" | "wan-3.0") | undefined;
21
26
  /**
22
27
  * Give your video a custom name for easy identification.
23
28
  */
@@ -25,11 +30,11 @@ export type CreateRequest = {
25
30
  /**
26
31
  * Name references without @ and refer to them as @name in style.prompt. Names must be unique, ignoring case. Maximum 10 references total. Omit for no references.
27
32
  *
28
- * Reference images for gemini-omni-1.1, wan-3.0, gemini-omni.
33
+ * Reference images for gemini-omni-1.2, wan-3.0, kling-4.0.
29
34
  */
30
35
  references?: V1AiVideoEditorCreateBodyReferencesItem[] | undefined;
31
36
  /**
32
- * Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.1`: 360p, 720p, 1080p, 4k; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p.
37
+ * Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.2`: 360p, 720p, 1080p, 4k; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p; `kling-4.0`: 720p, 1080p.
33
38
  */
34
39
  resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
35
40
  /**
@@ -46,7 +51,7 @@ export type CreateRequest = {
46
51
  export type External$CreateRequest = {
47
52
  assets: External$V1AiVideoEditorCreateBodyAssets;
48
53
  end_seconds: number;
49
- model?: ("gemini-omni" | "gemini-omni-1.1" | "ltx-2.3" | "ltx-2.5" | "wan-3.0") | undefined;
54
+ model?: ("gemini-omni" | "gemini-omni-1.1" | "gemini-omni-1.2" | "kling-4.0" | "ltx-2.3" | "ltx-2.5" | "wan-3.0") | undefined;
50
55
  name?: string | undefined;
51
56
  references?: External$V1AiVideoEditorCreateBodyReferencesItem[] | undefined;
52
57
  resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
@@ -47,7 +47,15 @@ const SchemaIn$CreateRequest = z
47
47
  assets: v1_ai_video_editor_create_body_assets_1.Schemas$V1AiVideoEditorCreateBodyAssets.in,
48
48
  end_seconds: z.number(),
49
49
  model: z
50
- .enum(["gemini-omni", "gemini-omni-1.1", "ltx-2.3", "ltx-2.5", "wan-3.0"])
50
+ .enum([
51
+ "gemini-omni",
52
+ "gemini-omni-1.1",
53
+ "gemini-omni-1.2",
54
+ "kling-4.0",
55
+ "ltx-2.3",
56
+ "ltx-2.5",
57
+ "wan-3.0",
58
+ ])
51
59
  .optional(),
52
60
  name: z.string().optional(),
53
61
  references: z
@@ -78,7 +86,15 @@ const SchemaOut$CreateRequest = z
78
86
  assets: v1_ai_video_editor_create_body_assets_1.Schemas$V1AiVideoEditorCreateBodyAssets.out,
79
87
  endSeconds: z.number(),
80
88
  model: z
81
- .enum(["gemini-omni", "gemini-omni-1.1", "ltx-2.3", "ltx-2.5", "wan-3.0"])
89
+ .enum([
90
+ "gemini-omni",
91
+ "gemini-omni-1.1",
92
+ "gemini-omni-1.2",
93
+ "kling-4.0",
94
+ "ltx-2.3",
95
+ "ltx-2.5",
96
+ "wan-3.0",
97
+ ])
82
98
  .optional(),
83
99
  name: z.string().optional(),
84
100
  references: z
@@ -23,8 +23,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.AiVoiceClonerClient = void 0;
24
24
  const make_api_request_js_1 = require("make-api-request-js");
25
25
  const logger_1 = require("../../../logger.js");
26
- const files_1 = require("../files/index.js");
27
26
  const audio_projects_1 = require("../audio-projects/index.js");
27
+ const files_1 = require("../files/index.js");
28
28
  const v1_ai_voice_cloner_create_body_1 = require("../../../types/v1-ai-voice-cloner-create-body.js");
29
29
  const v1_ai_voice_cloner_create_response_1 = require("../../../types/v1-ai-voice-cloner-create-response.js");
30
30
  class AiVoiceClonerClient extends make_api_request_js_1.CoreResourceClient {
@@ -55,7 +55,7 @@ export declare class BodySwapClient extends CoreResourceClient {
55
55
  /**
56
56
  * Body Swap
57
57
  *
58
- * Swap a person into a scene image using Nano Banana 2 Lite (640px/1k) or Nano Banana 2 (2k/4k). Credits depend on `resolution` (from 50 credits at 640px upward).
58
+ * Swap a person into a scene image using Nano Banana 2 Lite (640px/1k) or Nano Banana 2.1 (2k/4k). Credits depend on `resolution` (from 50 credits at 640px upward).
59
59
  *
60
60
  * POST /v1/body-swap
61
61
  */
@@ -86,7 +86,7 @@ class BodySwapClient extends make_api_request_js_1.CoreResourceClient {
86
86
  /**
87
87
  * Body Swap
88
88
  *
89
- * Swap a person into a scene image using Nano Banana 2 Lite (640px/1k) or Nano Banana 2 (2k/4k). Credits depend on `resolution` (from 50 credits at 640px upward).
89
+ * Swap a person into a scene image using Nano Banana 2 Lite (640px/1k) or Nano Banana 2.1 (2k/4k). Credits depend on `resolution` (from 50 credits at 640px upward).
90
90
  *
91
91
  * POST /v1/body-swap
92
92
  */
@@ -13,7 +13,7 @@ export type CreateRequest = {
13
13
  * Whether to include audio in the video. Defaults to `false` if not specified.
14
14
  *
15
15
  * Audio support varies by model:
16
- * * **`gemini-omni-1.1`**: Not supported
16
+ * * **`gemini-omni-1.2`**: Not supported
17
17
  * * **`kling-2.6`**: Not supported
18
18
  * * **`kling-3.0`**: Toggle-able: audio adds extra credits when enabled
19
19
  * * **`kling-4.0`**: Toggle-able: no additional credits for audio
@@ -34,7 +34,7 @@ export type CreateRequest = {
34
34
  /**
35
35
  * The total duration of the output video in seconds. Supported durations depend on the chosen model:
36
36
  *
37
- * * **`gemini-omni-1.1`**: any integer from 3 to 10
37
+ * * **`gemini-omni-1.2`**: any integer from 3 to 15
38
38
  * * **`kling-2.6`**: 5, 10
39
39
  * * **`kling-3.0`**: any integer from 3 to 15
40
40
  * * **`kling-4.0`**: any integer from 3 to 30
@@ -61,8 +61,8 @@ export type CreateRequest = {
61
61
  /**
62
62
  * The AI model to use for video generation.
63
63
  *
64
- * * `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`.
65
- * * `gemini-omni-1.1`: Best for precise short clips, first/last frames, and high-resolution output.
64
+ * * `default`: automatically selects a model based on subscription tier, resolution and duration.
65
+ * * `gemini-omni-1.2`: Best for precise clips up to 15s, references, and high-resolution output.
66
66
  * * `kling-2.6`: Best for action, motion blur, and controlled camera moves.
67
67
  * * `kling-3.0`: Best for cinematic stories, references, and optional audio.
68
68
  * * `kling-4.0`: Create cinematic videos with image and video references and optional audio.
@@ -80,7 +80,7 @@ export type CreateRequest = {
80
80
  *
81
81
  * If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
82
82
  */
83
- 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;
83
+ 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;
84
84
  /**
85
85
  * Give your video a custom name for easy identification.
86
86
  */
@@ -88,7 +88,7 @@ export type CreateRequest = {
88
88
  /**
89
89
  * Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
90
90
  *
91
- * * **`gemini-omni-1.1`**: Supports 360p, 720p, 1080p, 4k.
91
+ * * **`gemini-omni-1.2`**: Supports 360p, 720p, 1080p, 4k.
92
92
  * * **`kling-2.6`**: Supports 720p, 1080p.
93
93
  * * **`kling-3.0`**: Supports 720p, 1080p, 4k.
94
94
  * * **`kling-4.0`**: Supports 720p, 1080p.
@@ -127,7 +127,7 @@ export type External$CreateRequest = {
127
127
  audio?: boolean | undefined;
128
128
  end_seconds: number;
129
129
  height?: number | null | undefined;
130
- 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;
130
+ 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;
131
131
  name?: string | undefined;
132
132
  resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
133
133
  style?: External$V1ImageToVideoCreateBodyStyle | undefined;
@@ -51,6 +51,7 @@ const SchemaIn$CreateRequest = z
51
51
  .enum([
52
52
  "default",
53
53
  "gemini-omni-1.1",
54
+ "gemini-omni-1.2",
54
55
  "kling-1.6",
55
56
  "kling-2.5",
56
57
  "kling-2.5-audio",
@@ -107,6 +108,7 @@ const SchemaOut$CreateRequest = z
107
108
  .enum([
108
109
  "default",
109
110
  "gemini-omni-1.1",
111
+ "gemini-omni-1.2",
110
112
  "kling-1.6",
111
113
  "kling-2.5",
112
114
  "kling-2.5-audio",
@@ -6,9 +6,9 @@ import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } f
6
6
  */
7
7
  export type CreateRequest = {
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 CreateRequest = {
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 CreateRequest = {
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 CreateRequest = {
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 CreateRequest = {
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 CreateRequest = {
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 CreateRequest = {
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$CreateRequest = {
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$CreateRequest = 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$CreateRequest = 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",
@@ -23,10 +23,6 @@
23
23
  * - Supported resolutions: 640px, 1k
24
24
  * - Available for tiers: creator, pro, business
25
25
  * - Max additional input images: 9
26
- * - `nano-banana-2` - from 100 credits/image
27
- * - Supported resolutions: 640px, 1k, 2k, 4k
28
- * - Available for tiers: creator, pro, business
29
- * - Max additional input images: 9
30
26
  * - `nano-banana-2-lite` - from 50 credits/image
31
27
  * - Supported resolutions: 640px, 1k
32
28
  * - Available for tiers: creator, pro, business
@@ -14,7 +14,6 @@
14
14
  * - `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
15
15
  * - `krea-2` - 640px, 1k
16
16
  * - `nano-banana` - 640px, 1k
17
- * - `nano-banana-2` - 640px, 1k, 2k, 4k
18
17
  * - `nano-banana-2-lite` - 640px, 1k
19
18
  * - `nano-banana-2.1` - 640px, 1k, 2k, 4k
20
19
  * - `nano-banana-pro` - 1k, 2k, 4k
@@ -42,10 +42,6 @@ export type V1AiImageEditorCreateBody = {
42
42
  * - Supported resolutions: 640px, 1k
43
43
  * - Available for tiers: creator, pro, business
44
44
  * - Max additional input images: 9
45
- * - `nano-banana-2` - from 100 credits/image
46
- * - Supported resolutions: 640px, 1k, 2k, 4k
47
- * - Available for tiers: creator, pro, business
48
- * - Max additional input images: 9
49
45
  * - `nano-banana-2-lite` - from 50 credits/image
50
46
  * - Supported resolutions: 640px, 1k
51
47
  * - Available for tiers: creator, pro, business
@@ -101,7 +97,6 @@ export type V1AiImageEditorCreateBody = {
101
97
  * - `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
102
98
  * - `krea-2` - 640px, 1k
103
99
  * - `nano-banana` - 640px, 1k
104
- * - `nano-banana-2` - 640px, 1k, 2k, 4k
105
100
  * - `nano-banana-2-lite` - 640px, 1k
106
101
  * - `nano-banana-2.1` - 640px, 1k, 2k, 4k
107
102
  * - `nano-banana-pro` - 1k, 2k, 4k
@@ -27,10 +27,6 @@
27
27
  * - Supported resolutions: 640px, 1k
28
28
  * - Available for tiers: creator, pro, business
29
29
  * - Image count allowed: 1, 2, 3, 4
30
- * - `nano-banana-2` - from 100 credits/image
31
- * - Supported resolutions: 640px, 1k, 2k, 4k
32
- * - Available for tiers: creator, pro, business
33
- * - Image count allowed: 1, 4, 9, 16
34
30
  * - `nano-banana-2-lite` - from 50 credits/image
35
31
  * - Supported resolutions: 640px, 1k
36
32
  * - Available for tiers: creator, pro, business
@@ -15,7 +15,6 @@
15
15
  * - `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
16
16
  * - `krea-2` - 640px, 1k
17
17
  * - `nano-banana` - 640px, 1k
18
- * - `nano-banana-2` - 640px, 1k, 2k, 4k
19
18
  * - `nano-banana-2-lite` - 640px, 1k
20
19
  * - `nano-banana-2.1` - 640px, 1k, 2k, 4k
21
20
  * - `nano-banana-pro` - 1k, 2k, 4k
@@ -41,10 +41,6 @@ export type V1AiImageGeneratorCreateBody = {
41
41
  * - Supported resolutions: 640px, 1k
42
42
  * - Available for tiers: creator, pro, business
43
43
  * - Image count allowed: 1, 2, 3, 4
44
- * - `nano-banana-2` - from 100 credits/image
45
- * - Supported resolutions: 640px, 1k, 2k, 4k
46
- * - Available for tiers: creator, pro, business
47
- * - Image count allowed: 1, 4, 9, 16
48
44
  * - `nano-banana-2-lite` - from 50 credits/image
49
45
  * - Supported resolutions: 640px, 1k
50
46
  * - Available for tiers: creator, pro, business
@@ -110,7 +106,6 @@ export type V1AiImageGeneratorCreateBody = {
110
106
  * - `gpt-image-2.5-flare` - 640px, 1k, 2k, 4k
111
107
  * - `krea-2` - 640px, 1k
112
108
  * - `nano-banana` - 640px, 1k
113
- * - `nano-banana-2` - 640px, 1k, 2k, 4k
114
109
  * - `nano-banana-2-lite` - 640px, 1k
115
110
  * - `nano-banana-2.1` - 640px, 1k, 2k, 4k
116
111
  * - `nano-banana-pro` - 1k, 2k, 4k
@@ -1,4 +1,9 @@
1
1
  /**
2
- * Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `wan-3.0` requires a paid tier. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.
2
+ * The AI model to use for video editing. Defaults to `ltx-2.5` on free tiers and `gemini-omni-1.2` on paid tiers.
3
+ *
4
+ * * `gemini-omni-1.2`: Best for precise clips up to 15s, references, and high-resolution output. Requires a paid tier.
5
+ * * `wan-3.0`: High-quality video with native audio, long clips, and end-frame control. Requires a paid tier.
6
+ * * `ltx-2.5`: Fastest for general scenes, long clips, audio, and rapid iteration.
7
+ * * `kling-4.0`: Create cinematic videos with image and video references and optional audio. Requires a paid tier.
3
8
  */
4
- export type V1AiVideoEditorCreateBodyModelEnum = "gemini-omni" | "gemini-omni-1.1" | "ltx-2.3" | "ltx-2.5" | "wan-3.0";
9
+ export type V1AiVideoEditorCreateBodyModelEnum = "gemini-omni" | "gemini-omni-1.1" | "gemini-omni-1.2" | "kling-4.0" | "ltx-2.3" | "ltx-2.5" | "wan-3.0";
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.1`: 360p, 720p, 1080p, 4k; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p.
2
+ * Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.2`: 360p, 720p, 1080p, 4k; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p; `kling-4.0`: 720p, 1080p.
3
3
  */
4
4
  export type V1AiVideoEditorCreateBodyResolutionEnum = "1080p" | "360p" | "480p" | "4k" | "720p";
@@ -11,13 +11,18 @@ export type V1AiVideoEditorCreateBody = {
11
11
  */
12
12
  assets: V1AiVideoEditorCreateBodyAssets;
13
13
  /**
14
- * End time of your clip in seconds. Must be greater than `start_seconds`. Allowed duration depends on model: `gemini-omni-1.1`: 3-10s, `wan-3.0`: 2-15s, `ltx-2.5`: 0.5-60s (30s at 1080p).
14
+ * End time of your clip in seconds. Must be greater than `start_seconds`. Allowed duration depends on model: `gemini-omni-1.2`: 3-15s, `wan-3.0`: 2-15s, `ltx-2.5`: 0.5-60s (30s at 1080p), `kling-4.0`: 3-30s.
15
15
  */
16
16
  endSeconds: number;
17
17
  /**
18
- * Editing model. Defaults to LTX 2.5 for free tier and `gemini-omni-1.1` for paid. `wan-3.0` requires a paid tier. `gemini-omni` is deprecated; use `gemini-omni-1.1` instead.
18
+ * The AI model to use for video editing. Defaults to `ltx-2.5` on free tiers and `gemini-omni-1.2` on paid tiers.
19
+ *
20
+ * * `gemini-omni-1.2`: Best for precise clips up to 15s, references, and high-resolution output. Requires a paid tier.
21
+ * * `wan-3.0`: High-quality video with native audio, long clips, and end-frame control. Requires a paid tier.
22
+ * * `ltx-2.5`: Fastest for general scenes, long clips, audio, and rapid iteration.
23
+ * * `kling-4.0`: Create cinematic videos with image and video references and optional audio. Requires a paid tier.
19
24
  */
20
- model?: ("gemini-omni" | "gemini-omni-1.1" | "ltx-2.3" | "ltx-2.5" | "wan-3.0") | undefined;
25
+ model?: ("gemini-omni" | "gemini-omni-1.1" | "gemini-omni-1.2" | "kling-4.0" | "ltx-2.3" | "ltx-2.5" | "wan-3.0") | undefined;
21
26
  /**
22
27
  * Give your video a custom name for easy identification.
23
28
  */
@@ -25,11 +30,11 @@ export type V1AiVideoEditorCreateBody = {
25
30
  /**
26
31
  * Name references without @ and refer to them as @name in style.prompt. Names must be unique, ignoring case. Maximum 10 references total. Omit for no references.
27
32
  *
28
- * Reference images for gemini-omni-1.1, wan-3.0, gemini-omni.
33
+ * Reference images for gemini-omni-1.2, wan-3.0, kling-4.0.
29
34
  */
30
35
  references?: V1AiVideoEditorCreateBodyReferencesItem[] | undefined;
31
36
  /**
32
- * Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.1`: 360p, 720p, 1080p, 4k; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p.
37
+ * Output resolution. Defaults to `480p` for free tier and `720p` for paid. Supported per model: `gemini-omni-1.2`: 360p, 720p, 1080p, 4k; `wan-3.0`: 480p, 720p, 1080p; `ltx-2.5`: 480p, 720p, 1080p; `kling-4.0`: 720p, 1080p.
33
38
  */
34
39
  resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
35
40
  /**
@@ -46,7 +51,7 @@ export type V1AiVideoEditorCreateBody = {
46
51
  export type External$V1AiVideoEditorCreateBody = {
47
52
  assets: External$V1AiVideoEditorCreateBodyAssets;
48
53
  end_seconds: number;
49
- model?: ("gemini-omni" | "gemini-omni-1.1" | "ltx-2.3" | "ltx-2.5" | "wan-3.0") | undefined;
54
+ model?: ("gemini-omni" | "gemini-omni-1.1" | "gemini-omni-1.2" | "kling-4.0" | "ltx-2.3" | "ltx-2.5" | "wan-3.0") | undefined;
50
55
  name?: string | undefined;
51
56
  references?: External$V1AiVideoEditorCreateBodyReferencesItem[] | undefined;
52
57
  resolution?: ("1080p" | "360p" | "480p" | "4k" | "720p") | undefined;
@@ -47,7 +47,15 @@ const SchemaIn$V1AiVideoEditorCreateBody = z
47
47
  assets: v1_ai_video_editor_create_body_assets_1.Schemas$V1AiVideoEditorCreateBodyAssets.in,
48
48
  end_seconds: z.number(),
49
49
  model: z
50
- .enum(["gemini-omni", "gemini-omni-1.1", "ltx-2.3", "ltx-2.5", "wan-3.0"])
50
+ .enum([
51
+ "gemini-omni",
52
+ "gemini-omni-1.1",
53
+ "gemini-omni-1.2",
54
+ "kling-4.0",
55
+ "ltx-2.3",
56
+ "ltx-2.5",
57
+ "wan-3.0",
58
+ ])
51
59
  .optional(),
52
60
  name: z.string().optional(),
53
61
  references: z
@@ -78,7 +86,15 @@ const SchemaOut$V1AiVideoEditorCreateBody = z
78
86
  assets: v1_ai_video_editor_create_body_assets_1.Schemas$V1AiVideoEditorCreateBodyAssets.out,
79
87
  endSeconds: z.number(),
80
88
  model: z
81
- .enum(["gemini-omni", "gemini-omni-1.1", "ltx-2.3", "ltx-2.5", "wan-3.0"])
89
+ .enum([
90
+ "gemini-omni",
91
+ "gemini-omni-1.1",
92
+ "gemini-omni-1.2",
93
+ "kling-4.0",
94
+ "ltx-2.3",
95
+ "ltx-2.5",
96
+ "wan-3.0",
97
+ ])
82
98
  .optional(),
83
99
  name: z.string().optional(),
84
100
  references: z