Expand description
Used to interact with the Model Versions Endpoints.
§Example
use replicate_rust::{Replicate, config::Config};
let config = Config::default();
let replicate = Replicate::new(config);
let versions = replicate.models.versions.list("replicate", "hello-world")?;
println!("Versions : {:?}", versions);
// Get the details of a model version.
let version = replicate.models.versions.get(
"kvfrans",
"clipdraw",
"5797a99edc939ea0e9242d5e8c9cb3bc7d125b1eac21bda852e5cb79ede2cd9b",
)?;
println!("Version : {:?}", version);
Structs§
- Version
- Used to interact with the [Model Versions Endpoints](https://replicate.com/docs/refer ence/http#models.versions.get).