Module replicate_rust::model

source ·
Expand description

Used to interact with the Model Endpoints.

The model module contains all the functionality for interacting with the model endpoints of the Replicate API. Currently supports the following endpoint:

Example

use replicate_rust::{Replicate, config::Config};

let config = Config::default();
let replicate = Replicate::new(config);

match replicate.models.get(String::from("replicate"), String::from("hello-world")) {
   Ok(result) => println!("Success : {:?}", result),
  Err(e) => println!("Error : {}", e),
};

Structs