Expand description
Omni Flash Rust SDK — generate short videos (with synchronized audio) and images using Google’s Gemini Omni Flash family of models.
Sign in at https://omniflash.net/ and create an API key on the account page.
Export it as OMNIFLASH_API_KEY and the client picks it up automatically.
§Quick start
use omniflash_sdk::{OmniFlash, CreateTaskInput};
let client = OmniFlash::new(None).unwrap();
let task = client.run(CreateTaskInput {
model_id: "seedance-2".into(),
prompt: "a kettle whistles as steam rises".into(),
aspect_ratio: Some("16:9".into()),
..Default::default()
}, None).unwrap();
println!("{:?} {:?}", task.video_url, task.audio_url);Structs§
- Create
Task Input - Request body for
POST /tasks/create. - Omni
Flash - Client for the Omni Flash API.
- RunOptions
- Polling configuration for
OmniFlash::run. - Task
- State of a generation job.
Enums§
- Error
- SDK error type.
Constants§
- DEFAULT_
BASE_ URL - Default base URL for the Omni Flash API.