magic-hour 0.41.0 → 0.43.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.
- package/README.md +1 -0
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/helpers/generate-type.d.ts +1 -1
- package/dist/resources/v1/ai-gif-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-gif-generator/resource-client.js +1 -1
- package/dist/resources/v1/ai-headshot-generator/resource-client.d.ts +1 -1
- package/dist/resources/v1/ai-headshot-generator/resource-client.js +1 -1
- package/dist/resources/v1/ai-image-editor/resource-client.d.ts +12 -2
- package/dist/resources/v1/ai-image-editor/resource-client.js +13 -7
- package/dist/resources/v1/ai-image-generator/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-image-generator/resource-client.js +2 -2
- package/dist/resources/v1/ai-qr-code-generator/resource-client.d.ts +2 -2
- package/dist/resources/v1/ai-qr-code-generator/resource-client.js +2 -2
- package/dist/resources/v1/ai-voice-generator/resource-client.d.ts +29 -0
- package/dist/resources/v1/ai-voice-generator/resource-client.js +60 -0
- package/dist/resources/v1/audio-projects/resource-client.d.ts +23 -1
- package/dist/resources/v1/audio-projects/resource-client.js +68 -0
- package/dist/resources/v1/audio-projects/resource-client.test.d.ts +1 -0
- package/dist/resources/v1/audio-projects/resource-client.test.js +552 -0
- 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/files/upload-urls/resource-client.d.ts +3 -2
- package/dist/resources/v1/files/upload-urls/resource-client.js +3 -2
- package/dist/types/index.d.ts +2 -0
- package/dist/types/v1-ai-image-editor-create-body-assets.d.ts +13 -3
- package/dist/types/v1-ai-image-editor-create-body-assets.js +6 -2
- package/dist/types/v1-ai-image-editor-create-body-style-model-enum.d.ts +6 -0
- package/dist/types/v1-ai-image-editor-create-body-style-model-enum.js +2 -0
- package/dist/types/v1-ai-image-editor-create-body-style.d.ts +7 -0
- package/dist/types/v1-ai-image-editor-create-body-style.js +4 -0
- package/dist/types/v1-ai-image-generator-create-body-style-quality-mode-enum.d.ts +10 -0
- package/dist/types/v1-ai-image-generator-create-body-style-quality-mode-enum.js +2 -0
- package/dist/types/v1-ai-image-generator-create-body-style.d.ts +11 -0
- package/dist/types/v1-ai-image-generator-create-body-style.js +4 -0
- package/dist/types/v1-ai-voice-generator-create-body-style-voice-name-enum.d.ts +2 -2
- package/dist/types/v1-ai-voice-generator-create-body-style.d.ts +4 -4
- package/dist/types/v1-ai-voice-generator-create-body-style.js +380 -0
- package/dist/types/v1-audio-projects-get-response.d.ts +1 -1
- package/dist/types/v1-face-swap-create-body-style-version-enum.d.ts +1 -1
- package/dist/types/v1-face-swap-create-body-style.d.ts +1 -1
- package/dist/types/v1-files-upload-urls-create-body-items-item.d.ts +1 -1
- package/dist/types/v1-video-projects-get-response.d.ts +1 -1
- package/dist/types/v1-video-to-video-create-body-style-art-style-enum.d.ts +1 -1
- package/dist/types/v1-video-to-video-create-body-style-model-enum.d.ts +1 -1
- package/dist/types/v1-video-to-video-create-body-style.d.ts +4 -4
- package/dist/types/v1-video-to-video-create-body-style.js +34 -2
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
65
65
|
*/
|
|
66
66
|
type: string;
|
|
67
67
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* V1VideoToVideoCreateBodyStyleArtStyleEnum
|
|
3
3
|
*/
|
|
4
|
-
export type V1VideoToVideoCreateBodyStyleArtStyleEnum = "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Bold Anime" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "No Art Style" | "Oil Painting" | "On Fire" | "Origami" | "Painterly Anime" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Realistic Anime" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
|
|
4
|
+
export type V1VideoToVideoCreateBodyStyleArtStyleEnum = "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Bold Anime" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghibli Anime" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "No Art Style" | "Oil Painting" | "On Fire" | "Origami" | "Painterly Anime" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Radiant Anime" | "Realistic Anime" | "Realistic Pixar" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Sharp Anime" | "Soft Anime" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Western Anime" | "Wu Kong" | "Wuxia Anime" | "Zelda";
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* * `Flat 2D Anime` - best for a flat illustration style that's common in most anime.
|
|
5
5
|
* * `default` - use the default recommended model for the selected art style.
|
|
6
6
|
*/
|
|
7
|
-
export type V1VideoToVideoCreateBodyStyleModelEnum = "Absolute Reality" | "Dreamshaper" | "Flat 2D Anime" | "default";
|
|
7
|
+
export type V1VideoToVideoCreateBodyStyleModelEnum = "3D Anime" | "Absolute Reality" | "Dreamshaper" | "Flat 2D Anime" | "Kaywaii" | "Soft Anime" | "Western Anime" | "default";
|
|
@@ -3,14 +3,14 @@ import * as z from "zod";
|
|
|
3
3
|
* V1VideoToVideoCreateBodyStyle
|
|
4
4
|
*/
|
|
5
5
|
export type V1VideoToVideoCreateBodyStyle = {
|
|
6
|
-
artStyle: "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Bold Anime" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "No Art Style" | "Oil Painting" | "On Fire" | "Origami" | "Painterly Anime" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Realistic Anime" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
|
|
6
|
+
artStyle: "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Bold Anime" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghibli Anime" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "No Art Style" | "Oil Painting" | "On Fire" | "Origami" | "Painterly Anime" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Radiant Anime" | "Realistic Anime" | "Realistic Pixar" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Sharp Anime" | "Soft Anime" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Western Anime" | "Wu Kong" | "Wuxia Anime" | "Zelda";
|
|
7
7
|
/**
|
|
8
8
|
* * `Dreamshaper` - a good all-around model that works for both animations as well as realism.
|
|
9
9
|
* * `Absolute Reality` - better at realism, but you'll often get similar results with Dreamshaper as well.
|
|
10
10
|
* * `Flat 2D Anime` - best for a flat illustration style that's common in most anime.
|
|
11
11
|
* * `default` - use the default recommended model for the selected art style.
|
|
12
12
|
*/
|
|
13
|
-
model?: ("Absolute Reality" | "Dreamshaper" | "Flat 2D Anime" | "default") | undefined;
|
|
13
|
+
model?: ("3D Anime" | "Absolute Reality" | "Dreamshaper" | "Flat 2D Anime" | "Kaywaii" | "Soft Anime" | "Western Anime" | "default") | undefined;
|
|
14
14
|
/**
|
|
15
15
|
* The prompt used for the video. Prompt is required if `prompt_type` is `custom` or `append_default`. If `prompt_type` is `default`, then the `prompt` value passed will be ignored.
|
|
16
16
|
*/
|
|
@@ -34,8 +34,8 @@ export type V1VideoToVideoCreateBodyStyle = {
|
|
|
34
34
|
* we expect to come in as network data
|
|
35
35
|
*/
|
|
36
36
|
export type External$V1VideoToVideoCreateBodyStyle = {
|
|
37
|
-
art_style: "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Bold Anime" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "No Art Style" | "Oil Painting" | "On Fire" | "Origami" | "Painterly Anime" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Realistic Anime" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
|
|
38
|
-
model?: ("Absolute Reality" | "Dreamshaper" | "Flat 2D Anime" | "default") | undefined;
|
|
37
|
+
art_style: "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Bold Anime" | "Celestial Skin" | "Chinese Swordsmen" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghibli Anime" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Mario" | "Master Chief" | "Mech" | "Minecraft" | "Mystique" | "Naruto" | "Neon Dream" | "No Art Style" | "Oil Painting" | "On Fire" | "Origami" | "Painterly Anime" | "Pixar" | "Pixel" | "Power Armor" | "Power Ranger" | "Radiant Anime" | "Realistic Anime" | "Realistic Pixar" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Sharp Anime" | "Soft Anime" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Tomb Raider" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Western Anime" | "Wu Kong" | "Wuxia Anime" | "Zelda";
|
|
38
|
+
model?: ("3D Anime" | "Absolute Reality" | "Dreamshaper" | "Flat 2D Anime" | "Kaywaii" | "Soft Anime" | "Western Anime" | "default") | undefined;
|
|
39
39
|
prompt?: string | null | undefined;
|
|
40
40
|
prompt_type?: ("append_default" | "custom" | "default") | undefined;
|
|
41
41
|
version?: ("default" | "v1" | "v2") | undefined;
|
|
@@ -63,6 +63,7 @@ const SchemaIn$V1VideoToVideoCreateBodyStyle = z
|
|
|
63
63
|
"Future Bot",
|
|
64
64
|
"Futuristic Fantasy",
|
|
65
65
|
"GTA",
|
|
66
|
+
"Ghibli Anime",
|
|
66
67
|
"Ghost",
|
|
67
68
|
"Gundam",
|
|
68
69
|
"Hologram",
|
|
@@ -91,11 +92,15 @@ const SchemaIn$V1VideoToVideoCreateBodyStyle = z
|
|
|
91
92
|
"Pixel",
|
|
92
93
|
"Power Armor",
|
|
93
94
|
"Power Ranger",
|
|
95
|
+
"Radiant Anime",
|
|
94
96
|
"Realistic Anime",
|
|
97
|
+
"Realistic Pixar",
|
|
95
98
|
"Retro Anime",
|
|
96
99
|
"Retro Sci-Fi",
|
|
97
100
|
"Samurai",
|
|
98
101
|
"Samurai Bot",
|
|
102
|
+
"Sharp Anime",
|
|
103
|
+
"Soft Anime",
|
|
99
104
|
"Solid Snake",
|
|
100
105
|
"Spartan",
|
|
101
106
|
"Starfield",
|
|
@@ -108,11 +113,22 @@ const SchemaIn$V1VideoToVideoCreateBodyStyle = z
|
|
|
108
113
|
"Van Gogh",
|
|
109
114
|
"Viking",
|
|
110
115
|
"Watercolor",
|
|
116
|
+
"Western Anime",
|
|
111
117
|
"Wu Kong",
|
|
118
|
+
"Wuxia Anime",
|
|
112
119
|
"Zelda",
|
|
113
120
|
]),
|
|
114
121
|
model: z
|
|
115
|
-
.enum([
|
|
122
|
+
.enum([
|
|
123
|
+
"3D Anime",
|
|
124
|
+
"Absolute Reality",
|
|
125
|
+
"Dreamshaper",
|
|
126
|
+
"Flat 2D Anime",
|
|
127
|
+
"Kaywaii",
|
|
128
|
+
"Soft Anime",
|
|
129
|
+
"Western Anime",
|
|
130
|
+
"default",
|
|
131
|
+
])
|
|
116
132
|
.optional(),
|
|
117
133
|
prompt: z.string().nullable().optional(),
|
|
118
134
|
prompt_type: z.enum(["append_default", "custom", "default"]).optional(),
|
|
@@ -155,6 +171,7 @@ const SchemaOut$V1VideoToVideoCreateBodyStyle = z
|
|
|
155
171
|
"Future Bot",
|
|
156
172
|
"Futuristic Fantasy",
|
|
157
173
|
"GTA",
|
|
174
|
+
"Ghibli Anime",
|
|
158
175
|
"Ghost",
|
|
159
176
|
"Gundam",
|
|
160
177
|
"Hologram",
|
|
@@ -183,11 +200,15 @@ const SchemaOut$V1VideoToVideoCreateBodyStyle = z
|
|
|
183
200
|
"Pixel",
|
|
184
201
|
"Power Armor",
|
|
185
202
|
"Power Ranger",
|
|
203
|
+
"Radiant Anime",
|
|
186
204
|
"Realistic Anime",
|
|
205
|
+
"Realistic Pixar",
|
|
187
206
|
"Retro Anime",
|
|
188
207
|
"Retro Sci-Fi",
|
|
189
208
|
"Samurai",
|
|
190
209
|
"Samurai Bot",
|
|
210
|
+
"Sharp Anime",
|
|
211
|
+
"Soft Anime",
|
|
191
212
|
"Solid Snake",
|
|
192
213
|
"Spartan",
|
|
193
214
|
"Starfield",
|
|
@@ -200,11 +221,22 @@ const SchemaOut$V1VideoToVideoCreateBodyStyle = z
|
|
|
200
221
|
"Van Gogh",
|
|
201
222
|
"Viking",
|
|
202
223
|
"Watercolor",
|
|
224
|
+
"Western Anime",
|
|
203
225
|
"Wu Kong",
|
|
226
|
+
"Wuxia Anime",
|
|
204
227
|
"Zelda",
|
|
205
228
|
]),
|
|
206
229
|
model: z
|
|
207
|
-
.enum([
|
|
230
|
+
.enum([
|
|
231
|
+
"3D Anime",
|
|
232
|
+
"Absolute Reality",
|
|
233
|
+
"Dreamshaper",
|
|
234
|
+
"Flat 2D Anime",
|
|
235
|
+
"Kaywaii",
|
|
236
|
+
"Soft Anime",
|
|
237
|
+
"Western Anime",
|
|
238
|
+
"default",
|
|
239
|
+
])
|
|
208
240
|
.optional(),
|
|
209
241
|
prompt: z.string().nullable().optional(),
|
|
210
242
|
promptType: z.enum(["append_default", "custom", "default"]).optional(),
|