fal 0.3.6

A Rust crate for the fal.ai API, including generated, typed functions for all public models
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[tokio::test]
async fn test_fal_ai_flux_dev() {
    let response = fal::endpoints::fal_ai::flux::dev::dev(
        fal::endpoints::fal_ai::flux::dev::DevTextToImageInput {
            prompt: "a horse".to_string(),
            ..Default::default()
        },
    )
    .send()
    .await
    .unwrap();

    assert!(response.images.len() > 0);
}