Files
artcraft/crates/api_clients/muapi_client/src/creds/muapi_session.rs
Brandon Thomas 87296752a5 Use muapi as backup (#1152)
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.
2026-03-16 17:15:53 -04:00

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),
}
}
}