mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-18 15:44:36 +00:00
Possible problem in our Seedance 2.0 provider means we need a backup. This is here in case we need it. Muapi is inferior for several reasons: - Videos contain watermarks - Videos cost 2x as much - Not as many aspect ratio controls - Not as many duration controls - No starting frame / ending frame - No video references - No audio references It does seem fast, however.
20 lines
429 B
Rust
20 lines
429 B
Rust
use crate::creds::muapi_api_key::MuapiApiKey;
|
|
|
|
/// Holds the full session data needed to make authenticated requests to Muapi.
|
|
#[derive(Clone)]
|
|
pub struct MuapiSession {
|
|
pub api_key: MuapiApiKey,
|
|
}
|
|
|
|
impl MuapiSession {
|
|
pub fn new(api_key: MuapiApiKey) -> Self {
|
|
MuapiSession { api_key }
|
|
}
|
|
|
|
pub fn from_api_key_string(api_key: String) -> Self {
|
|
MuapiSession {
|
|
api_key: MuapiApiKey::new(api_key),
|
|
}
|
|
}
|
|
}
|