Skip to main content

Crate omniflash_sdk

Crate omniflash_sdk 

Source
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§

CreateTaskInput
Request body for POST /tasks/create.
OmniFlash
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.

Type Aliases§

Result