magic-hour 0.56.1 → 0.58.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 +4 -0
- package/dist/environment.d.ts +1 -1
- package/dist/environment.js +1 -1
- package/dist/resources/v1/head-swap/index.d.ts +2 -0
- package/dist/resources/v1/head-swap/index.js +5 -0
- package/dist/resources/v1/head-swap/request-types.d.ts +33 -0
- package/dist/resources/v1/head-swap/request-types.js +76 -0
- package/dist/resources/v1/head-swap/resource-client.d.ts +64 -0
- package/dist/resources/v1/head-swap/resource-client.js +105 -0
- package/dist/resources/v1/image-to-video/request-types.d.ts +7 -3
- package/dist/resources/v1/image-to-video/request-types.js +2 -0
- package/dist/resources/v1/index.d.ts +1 -0
- package/dist/resources/v1/index.js +2 -1
- package/dist/resources/v1/resource-client.d.ts +3 -0
- package/dist/resources/v1/resource-client.js +5 -0
- package/dist/resources/v1/text-to-video/request-types.d.ts +8 -3
- package/dist/resources/v1/text-to-video/request-types.js +2 -0
- package/dist/types/index.d.ts +3 -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 +3 -3
- package/dist/types/v1-ai-voice-generator-create-body-style.js +0 -2
- package/dist/types/v1-head-swap-create-body-assets.d.ts +37 -0
- package/dist/types/v1-head-swap-create-body-assets.js +71 -0
- package/dist/types/v1-head-swap-create-body.d.ts +33 -0
- package/dist/types/v1-head-swap-create-body.js +76 -0
- package/dist/types/v1-head-swap-create-response.d.ts +34 -0
- package/dist/types/v1-head-swap-create-response.js +75 -0
- package/dist/types/v1-image-to-video-create-body-assets.d.ts +1 -0
- package/dist/types/v1-image-to-video-create-body-model-enum.d.ts +3 -2
- package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +1 -0
- package/dist/types/v1-image-to-video-create-body.d.ts +7 -3
- package/dist/types/v1-image-to-video-create-body.js +2 -0
- package/dist/types/v1-text-to-video-create-body-aspect-ratio-enum.d.ts +1 -0
- package/dist/types/v1-text-to-video-create-body-model-enum.d.ts +3 -2
- package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +1 -0
- package/dist/types/v1-text-to-video-create-body.d.ts +8 -3
- package/dist/types/v1-text-to-video-create-body.js +2 -0
- package/package.json +1 -1
|
@@ -8,9 +8,9 @@ export type V1AiVoiceGeneratorCreateBodyStyle = {
|
|
|
8
8
|
*/
|
|
9
9
|
prompt: string;
|
|
10
10
|
/**
|
|
11
|
-
* The voice to use for the speech. Available voices: Elon Musk, Mark Zuckerberg, Joe Rogan, Barack Obama, Morgan Freeman, Kanye West, Donald Trump, Joe Biden, Kim Kardashian, Taylor Swift, James Earl Jones, Samuel L. Jackson, Jeff Goldblum, David Attenborough, Sean Connery, Cillian Murphy, Anne Hathaway, Julia Roberts, Natalie Portman, Steve Carell, Amy Poehler, Stephen Colbert, Jimmy Fallon, David Letterman, Alex Trebek, Katy Perry, Prince, Kevin Bacon, Tom Hiddleston, Adam Driver, Alan Rickman, Alexz Johnson, Ana Gasteyer, Andrew Rannells, Arden Cho, Bear Grylls, Ben McKenzie, Ben Stiller, Ben Whishaw, Billie Joe Armstrong, Bingbing Li,
|
|
11
|
+
* The voice to use for the speech. Available voices: Elon Musk, Mark Zuckerberg, Joe Rogan, Barack Obama, Morgan Freeman, Kanye West, Donald Trump, Joe Biden, Kim Kardashian, Taylor Swift, James Earl Jones, Samuel L. Jackson, Jeff Goldblum, David Attenborough, Sean Connery, Cillian Murphy, Anne Hathaway, Julia Roberts, Natalie Portman, Steve Carell, Amy Poehler, Stephen Colbert, Jimmy Fallon, David Letterman, Alex Trebek, Katy Perry, Prince, Kevin Bacon, Tom Hiddleston, Adam Driver, Alan Rickman, Alexz Johnson, Ana Gasteyer, Andrew Rannells, Arden Cho, Bear Grylls, Ben McKenzie, Ben Stiller, Ben Whishaw, Billie Joe Armstrong, Bingbing Li, Booboo Stewart, Bradley Steven Perry, Bruno Mars, Caity Lotz, Cameron Boyce, Candice Accola, Carrie Underwood, Casey Affleck, Caterina Scorsone, Cedric the Entertainer, Chace Crawford, Chadwick Boseman, Charlie Day, Chris Hemsworth, Chris Martin, Christopher Mintz-Plasse, Dan Fogler, Dan Stevens, Daniel Dae Kim, Danielle Panabaker, Dave Bautista, David Schwimmer, Denis Leary, Derek Mears, Diego Luna, Donald Glover, Donnie Yen, Doutzen Kroes, Dove Cameron, Dr. Dre, Drake Bell, Elle Fanning, Ernie Hudson, Fergie, Forest Whitaker, Francia Raisa, Freddie Highmore, Gillian Jacobs, Gina Carano, Ginnifer Goodwin, Gordon Ramsay, Guy Pearce, Gwendoline Christie, Hailee Steinfeld, Howie Mandel, Hugh Jackman, Hugh Laurie, J. K. Simmons, Jack Black, Jared Leto, Jennifer Carpenter, Kesha, Kris Jenner, Kristen Bell, Lorde, Matt Smith, Marilyn Monroe, Charlie Chaplin, Albert Einstein, Abraham Lincoln, John F. Kennedy, Lucille Ball, A.R. Rahman, Aamir Khan, Ajay Devgn, Akshay Kumar, Alain Delon, Alan Alda, Alan Cumming, Amitabh Bachchan, Ang Lee, Ansel Elgort, Anthony Anderson, Anthony Mackie, Armie Hammer, Asa Butterfield, B.J. Novak, Barbara Eden, Betty White, Bill Nighy, Bill Pullman, Blake Shelton, Bonnie Wright, Brad Paisley, Brendan Gleeson, Brian Cox, Bruno Ganz, Burt Reynolds, Carrie Fisher, Charles Dance, Chiwetel Ejiofor, Chris Pine, Christina Hendricks, Christina Ricci, Cyndi Lauper, Dakota Fanning, Damian Lewis, Dan Aykroyd, Daniel Craig, David Oyelowo, David Tennant, Diane Keaton, Diane Kruger, Dick Van Dyke, Domhnall Gleeson, Dominic Cooper, Donald Sutherland, Drew Carey, Eartha Kitt, Eddie Izzard, Edward Asner, Eli Roth, Elisabeth Moss, Ellen Burstyn, Emile Hirsch, Ezra Miller, Felicity Jones, Fiona Shaw, Florence Henderson, Freida Pinto, Geena Davis, Gemma Arterton, Geri Halliwell, Glenn Close, Gloria Steinem, Greta Gerwig, Gugu Mbatha-Raw, Hans Zimmer, Harry Connick Jr., Harvey Keitel, Helena Bonham Carter, Henry Cavill, Hilary Swank, Hugh Bonneville, Idina Menzel, Imelda Staunton, Ingrid Bergman, Irrfan Khan, Isla Fisher, Iwan Rheon, Jack Lemmon, Janet Jackson, Jason Bateman, Jason Segel, Jennifer Coolidge, Johnny Galecki, Jon Favreau, Joseph Gordon-Levitt, Josh Brolin, Josh Gad, Josh Groban, Julia Louis-Dreyfus, Kristen Stewart, Kristen Wiig, Rooney Mara, Caitriona Balfe, J.J. Abrams, Zoe Saldana
|
|
12
12
|
*/
|
|
13
|
-
voiceName: "A.R. Rahman" | "Aamir Khan" | "Abraham Lincoln" | "Adam Driver" | "Ajay Devgn" | "Akshay Kumar" | "Alain Delon" | "Alan Alda" | "Alan Cumming" | "Alan Rickman" | "Albert Einstein" | "Alex Trebek" | "Alexz Johnson" | "Amitabh Bachchan" | "Amy Poehler" | "Ana Gasteyer" | "Andrew Rannells" | "Ang Lee" | "Anne Hathaway" | "Ansel Elgort" | "Anthony Anderson" | "Anthony Mackie" | "Arden Cho" | "Armie Hammer" | "Asa Butterfield" | "B.J. Novak" | "Barack Obama" | "Barbara Eden" | "Bear Grylls" | "Ben McKenzie" | "Ben Stiller" | "Ben Whishaw" | "Betty White" | "Bill Nighy" | "Bill Pullman" | "Billie Joe Armstrong" | "Bingbing Li" | "Blake Shelton" | "
|
|
13
|
+
voiceName: "A.R. Rahman" | "Aamir Khan" | "Abraham Lincoln" | "Adam Driver" | "Ajay Devgn" | "Akshay Kumar" | "Alain Delon" | "Alan Alda" | "Alan Cumming" | "Alan Rickman" | "Albert Einstein" | "Alex Trebek" | "Alexz Johnson" | "Amitabh Bachchan" | "Amy Poehler" | "Ana Gasteyer" | "Andrew Rannells" | "Ang Lee" | "Anne Hathaway" | "Ansel Elgort" | "Anthony Anderson" | "Anthony Mackie" | "Arden Cho" | "Armie Hammer" | "Asa Butterfield" | "B.J. Novak" | "Barack Obama" | "Barbara Eden" | "Bear Grylls" | "Ben McKenzie" | "Ben Stiller" | "Ben Whishaw" | "Betty White" | "Bill Nighy" | "Bill Pullman" | "Billie Joe Armstrong" | "Bingbing Li" | "Blake Shelton" | "Bonnie Wright" | "Booboo Stewart" | "Brad Paisley" | "Bradley Steven Perry" | "Brendan Gleeson" | "Brian Cox" | "Bruno Ganz" | "Bruno Mars" | "Burt Reynolds" | "Caitriona Balfe" | "Caity Lotz" | "Cameron Boyce" | "Candice Accola" | "Carrie Fisher" | "Carrie Underwood" | "Casey Affleck" | "Caterina Scorsone" | "Cedric the Entertainer" | "Chace Crawford" | "Chadwick Boseman" | "Charles Dance" | "Charlie Chaplin" | "Charlie Day" | "Chiwetel Ejiofor" | "Chris Hemsworth" | "Chris Martin" | "Chris Pine" | "Christina Hendricks" | "Christina Ricci" | "Christopher Mintz-Plasse" | "Cillian Murphy" | "Cyndi Lauper" | "Dakota Fanning" | "Damian Lewis" | "Dan Aykroyd" | "Dan Fogler" | "Dan Stevens" | "Daniel Craig" | "Daniel Dae Kim" | "Danielle Panabaker" | "Dave Bautista" | "David Attenborough" | "David Letterman" | "David Oyelowo" | "David Schwimmer" | "David Tennant" | "Denis Leary" | "Derek Mears" | "Diane Keaton" | "Diane Kruger" | "Dick Van Dyke" | "Diego Luna" | "Domhnall Gleeson" | "Dominic Cooper" | "Donald Glover" | "Donald Sutherland" | "Donald Trump" | "Donnie Yen" | "Doutzen Kroes" | "Dove Cameron" | "Dr. Dre" | "Drake Bell" | "Drew Carey" | "Eartha Kitt" | "Eddie Izzard" | "Edward Asner" | "Eli Roth" | "Elisabeth Moss" | "Elle Fanning" | "Ellen Burstyn" | "Elon Musk" | "Emile Hirsch" | "Ernie Hudson" | "Ezra Miller" | "Felicity Jones" | "Fergie" | "Fiona Shaw" | "Florence Henderson" | "Forest Whitaker" | "Francia Raisa" | "Freddie Highmore" | "Freida Pinto" | "Geena Davis" | "Gemma Arterton" | "Geri Halliwell" | "Gillian Jacobs" | "Gina Carano" | "Ginnifer Goodwin" | "Glenn Close" | "Gloria Steinem" | "Gordon Ramsay" | "Greta Gerwig" | "Gugu Mbatha-Raw" | "Guy Pearce" | "Gwendoline Christie" | "Hailee Steinfeld" | "Hans Zimmer" | "Harry Connick Jr." | "Harvey Keitel" | "Helena Bonham Carter" | "Henry Cavill" | "Hilary Swank" | "Howie Mandel" | "Hugh Bonneville" | "Hugh Jackman" | "Hugh Laurie" | "Idina Menzel" | "Imelda Staunton" | "Ingrid Bergman" | "Irrfan Khan" | "Isla Fisher" | "Iwan Rheon" | "J. K. Simmons" | "J.J. Abrams" | "Jack Black" | "Jack Lemmon" | "James Earl Jones" | "Janet Jackson" | "Jared Leto" | "Jason Bateman" | "Jason Segel" | "Jeff Goldblum" | "Jennifer Carpenter" | "Jennifer Coolidge" | "Jimmy Fallon" | "Joe Biden" | "Joe Rogan" | "John F. Kennedy" | "Johnny Galecki" | "Jon Favreau" | "Joseph Gordon-Levitt" | "Josh Brolin" | "Josh Gad" | "Josh Groban" | "Julia Louis-Dreyfus" | "Julia Roberts" | "Kanye West" | "Katy Perry" | "Kesha" | "Kevin Bacon" | "Kim Kardashian" | "Kris Jenner" | "Kristen Bell" | "Kristen Stewart" | "Kristen Wiig" | "Lorde" | "Lucille Ball" | "Marilyn Monroe" | "Mark Zuckerberg" | "Matt Smith" | "Morgan Freeman" | "Natalie Portman" | "Prince" | "Rooney Mara" | "Samuel L. Jackson" | "Sean Connery" | "Stephen Colbert" | "Steve Carell" | "Taylor Swift" | "Tom Hiddleston" | "Zoe Saldana";
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* @internal
|
|
@@ -19,7 +19,7 @@ export type V1AiVoiceGeneratorCreateBodyStyle = {
|
|
|
19
19
|
*/
|
|
20
20
|
export type External$V1AiVoiceGeneratorCreateBodyStyle = {
|
|
21
21
|
prompt: string;
|
|
22
|
-
voice_name: "A.R. Rahman" | "Aamir Khan" | "Abraham Lincoln" | "Adam Driver" | "Ajay Devgn" | "Akshay Kumar" | "Alain Delon" | "Alan Alda" | "Alan Cumming" | "Alan Rickman" | "Albert Einstein" | "Alex Trebek" | "Alexz Johnson" | "Amitabh Bachchan" | "Amy Poehler" | "Ana Gasteyer" | "Andrew Rannells" | "Ang Lee" | "Anne Hathaway" | "Ansel Elgort" | "Anthony Anderson" | "Anthony Mackie" | "Arden Cho" | "Armie Hammer" | "Asa Butterfield" | "B.J. Novak" | "Barack Obama" | "Barbara Eden" | "Bear Grylls" | "Ben McKenzie" | "Ben Stiller" | "Ben Whishaw" | "Betty White" | "Bill Nighy" | "Bill Pullman" | "Billie Joe Armstrong" | "Bingbing Li" | "Blake Shelton" | "
|
|
22
|
+
voice_name: "A.R. Rahman" | "Aamir Khan" | "Abraham Lincoln" | "Adam Driver" | "Ajay Devgn" | "Akshay Kumar" | "Alain Delon" | "Alan Alda" | "Alan Cumming" | "Alan Rickman" | "Albert Einstein" | "Alex Trebek" | "Alexz Johnson" | "Amitabh Bachchan" | "Amy Poehler" | "Ana Gasteyer" | "Andrew Rannells" | "Ang Lee" | "Anne Hathaway" | "Ansel Elgort" | "Anthony Anderson" | "Anthony Mackie" | "Arden Cho" | "Armie Hammer" | "Asa Butterfield" | "B.J. Novak" | "Barack Obama" | "Barbara Eden" | "Bear Grylls" | "Ben McKenzie" | "Ben Stiller" | "Ben Whishaw" | "Betty White" | "Bill Nighy" | "Bill Pullman" | "Billie Joe Armstrong" | "Bingbing Li" | "Blake Shelton" | "Bonnie Wright" | "Booboo Stewart" | "Brad Paisley" | "Bradley Steven Perry" | "Brendan Gleeson" | "Brian Cox" | "Bruno Ganz" | "Bruno Mars" | "Burt Reynolds" | "Caitriona Balfe" | "Caity Lotz" | "Cameron Boyce" | "Candice Accola" | "Carrie Fisher" | "Carrie Underwood" | "Casey Affleck" | "Caterina Scorsone" | "Cedric the Entertainer" | "Chace Crawford" | "Chadwick Boseman" | "Charles Dance" | "Charlie Chaplin" | "Charlie Day" | "Chiwetel Ejiofor" | "Chris Hemsworth" | "Chris Martin" | "Chris Pine" | "Christina Hendricks" | "Christina Ricci" | "Christopher Mintz-Plasse" | "Cillian Murphy" | "Cyndi Lauper" | "Dakota Fanning" | "Damian Lewis" | "Dan Aykroyd" | "Dan Fogler" | "Dan Stevens" | "Daniel Craig" | "Daniel Dae Kim" | "Danielle Panabaker" | "Dave Bautista" | "David Attenborough" | "David Letterman" | "David Oyelowo" | "David Schwimmer" | "David Tennant" | "Denis Leary" | "Derek Mears" | "Diane Keaton" | "Diane Kruger" | "Dick Van Dyke" | "Diego Luna" | "Domhnall Gleeson" | "Dominic Cooper" | "Donald Glover" | "Donald Sutherland" | "Donald Trump" | "Donnie Yen" | "Doutzen Kroes" | "Dove Cameron" | "Dr. Dre" | "Drake Bell" | "Drew Carey" | "Eartha Kitt" | "Eddie Izzard" | "Edward Asner" | "Eli Roth" | "Elisabeth Moss" | "Elle Fanning" | "Ellen Burstyn" | "Elon Musk" | "Emile Hirsch" | "Ernie Hudson" | "Ezra Miller" | "Felicity Jones" | "Fergie" | "Fiona Shaw" | "Florence Henderson" | "Forest Whitaker" | "Francia Raisa" | "Freddie Highmore" | "Freida Pinto" | "Geena Davis" | "Gemma Arterton" | "Geri Halliwell" | "Gillian Jacobs" | "Gina Carano" | "Ginnifer Goodwin" | "Glenn Close" | "Gloria Steinem" | "Gordon Ramsay" | "Greta Gerwig" | "Gugu Mbatha-Raw" | "Guy Pearce" | "Gwendoline Christie" | "Hailee Steinfeld" | "Hans Zimmer" | "Harry Connick Jr." | "Harvey Keitel" | "Helena Bonham Carter" | "Henry Cavill" | "Hilary Swank" | "Howie Mandel" | "Hugh Bonneville" | "Hugh Jackman" | "Hugh Laurie" | "Idina Menzel" | "Imelda Staunton" | "Ingrid Bergman" | "Irrfan Khan" | "Isla Fisher" | "Iwan Rheon" | "J. K. Simmons" | "J.J. Abrams" | "Jack Black" | "Jack Lemmon" | "James Earl Jones" | "Janet Jackson" | "Jared Leto" | "Jason Bateman" | "Jason Segel" | "Jeff Goldblum" | "Jennifer Carpenter" | "Jennifer Coolidge" | "Jimmy Fallon" | "Joe Biden" | "Joe Rogan" | "John F. Kennedy" | "Johnny Galecki" | "Jon Favreau" | "Joseph Gordon-Levitt" | "Josh Brolin" | "Josh Gad" | "Josh Groban" | "Julia Louis-Dreyfus" | "Julia Roberts" | "Kanye West" | "Katy Perry" | "Kesha" | "Kevin Bacon" | "Kim Kardashian" | "Kris Jenner" | "Kristen Bell" | "Kristen Stewart" | "Kristen Wiig" | "Lorde" | "Lucille Ball" | "Marilyn Monroe" | "Mark Zuckerberg" | "Matt Smith" | "Morgan Freeman" | "Natalie Portman" | "Prince" | "Rooney Mara" | "Samuel L. Jackson" | "Sean Connery" | "Stephen Colbert" | "Steve Carell" | "Taylor Swift" | "Tom Hiddleston" | "Zoe Saldana";
|
|
23
23
|
};
|
|
24
24
|
export declare const Schemas$V1AiVoiceGeneratorCreateBodyStyle: {
|
|
25
25
|
in: z.ZodType<V1AiVoiceGeneratorCreateBodyStyle, z.ZodTypeDef, unknown>;
|
|
@@ -81,7 +81,6 @@ const SchemaIn$V1AiVoiceGeneratorCreateBodyStyle = z
|
|
|
81
81
|
"Billie Joe Armstrong",
|
|
82
82
|
"Bingbing Li",
|
|
83
83
|
"Blake Shelton",
|
|
84
|
-
"Bob Barker",
|
|
85
84
|
"Bonnie Wright",
|
|
86
85
|
"Booboo Stewart",
|
|
87
86
|
"Brad Paisley",
|
|
@@ -297,7 +296,6 @@ const SchemaOut$V1AiVoiceGeneratorCreateBodyStyle = z
|
|
|
297
296
|
"Billie Joe Armstrong",
|
|
298
297
|
"Bingbing Li",
|
|
299
298
|
"Blake Shelton",
|
|
300
|
-
"Bob Barker",
|
|
301
299
|
"Bonnie Wright",
|
|
302
300
|
"Booboo Stewart",
|
|
303
301
|
"Brad Paisley",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Provide the body and head images for head swap
|
|
4
|
+
*/
|
|
5
|
+
export type V1HeadSwapCreateBodyAssets = {
|
|
6
|
+
/**
|
|
7
|
+
* Image that receives the swapped head. This value is either
|
|
8
|
+
* - a direct URL to the video file
|
|
9
|
+
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
10
|
+
*
|
|
11
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
bodyFilePath: string;
|
|
15
|
+
/**
|
|
16
|
+
* Image of the head to place on the body. This value is either
|
|
17
|
+
* - a direct URL to the video file
|
|
18
|
+
* - `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls).
|
|
19
|
+
*
|
|
20
|
+
* See the [file upload guide](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls#input-file) for details.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
headFilePath: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* V1HeadSwapCreateBodyAssets without any key transformation, this is what
|
|
28
|
+
* we expect to come in as network data
|
|
29
|
+
*/
|
|
30
|
+
export type External$V1HeadSwapCreateBodyAssets = {
|
|
31
|
+
body_file_path: string;
|
|
32
|
+
head_file_path: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const Schemas$V1HeadSwapCreateBodyAssets: {
|
|
35
|
+
in: z.ZodType<V1HeadSwapCreateBodyAssets, z.ZodTypeDef, unknown>;
|
|
36
|
+
out: z.ZodType<External$V1HeadSwapCreateBodyAssets, z.ZodTypeDef, V1HeadSwapCreateBodyAssets>;
|
|
37
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1HeadSwapCreateBodyAssets = void 0;
|
|
37
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1HeadSwapCreateBodyAssets
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1HeadSwapCreateBodyAssets = z
|
|
43
|
+
.object({
|
|
44
|
+
body_file_path: z.string(),
|
|
45
|
+
head_file_path: z.string(),
|
|
46
|
+
})
|
|
47
|
+
.transform((obj) => {
|
|
48
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
49
|
+
body_file_path: "bodyFilePath",
|
|
50
|
+
head_file_path: "headFilePath",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1HeadSwapCreateBodyAssets
|
|
56
|
+
*/
|
|
57
|
+
const SchemaOut$V1HeadSwapCreateBodyAssets = z
|
|
58
|
+
.object({
|
|
59
|
+
bodyFilePath: z.string(),
|
|
60
|
+
headFilePath: z.string(),
|
|
61
|
+
})
|
|
62
|
+
.transform((obj) => {
|
|
63
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
64
|
+
bodyFilePath: "body_file_path",
|
|
65
|
+
headFilePath: "head_file_path",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
exports.Schemas$V1HeadSwapCreateBodyAssets = {
|
|
69
|
+
in: SchemaIn$V1HeadSwapCreateBodyAssets,
|
|
70
|
+
out: SchemaOut$V1HeadSwapCreateBodyAssets,
|
|
71
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { External$V1HeadSwapCreateBodyAssets, V1HeadSwapCreateBodyAssets } from "./v1-head-swap-create-body-assets";
|
|
3
|
+
/**
|
|
4
|
+
* V1HeadSwapCreateBody
|
|
5
|
+
*/
|
|
6
|
+
export type V1HeadSwapCreateBody = {
|
|
7
|
+
/**
|
|
8
|
+
* Provide the body and head images for head swap
|
|
9
|
+
*/
|
|
10
|
+
assets: V1HeadSwapCreateBodyAssets;
|
|
11
|
+
/**
|
|
12
|
+
* Constrains the larger dimension (height or width) of the output. Omit to use the maximum allowed for your plan (capped at 2048px). Values above your plan maximum are clamped down to your plan's maximum.
|
|
13
|
+
*/
|
|
14
|
+
maxResolution?: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Give your image a custom name for easy identification.
|
|
17
|
+
*/
|
|
18
|
+
name?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* V1HeadSwapCreateBody without any key transformation, this is what
|
|
23
|
+
* we expect to come in as network data
|
|
24
|
+
*/
|
|
25
|
+
export type External$V1HeadSwapCreateBody = {
|
|
26
|
+
assets: External$V1HeadSwapCreateBodyAssets;
|
|
27
|
+
max_resolution?: number | undefined;
|
|
28
|
+
name?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
export declare const Schemas$V1HeadSwapCreateBody: {
|
|
31
|
+
in: z.ZodType<V1HeadSwapCreateBody, z.ZodTypeDef, unknown>;
|
|
32
|
+
out: z.ZodType<External$V1HeadSwapCreateBody, z.ZodTypeDef, V1HeadSwapCreateBody>;
|
|
33
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1HeadSwapCreateBody = void 0;
|
|
37
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
const v1_head_swap_create_body_assets_1 = require("./v1-head-swap-create-body-assets");
|
|
40
|
+
/**
|
|
41
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1HeadSwapCreateBody
|
|
42
|
+
*/
|
|
43
|
+
const SchemaIn$V1HeadSwapCreateBody = z
|
|
44
|
+
.object({
|
|
45
|
+
assets: v1_head_swap_create_body_assets_1.Schemas$V1HeadSwapCreateBodyAssets.in,
|
|
46
|
+
max_resolution: z.number().int().optional(),
|
|
47
|
+
name: z.string().optional(),
|
|
48
|
+
})
|
|
49
|
+
.transform((obj) => {
|
|
50
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
51
|
+
assets: "assets",
|
|
52
|
+
max_resolution: "maxResolution",
|
|
53
|
+
name: "name",
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1HeadSwapCreateBody
|
|
59
|
+
*/
|
|
60
|
+
const SchemaOut$V1HeadSwapCreateBody = z
|
|
61
|
+
.object({
|
|
62
|
+
assets: v1_head_swap_create_body_assets_1.Schemas$V1HeadSwapCreateBodyAssets.out,
|
|
63
|
+
maxResolution: z.number().int().optional(),
|
|
64
|
+
name: z.string().optional(),
|
|
65
|
+
})
|
|
66
|
+
.transform((obj) => {
|
|
67
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
68
|
+
assets: "assets",
|
|
69
|
+
maxResolution: "max_resolution",
|
|
70
|
+
name: "name",
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
exports.Schemas$V1HeadSwapCreateBody = {
|
|
74
|
+
in: SchemaIn$V1HeadSwapCreateBody,
|
|
75
|
+
out: SchemaOut$V1HeadSwapCreateBody,
|
|
76
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Success
|
|
4
|
+
*/
|
|
5
|
+
export type V1HeadSwapCreateResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.
|
|
8
|
+
*
|
|
9
|
+
* If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.
|
|
10
|
+
*/
|
|
11
|
+
creditsCharged: number;
|
|
12
|
+
/**
|
|
13
|
+
* Deprecated: Previously represented the number of frames (original name of our credit system) used for image generation. Use 'credits_charged' instead.
|
|
14
|
+
*/
|
|
15
|
+
frameCost: number;
|
|
16
|
+
/**
|
|
17
|
+
* Unique ID of the image. Use it with the [Get image Project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch status and downloads.
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
* V1HeadSwapCreateResponse without any key transformation, this is what
|
|
24
|
+
* we expect to come in as network data
|
|
25
|
+
*/
|
|
26
|
+
export type External$V1HeadSwapCreateResponse = {
|
|
27
|
+
credits_charged: number;
|
|
28
|
+
frame_cost: number;
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const Schemas$V1HeadSwapCreateResponse: {
|
|
32
|
+
in: z.ZodType<V1HeadSwapCreateResponse, z.ZodTypeDef, unknown>;
|
|
33
|
+
out: z.ZodType<External$V1HeadSwapCreateResponse, z.ZodTypeDef, V1HeadSwapCreateResponse>;
|
|
34
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$V1HeadSwapCreateResponse = void 0;
|
|
37
|
+
const make_api_request_js_1 = require("make-api-request-js");
|
|
38
|
+
const z = __importStar(require("zod"));
|
|
39
|
+
/**
|
|
40
|
+
* Takes network data, validates it, and transforms keys to match typescript object V1HeadSwapCreateResponse
|
|
41
|
+
*/
|
|
42
|
+
const SchemaIn$V1HeadSwapCreateResponse = z
|
|
43
|
+
.object({
|
|
44
|
+
credits_charged: z.number().int(),
|
|
45
|
+
frame_cost: z.number().int(),
|
|
46
|
+
id: z.string(),
|
|
47
|
+
})
|
|
48
|
+
.transform((obj) => {
|
|
49
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
50
|
+
credits_charged: "creditsCharged",
|
|
51
|
+
frame_cost: "frameCost",
|
|
52
|
+
id: "id",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$V1HeadSwapCreateResponse
|
|
58
|
+
*/
|
|
59
|
+
const SchemaOut$V1HeadSwapCreateResponse = z
|
|
60
|
+
.object({
|
|
61
|
+
creditsCharged: z.number().int(),
|
|
62
|
+
frameCost: z.number().int(),
|
|
63
|
+
id: z.string(),
|
|
64
|
+
})
|
|
65
|
+
.transform((obj) => {
|
|
66
|
+
return (0, make_api_request_js_1.zodTransform)(obj, {
|
|
67
|
+
creditsCharged: "credits_charged",
|
|
68
|
+
frameCost: "frame_cost",
|
|
69
|
+
id: "id",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
exports.Schemas$V1HeadSwapCreateResponse = {
|
|
73
|
+
in: SchemaIn$V1HeadSwapCreateResponse,
|
|
74
|
+
out: SchemaOut$V1HeadSwapCreateResponse,
|
|
75
|
+
};
|
|
@@ -7,6 +7,7 @@ export type V1ImageToVideoCreateBodyAssets = {
|
|
|
7
7
|
* The image to use as the last frame of the video.
|
|
8
8
|
*
|
|
9
9
|
* * **`ltx-2`**: Not supported
|
|
10
|
+
* * **`wan-2.2`**: Not supported
|
|
10
11
|
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
11
12
|
* * **`kling-2.5`**: Supports 1080p.
|
|
12
13
|
* * **`kling-3.0`**: Supports 1080p.
|
|
@@ -1,8 +1,9 @@
|
|
|
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-
|
|
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
|
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
6
|
+
* * `wan-2.2`: Fast, medium-quality model with strong visuals and effect support.
|
|
6
7
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
7
8
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
8
9
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
@@ -14,4 +15,4 @@
|
|
|
14
15
|
*
|
|
15
16
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
16
17
|
*/
|
|
17
|
-
export type V1ImageToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio";
|
|
18
|
+
export type V1ImageToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio" | "wan-2.2";
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
3
3
|
*
|
|
4
4
|
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
5
|
+
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
5
6
|
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
6
7
|
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
7
8
|
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
@@ -14,6 +14,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
14
14
|
*
|
|
15
15
|
* Audio support varies by model:
|
|
16
16
|
* * **`ltx-2`**: Automatically included with no extra credits
|
|
17
|
+
* * **`wan-2.2`**: Not supported
|
|
17
18
|
* * **`seedance`**: Not supported
|
|
18
19
|
* * **`kling-2.5`**: Automatically included with no extra credits
|
|
19
20
|
* * **`kling-3.0`**: Toggle-able (can enable/disable)
|
|
@@ -28,6 +29,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
28
29
|
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
29
30
|
*
|
|
30
31
|
* * **`ltx-2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
32
|
+
* * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
|
|
31
33
|
* * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
32
34
|
* * **`kling-2.5`**: 5, 10
|
|
33
35
|
* * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
@@ -47,8 +49,9 @@ export type V1ImageToVideoCreateBody = {
|
|
|
47
49
|
/**
|
|
48
50
|
* The AI model to use for video generation.
|
|
49
51
|
*
|
|
50
|
-
* * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-
|
|
52
|
+
* * `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`.
|
|
51
53
|
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
54
|
+
* * `wan-2.2`: Fast, medium-quality model with strong visuals and effect support.
|
|
52
55
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
53
56
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
54
57
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
@@ -60,7 +63,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
60
63
|
*
|
|
61
64
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
62
65
|
*/
|
|
63
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
66
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio" | "wan-2.2") | undefined;
|
|
64
67
|
/**
|
|
65
68
|
* Give your video a custom name for easy identification.
|
|
66
69
|
*/
|
|
@@ -69,6 +72,7 @@ export type V1ImageToVideoCreateBody = {
|
|
|
69
72
|
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
70
73
|
*
|
|
71
74
|
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
75
|
+
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
72
76
|
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
73
77
|
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
74
78
|
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
@@ -100,7 +104,7 @@ export type External$V1ImageToVideoCreateBody = {
|
|
|
100
104
|
audio?: boolean | undefined;
|
|
101
105
|
end_seconds: number;
|
|
102
106
|
height?: number | null | undefined;
|
|
103
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
107
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio" | "wan-2.2") | undefined;
|
|
104
108
|
name?: string | undefined;
|
|
105
109
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
106
110
|
style?: External$V1ImageToVideoCreateBodyStyle | undefined;
|
|
@@ -59,6 +59,7 @@ const SchemaIn$V1ImageToVideoCreateBody = z
|
|
|
59
59
|
"sora-2",
|
|
60
60
|
"veo3.1",
|
|
61
61
|
"veo3.1-audio",
|
|
62
|
+
"wan-2.2",
|
|
62
63
|
])
|
|
63
64
|
.optional(),
|
|
64
65
|
name: z.string().optional(),
|
|
@@ -101,6 +102,7 @@ const SchemaOut$V1ImageToVideoCreateBody = z
|
|
|
101
102
|
"sora-2",
|
|
102
103
|
"veo3.1",
|
|
103
104
|
"veo3.1-audio",
|
|
105
|
+
"wan-2.2",
|
|
104
106
|
])
|
|
105
107
|
.optional(),
|
|
106
108
|
name: z.string().optional(),
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Determines the aspect ratio of the output video.
|
|
3
3
|
*
|
|
4
4
|
* * **`ltx-2`**: Supports 9:16, 16:9, 1:1.
|
|
5
|
+
* * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
|
|
5
6
|
* * **`seedance`**: Supports 9:16, 16:9, 1:1.
|
|
6
7
|
* * **`kling-2.5`**: Supports 9:16, 16:9, 1:1.
|
|
7
8
|
* * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
|
|
@@ -1,8 +1,9 @@
|
|
|
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-
|
|
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
|
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
6
|
+
* * `wan-2.2`: Fast, medium-quality model with strong visuals and effect support.
|
|
6
7
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
7
8
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
8
9
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
@@ -14,4 +15,4 @@
|
|
|
14
15
|
*
|
|
15
16
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
16
17
|
*/
|
|
17
|
-
export type V1TextToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio";
|
|
18
|
+
export type V1TextToVideoCreateBodyModelEnum = "default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio" | "wan-2.2";
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
3
3
|
*
|
|
4
4
|
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
5
|
+
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
5
6
|
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
6
7
|
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
7
8
|
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
@@ -8,6 +8,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
8
8
|
* Determines the aspect ratio of the output video.
|
|
9
9
|
*
|
|
10
10
|
* * **`ltx-2`**: Supports 9:16, 16:9, 1:1.
|
|
11
|
+
* * **`wan-2.2`**: Supports 9:16, 16:9, 1:1.
|
|
11
12
|
* * **`seedance`**: Supports 9:16, 16:9, 1:1.
|
|
12
13
|
* * **`kling-2.5`**: Supports 9:16, 16:9, 1:1.
|
|
13
14
|
* * **`kling-3.0`**: Supports 9:16, 16:9, 1:1.
|
|
@@ -23,6 +24,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
23
24
|
*
|
|
24
25
|
* Audio support varies by model:
|
|
25
26
|
* * **`ltx-2`**: Automatically included with no extra credits
|
|
27
|
+
* * **`wan-2.2`**: Not supported
|
|
26
28
|
* * **`seedance`**: Not supported
|
|
27
29
|
* * **`kling-2.5`**: Automatically included with no extra credits
|
|
28
30
|
* * **`kling-3.0`**: Toggle-able (can enable/disable)
|
|
@@ -37,6 +39,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
37
39
|
* The total duration of the output video in seconds. Supported durations depend on the chosen model:
|
|
38
40
|
*
|
|
39
41
|
* * **`ltx-2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30
|
|
42
|
+
* * **`wan-2.2`**: 3, 4, 5, 6, 7, 8, 9, 10, 15
|
|
40
43
|
* * **`seedance`**: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
|
|
41
44
|
* * **`kling-2.5`**: 5, 10
|
|
42
45
|
* * **`kling-3.0`**: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
@@ -50,8 +53,9 @@ export type V1TextToVideoCreateBody = {
|
|
|
50
53
|
/**
|
|
51
54
|
* The AI model to use for video generation.
|
|
52
55
|
*
|
|
53
|
-
* * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-
|
|
56
|
+
* * `default`: uses our currently recommended model for general use. For paid tiers, defaults to `kling-3.0`. For free tiers, it defaults to `ltx-2`.
|
|
54
57
|
* * `ltx-2`: Great for fast iteration with audio, lip-sync, and expressive faces
|
|
58
|
+
* * `wan-2.2`: Fast, medium-quality model with strong visuals and effect support.
|
|
55
59
|
* * `seedance`: Great for fast iteration and start/end frame
|
|
56
60
|
* * `kling-2.5`: Great for motion, action, and camera control
|
|
57
61
|
* * `kling-3.0`: Great for cinematic, multi-scene storytelling with control
|
|
@@ -63,7 +67,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
63
67
|
*
|
|
64
68
|
* If you specify the deprecated model value that includes the `-audio` suffix, this will be the same as included `audio` as `true`.
|
|
65
69
|
*/
|
|
66
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
70
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio" | "wan-2.2") | undefined;
|
|
67
71
|
/**
|
|
68
72
|
* Give your video a custom name for easy identification.
|
|
69
73
|
*/
|
|
@@ -76,6 +80,7 @@ export type V1TextToVideoCreateBody = {
|
|
|
76
80
|
* Controls the output video resolution. Defaults to `720p` on paid tiers and `480p` on free tiers.
|
|
77
81
|
*
|
|
78
82
|
* * **`ltx-2`**: Supports 480p, 720p, 1080p.
|
|
83
|
+
* * **`wan-2.2`**: Supports 480p, 720p, 1080p.
|
|
79
84
|
* * **`seedance`**: Supports 480p, 720p, 1080p.
|
|
80
85
|
* * **`kling-2.5`**: Supports 720p, 1080p.
|
|
81
86
|
* * **`kling-3.0`**: Supports 720p, 1080p.
|
|
@@ -97,7 +102,7 @@ export type External$V1TextToVideoCreateBody = {
|
|
|
97
102
|
aspect_ratio?: ("16:9" | "1:1" | "9:16") | undefined;
|
|
98
103
|
audio?: boolean | undefined;
|
|
99
104
|
end_seconds: number;
|
|
100
|
-
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio") | undefined;
|
|
105
|
+
model?: ("default" | "kling-1.6" | "kling-2.5" | "kling-2.5-audio" | "kling-3.0" | "ltx-2" | "seedance" | "sora-2" | "veo3.1" | "veo3.1-audio" | "wan-2.2") | undefined;
|
|
101
106
|
name?: string | undefined;
|
|
102
107
|
orientation?: ("landscape" | "portrait" | "square") | undefined;
|
|
103
108
|
resolution?: ("1080p" | "480p" | "720p") | undefined;
|
|
@@ -57,6 +57,7 @@ const SchemaIn$V1TextToVideoCreateBody = z
|
|
|
57
57
|
"sora-2",
|
|
58
58
|
"veo3.1",
|
|
59
59
|
"veo3.1-audio",
|
|
60
|
+
"wan-2.2",
|
|
60
61
|
])
|
|
61
62
|
.optional(),
|
|
62
63
|
name: z.string().optional(),
|
|
@@ -97,6 +98,7 @@ const SchemaOut$V1TextToVideoCreateBody = z
|
|
|
97
98
|
"sora-2",
|
|
98
99
|
"veo3.1",
|
|
99
100
|
"veo3.1-audio",
|
|
101
|
+
"wan-2.2",
|
|
100
102
|
])
|
|
101
103
|
.optional(),
|
|
102
104
|
name: z.string().optional(),
|