magic-hour 0.91.0 → 0.92.1
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.
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/ai-image-editor/request-types.d.ts +0 -5
- package/dist/resources/v1/ai-image-generator/request-types.d.ts +0 -5
- package/dist/resources/v1/ai-talking-photo/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-talking-photo/resource-client.js +1 -1
- package/dist/resources/v1/ai-video-editor/request-types.d.ts +11 -6
- package/dist/resources/v1/ai-video-editor/request-types.js +2 -0
- package/dist/resources/v1/animation/resource-client.d.ts +2 -2
- package/dist/resources/v1/animation/resource-client.js +2 -2
- package/dist/resources/v1/audio-to-video/resource-client.d.ts +2 -2
- package/dist/resources/v1/audio-to-video/resource-client.js +2 -2
- package/dist/resources/v1/auto-subtitle-generator/resource-client.d.ts +2 -2
- package/dist/resources/v1/auto-subtitle-generator/resource-client.js +2 -2
- package/dist/resources/v1/body-swap/resource-client.d.ts +2 -2
- package/dist/resources/v1/body-swap/resource-client.js +2 -2
- package/dist/resources/v1/character-replace/resource-client.d.ts +2 -2
- package/dist/resources/v1/character-replace/resource-client.js +2 -2
- package/dist/resources/v1/face-swap/resource-client.d.ts +1 -1
- package/dist/resources/v1/face-swap/resource-client.js +1 -1
- package/dist/resources/v1/head-swap/resource-client.d.ts +1 -1
- package/dist/resources/v1/head-swap/resource-client.js +1 -1
- package/dist/resources/v1/image-to-video/request-types.d.ts +2 -2
- package/dist/resources/v1/image-to-video/resource-client.d.ts +1 -1
- package/dist/resources/v1/image-to-video/resource-client.js +1 -1
- package/dist/resources/v1/lip-sync/resource-client.d.ts +1 -1
- package/dist/resources/v1/lip-sync/resource-client.js +1 -1
- package/dist/resources/v1/text-to-video/request-types.d.ts +3 -3
- package/dist/resources/v1/text-to-video/resource-client.d.ts +1 -1
- package/dist/resources/v1/text-to-video/resource-client.js +1 -1
- package/dist/resources/v1/video-to-video/resource-client.d.ts +1 -1
- package/dist/resources/v1/video-to-video/resource-client.js +1 -1
- package/dist/types/v1-ai-image-editor-create-body-model-enum.d.ts +0 -4
- package/dist/types/v1-ai-image-editor-create-body-resolution-enum.d.ts +0 -1
- package/dist/types/v1-ai-image-editor-create-body.d.ts +0 -5
- package/dist/types/v1-ai-image-generator-create-body-model-enum.d.ts +0 -4
- package/dist/types/v1-ai-image-generator-create-body-resolution-enum.d.ts +0 -1
- package/dist/types/v1-ai-image-generator-create-body.d.ts +0 -5
- package/dist/types/v1-ai-video-editor-create-body-model-enum.d.ts +7 -2
- package/dist/types/v1-ai-video-editor-create-body-resolution-enum.d.ts +1 -1
- package/dist/types/v1-ai-video-editor-create-body.d.ts +11 -6
- package/dist/types/v1-ai-video-editor-create-body.js +2 -0
- package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.d.ts +1 -1
- package/dist/types/v1-ai-voice-generator-create-body-style.d.ts +2 -2
- package/dist/types/v1-ai-voice-generator-create-body-style.js +0 -2
- package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +1 -1
- package/dist/types/v1-image-to-video-create-body-style.d.ts +19 -1
- package/dist/types/v1-image-to-video-create-body.d.ts +2 -2
- package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +1 -1
- package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +1 -1
- package/dist/types/v1-text-to-video-create-body-style.d.ts +19 -1
- package/dist/types/v1-text-to-video-create-body.d.ts +3 -3
- package/package.json +1 -1
package/dist/environment.d.ts
CHANGED
package/dist/environment.js
CHANGED
|
@@ -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.
|
|
7
|
+
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.96.1";
|
|
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
|
|
@@ -40,7 +40,7 @@ export declare class AiTalkingPhotoClient extends CoreResourceClient {
|
|
|
40
40
|
* audioFilePath: "/path/to/1234.mp3",
|
|
41
41
|
* imageFilePath: "/path/to/1234.png",
|
|
42
42
|
* },
|
|
43
|
-
* endSeconds:
|
|
43
|
+
* endSeconds: 5.0,
|
|
44
44
|
* name: "Talking Photo image",
|
|
45
45
|
* startSeconds: 0.0,
|
|
46
46
|
* },
|
|
@@ -49,7 +49,7 @@ class AiTalkingPhotoClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
49
49
|
* audioFilePath: "/path/to/1234.mp3",
|
|
50
50
|
* imageFilePath: "/path/to/1234.png",
|
|
51
51
|
* },
|
|
52
|
-
* endSeconds:
|
|
52
|
+
* endSeconds: 5.0,
|
|
53
53
|
* name: "Talking Photo image",
|
|
54
54
|
* startSeconds: 0.0,
|
|
55
55
|
* },
|
|
@@ -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.2`: 3-15s, `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
|
-
*
|
|
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" | "gemini-omni-1.2" | "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.2, wan-3.0.
|
|
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.2`: 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" | "gemini-omni-1.2" | "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;
|
|
@@ -51,6 +51,7 @@ const SchemaIn$CreateRequest = z
|
|
|
51
51
|
"gemini-omni",
|
|
52
52
|
"gemini-omni-1.1",
|
|
53
53
|
"gemini-omni-1.2",
|
|
54
|
+
"kling-4.0",
|
|
54
55
|
"ltx-2.3",
|
|
55
56
|
"ltx-2.5",
|
|
56
57
|
"wan-3.0",
|
|
@@ -89,6 +90,7 @@ const SchemaOut$CreateRequest = z
|
|
|
89
90
|
"gemini-omni",
|
|
90
91
|
"gemini-omni-1.1",
|
|
91
92
|
"gemini-omni-1.2",
|
|
93
|
+
"kling-4.0",
|
|
92
94
|
"ltx-2.3",
|
|
93
95
|
"ltx-2.5",
|
|
94
96
|
"wan-3.0",
|
|
@@ -41,9 +41,9 @@ export declare class AnimationClient extends CoreResourceClient {
|
|
|
41
41
|
* audioSource: "file",
|
|
42
42
|
* imageFilePath: "/path/to/1234.png",
|
|
43
43
|
* },
|
|
44
|
-
* endSeconds:
|
|
44
|
+
* endSeconds: 5.0,
|
|
45
45
|
* fps: 12.0,
|
|
46
|
-
* height:
|
|
46
|
+
* height: 512,
|
|
47
47
|
* name: "Animation video",
|
|
48
48
|
* style: {
|
|
49
49
|
* artStyle: "Painterly Illustration",
|
|
@@ -50,9 +50,9 @@ class AnimationClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
50
50
|
* audioSource: "file",
|
|
51
51
|
* imageFilePath: "/path/to/1234.png",
|
|
52
52
|
* },
|
|
53
|
-
* endSeconds:
|
|
53
|
+
* endSeconds: 5.0,
|
|
54
54
|
* fps: 12.0,
|
|
55
|
-
* height:
|
|
55
|
+
* height: 512,
|
|
56
56
|
* name: "Animation video",
|
|
57
57
|
* style: {
|
|
58
58
|
* artStyle: "Painterly Illustration",
|
|
@@ -40,9 +40,9 @@ export declare class AudioToVideoClient extends CoreResourceClient {
|
|
|
40
40
|
* audioFilePath: "/path/to/1234.mp3",
|
|
41
41
|
* imageFilePath: "/path/to/1234.png",
|
|
42
42
|
* },
|
|
43
|
-
* endSeconds:
|
|
43
|
+
* endSeconds: 5.0,
|
|
44
44
|
* name: "Audio To Video video",
|
|
45
|
-
* resolution: "
|
|
45
|
+
* resolution: "480p",
|
|
46
46
|
* startSeconds: 0.0,
|
|
47
47
|
* },
|
|
48
48
|
* {
|
|
@@ -49,9 +49,9 @@ class AudioToVideoClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
49
49
|
* audioFilePath: "/path/to/1234.mp3",
|
|
50
50
|
* imageFilePath: "/path/to/1234.png",
|
|
51
51
|
* },
|
|
52
|
-
* endSeconds:
|
|
52
|
+
* endSeconds: 5.0,
|
|
53
53
|
* name: "Audio To Video video",
|
|
54
|
-
* resolution: "
|
|
54
|
+
* resolution: "480p",
|
|
55
55
|
* startSeconds: 0.0,
|
|
56
56
|
* },
|
|
57
57
|
* {
|
|
@@ -29,10 +29,10 @@ export declare class AutoSubtitleGeneratorClient extends CoreResourceClient {
|
|
|
29
29
|
* const res = await client.v1.autoSubtitleGenerator.generate(
|
|
30
30
|
* {
|
|
31
31
|
* assets: { videoFilePath: "/path/to/1234.mp4" },
|
|
32
|
-
* endSeconds:
|
|
32
|
+
* endSeconds: 5.0,
|
|
33
33
|
* name: "Auto Subtitle video",
|
|
34
34
|
* startSeconds: 0.0,
|
|
35
|
-
* style: {},
|
|
35
|
+
* style: { template: "karaoke" },
|
|
36
36
|
* },
|
|
37
37
|
* {
|
|
38
38
|
* waitForCompletion: true,
|
|
@@ -46,10 +46,10 @@ class AutoSubtitleGeneratorClient extends make_api_request_js_1.CoreResourceClie
|
|
|
46
46
|
* const res = await client.v1.autoSubtitleGenerator.generate(
|
|
47
47
|
* {
|
|
48
48
|
* assets: { videoFilePath: "/path/to/1234.mp4" },
|
|
49
|
-
* endSeconds:
|
|
49
|
+
* endSeconds: 5.0,
|
|
50
50
|
* name: "Auto Subtitle video",
|
|
51
51
|
* startSeconds: 0.0,
|
|
52
|
-
* style: {},
|
|
52
|
+
* style: { template: "karaoke" },
|
|
53
53
|
* },
|
|
54
54
|
* {
|
|
55
55
|
* waitForCompletion: true,
|
|
@@ -41,7 +41,7 @@ export declare class BodySwapClient extends CoreResourceClient {
|
|
|
41
41
|
* sceneFilePath: "/path/to/scene.png",
|
|
42
42
|
* },
|
|
43
43
|
* name: "My Body Swap image",
|
|
44
|
-
* resolution: "
|
|
44
|
+
* resolution: "640px",
|
|
45
45
|
* },
|
|
46
46
|
* {
|
|
47
47
|
* waitForCompletion: true,
|
|
@@ -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
|
*/
|
|
@@ -50,7 +50,7 @@ class BodySwapClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
50
50
|
* sceneFilePath: "/path/to/scene.png",
|
|
51
51
|
* },
|
|
52
52
|
* name: "My Body Swap image",
|
|
53
|
-
* resolution: "
|
|
53
|
+
* resolution: "640px",
|
|
54
54
|
* },
|
|
55
55
|
* {
|
|
56
56
|
* waitForCompletion: true,
|
|
@@ -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
|
*/
|
|
@@ -40,9 +40,9 @@ export declare class CharacterReplaceClient extends CoreResourceClient {
|
|
|
40
40
|
* imageFilePath: "/path/to/5678.png",
|
|
41
41
|
* videoFilePath: "/path/to/1234.mp4",
|
|
42
42
|
* },
|
|
43
|
-
* endSeconds:
|
|
43
|
+
* endSeconds: 5.0,
|
|
44
44
|
* name: "My Character Replace video",
|
|
45
|
-
* resolution: "
|
|
45
|
+
* resolution: "480p",
|
|
46
46
|
* startSeconds: 0.0,
|
|
47
47
|
* style: { mode: "replace", selectionMode: "auto" },
|
|
48
48
|
* },
|
|
@@ -49,9 +49,9 @@ class CharacterReplaceClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
49
49
|
* imageFilePath: "/path/to/5678.png",
|
|
50
50
|
* videoFilePath: "/path/to/1234.mp4",
|
|
51
51
|
* },
|
|
52
|
-
* endSeconds:
|
|
52
|
+
* endSeconds: 5.0,
|
|
53
53
|
* name: "My Character Replace video",
|
|
54
|
-
* resolution: "
|
|
54
|
+
* resolution: "480p",
|
|
55
55
|
* startSeconds: 0.0,
|
|
56
56
|
* style: { mode: "replace", selectionMode: "auto" },
|
|
57
57
|
* },
|
|
@@ -65,7 +65,7 @@ export declare class FaceSwapClient extends CoreResourceClient {
|
|
|
65
65
|
* videoFilePath: "/path/to/1234.mp4",
|
|
66
66
|
* videoSource: "file",
|
|
67
67
|
* },
|
|
68
|
-
* endSeconds:
|
|
68
|
+
* endSeconds: 5.0,
|
|
69
69
|
* name: "Face Swap video",
|
|
70
70
|
* startSeconds: 0.0,
|
|
71
71
|
* style: { version: "default" },
|
|
@@ -57,7 +57,7 @@ class FaceSwapClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
57
57
|
* videoFilePath: "/path/to/1234.mp4",
|
|
58
58
|
* videoSource: "file",
|
|
59
59
|
* },
|
|
60
|
-
* endSeconds:
|
|
60
|
+
* endSeconds: 5.0,
|
|
61
61
|
* name: "Face Swap video",
|
|
62
62
|
* startSeconds: 0.0,
|
|
63
63
|
* style: { version: "default" },
|
|
@@ -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.2`**:
|
|
16
|
+
* * **`gemini-omni-1.2`**: Toggle-able: no additional credits for audio
|
|
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
|
|
@@ -61,7 +61,7 @@ export type CreateRequest = {
|
|
|
61
61
|
/**
|
|
62
62
|
* The AI model to use for video generation.
|
|
63
63
|
*
|
|
64
|
-
* * `default`:
|
|
64
|
+
* * `default`: automatically selects a model based on subscription tier, resolution and duration.
|
|
65
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.
|
|
@@ -31,7 +31,7 @@ export declare class ImageToVideoClient extends CoreResourceClient {
|
|
|
31
31
|
* assets: { imageFilePath: "/path/to/1234.png" },
|
|
32
32
|
* endSeconds: 5.0,
|
|
33
33
|
* name: "Image To Video video",
|
|
34
|
-
* resolution: "
|
|
34
|
+
* resolution: "480p",
|
|
35
35
|
* },
|
|
36
36
|
* {
|
|
37
37
|
* waitForCompletion: true,
|
|
@@ -48,7 +48,7 @@ class ImageToVideoClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
48
48
|
* assets: { imageFilePath: "/path/to/1234.png" },
|
|
49
49
|
* endSeconds: 5.0,
|
|
50
50
|
* name: "Image To Video video",
|
|
51
|
-
* resolution: "
|
|
51
|
+
* resolution: "480p",
|
|
52
52
|
* },
|
|
53
53
|
* {
|
|
54
54
|
* waitForCompletion: true,
|
|
@@ -41,7 +41,7 @@ export declare class LipSyncClient extends CoreResourceClient {
|
|
|
41
41
|
* videoFilePath: "/path/to/1234.mp4",
|
|
42
42
|
* videoSource: "file",
|
|
43
43
|
* },
|
|
44
|
-
* endSeconds:
|
|
44
|
+
* endSeconds: 5.0,
|
|
45
45
|
* maxFpsLimit: 12.0,
|
|
46
46
|
* name: "Lip Sync video",
|
|
47
47
|
* startSeconds: 0.0,
|
|
@@ -50,7 +50,7 @@ class LipSyncClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
50
50
|
* videoFilePath: "/path/to/1234.mp4",
|
|
51
51
|
* videoSource: "file",
|
|
52
52
|
* },
|
|
53
|
-
* endSeconds:
|
|
53
|
+
* endSeconds: 5.0,
|
|
54
54
|
* maxFpsLimit: 12.0,
|
|
55
55
|
* name: "Lip Sync video",
|
|
56
56
|
* startSeconds: 0.0,
|
|
@@ -6,7 +6,7 @@ import { External$V1TextToVideoCreateBodyStyle, V1TextToVideoCreateBodyStyle } f
|
|
|
6
6
|
*/
|
|
7
7
|
export type CreateRequest = {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Determines the aspect ratio of the output video.
|
|
10
10
|
*
|
|
11
11
|
* * **`gemini-omni-1.2`**: Supports 16:9, 9:16.
|
|
12
12
|
* * **`kling-2.6`**: 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.2`**:
|
|
33
|
+
* * **`gemini-omni-1.2`**: Toggle-able: no additional credits for audio
|
|
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
|
|
@@ -72,7 +72,7 @@ export type CreateRequest = {
|
|
|
72
72
|
/**
|
|
73
73
|
* The AI model to use for video generation.
|
|
74
74
|
*
|
|
75
|
-
* * `default`:
|
|
75
|
+
* * `default`: automatically selects a model based on subscription tier, resolution and duration.
|
|
76
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.
|
|
@@ -22,7 +22,7 @@ export declare class TextToVideoClient extends CoreResourceClient {
|
|
|
22
22
|
* endSeconds: 5.0,
|
|
23
23
|
* name: "Text To Video video",
|
|
24
24
|
* orientation: "landscape",
|
|
25
|
-
* resolution: "
|
|
25
|
+
* resolution: "480p",
|
|
26
26
|
* style: { prompt: "a dog running" },
|
|
27
27
|
* },
|
|
28
28
|
* {
|
|
@@ -47,7 +47,7 @@ class TextToVideoClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
47
47
|
* endSeconds: 5.0,
|
|
48
48
|
* name: "Text To Video video",
|
|
49
49
|
* orientation: "landscape",
|
|
50
|
-
* resolution: "
|
|
50
|
+
* resolution: "480p",
|
|
51
51
|
* style: { prompt: "a dog running" },
|
|
52
52
|
* },
|
|
53
53
|
* {
|
|
@@ -29,7 +29,7 @@ export declare class VideoToVideoClient extends CoreResourceClient {
|
|
|
29
29
|
* const res = await client.v1.videoToVideo.generate(
|
|
30
30
|
* {
|
|
31
31
|
* assets: { videoFilePath: "/path/to/1234.mp4", videoSource: "file" },
|
|
32
|
-
* endSeconds:
|
|
32
|
+
* endSeconds: 5.0,
|
|
33
33
|
* fpsResolution: "HALF",
|
|
34
34
|
* name: "Video To Video video",
|
|
35
35
|
* startSeconds: 0.0,
|
|
@@ -46,7 +46,7 @@ class VideoToVideoClient extends make_api_request_js_1.CoreResourceClient {
|
|
|
46
46
|
* const res = await client.v1.videoToVideo.generate(
|
|
47
47
|
* {
|
|
48
48
|
* assets: { videoFilePath: "/path/to/1234.mp4", videoSource: "file" },
|
|
49
|
-
* endSeconds:
|
|
49
|
+
* endSeconds: 5.0,
|
|
50
50
|
* fpsResolution: "HALF",
|
|
51
51
|
* name: "Video To Video video",
|
|
52
52
|
* startSeconds: 0.0,
|
|
@@ -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
|
-
*
|
|
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" | "gemini-omni-1.2" | "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.2`: 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.2`: 3-15s, `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
|
-
*
|
|
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" | "gemini-omni-1.2" | "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.2, wan-3.0.
|
|
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.2`: 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" | "gemini-omni-1.2" | "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;
|
|
@@ -51,6 +51,7 @@ const SchemaIn$V1AiVideoEditorCreateBody = z
|
|
|
51
51
|
"gemini-omni",
|
|
52
52
|
"gemini-omni-1.1",
|
|
53
53
|
"gemini-omni-1.2",
|
|
54
|
+
"kling-4.0",
|
|
54
55
|
"ltx-2.3",
|
|
55
56
|
"ltx-2.5",
|
|
56
57
|
"wan-3.0",
|
|
@@ -89,6 +90,7 @@ const SchemaOut$V1AiVideoEditorCreateBody = z
|
|
|
89
90
|
"gemini-omni",
|
|
90
91
|
"gemini-omni-1.1",
|
|
91
92
|
"gemini-omni-1.2",
|
|
93
|
+
"kling-4.0",
|
|
92
94
|
"ltx-2.3",
|
|
93
95
|
"ltx-2.5",
|
|
94
96
|
"wan-3.0",
|