mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
hailuo 2.3 pro
This commit is contained in:
1 parent
c6b8267873
commit
32cda55005
5 files changed
+104
No files matched your search
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
use crate::prelude::{Deserialize, FalRequest, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct HailuoV2p3FastProImageToVideoInput {
|
||||
pub prompt: String,
|
||||
|
||||
/// Starting frame
|
||||
pub image_url: String,
|
||||
|
||||
/// Default value: true
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub prompt_optimizer: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct HailuoV2p3FastProImageToVideoOutput {
|
||||
pub video: VideoFile,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct VideoFile {
|
||||
/// The URL where the file can be downloaded from.
|
||||
pub url: String,
|
||||
}
|
||||
|
||||
pub fn hailuo_v2p3_fast_pro_image_to_video(
|
||||
params: HailuoV2p3FastProImageToVideoInput,
|
||||
) -> FalRequest<HailuoV2p3FastProImageToVideoInput, HailuoV2p3FastProImageToVideoOutput> {
|
||||
FalRequest::new("fal-ai/minimax/hailuo-2.3-fast/pro/image-to-video", params)
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
use crate::prelude::{Deserialize, FalRequest, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct HailuoV2p3ProImageToVideoInput {
|
||||
pub prompt: String,
|
||||
|
||||
/// Starting frame
|
||||
pub image_url: String,
|
||||
|
||||
/// Default value: true
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub prompt_optimizer: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct HailuoV2p3ProImageToVideoOutput {
|
||||
pub video: VideoFile,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct VideoFile {
|
||||
/// The URL where the file can be downloaded from.
|
||||
pub url: String,
|
||||
}
|
||||
|
||||
pub fn hailuo_v2p3_pro_image_to_video(
|
||||
params: HailuoV2p3ProImageToVideoInput,
|
||||
) -> FalRequest<HailuoV2p3ProImageToVideoInput, HailuoV2p3ProImageToVideoOutput> {
|
||||
FalRequest::new("fal-ai/minimax/hailuo-2.3/pro/image-to-video", params)
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
use crate::prelude::{Deserialize, FalRequest, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct HailuoV2p3ProTextToVideoInput {
|
||||
pub prompt: String,
|
||||
|
||||
/// Default value: true
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub prompt_optimizer: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct HailuoV2p3ProTextToVideoOutput {
|
||||
pub video: VideoFile,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct VideoFile {
|
||||
/// The URL where the file can be downloaded from.
|
||||
pub url: String,
|
||||
}
|
||||
|
||||
pub fn hailuo_v2p3_pro_image_to_video(
|
||||
params: HailuoV2p3ProTextToVideoInput,
|
||||
) -> FalRequest<HailuoV2p3ProTextToVideoInput, HailuoV2p3ProTextToVideoOutput> {
|
||||
FalRequest::new("fal-ai/minimax/hailuo-2.3/pro/text-to-video", params)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
pub mod hailuo_v2p3_pro_image_to_video;
|
||||
pub mod hailuo_v2p3_pro_text_to_video;
|
||||
pub mod hailuo_v2p3_fast_pro_image_to_video;
|
||||
@@ -75,6 +75,20 @@ pub mod video_01_live;
|
||||
)))
|
||||
)]
|
||||
pub mod video_01_subject_reference;
|
||||
#[cfg(any(
|
||||
feature = "endpoints",
|
||||
feature = "endpoints_fal-ai",
|
||||
feature = "endpoints_fal-ai_minimax"
|
||||
))]
|
||||
#[cfg_attr(
|
||||
docsrs,
|
||||
doc(cfg(any(
|
||||
feature = "endpoints",
|
||||
feature = "endpoints_fal-ai",
|
||||
feature = "endpoints_fal-ai_minimax"
|
||||
)))
|
||||
)]
|
||||
pub mod hailuo;
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Default)]
|
||||
pub struct File {
|
||||
|
||||
Reference in new issue
Block a user