diffusion_to
Rust crate for interacting with the diffusion.to API.
Using the crate
First, add the crate to the project.
cargo add diffusion_to
Instantiate a client, create an image request, and send it off. Wait for the image to be created and download it.
let client = new?;
let request = new
.update_steps
.update_model
let token = client.request_image.await?;
// wait for up to five minutes
let image = client
.check_and_wait
.await?;
println!