Module replicate_rust::api_definitions
source · Expand description
This module contains the definition of the API responses by the Replicate API. The responses the documented in the HTTP API reference.
The API responses are defined as structs that implement the serde::Deserialize
trait.
Structs
- POST https://api.replicate.com/v1/models/{model_owner}/{model_name}/versions/{version_id}/trainings
- GET https://api.replicate.com/v1/collections/{collection_slug}
- GET https://api.replicate.com/v1/models/{model_owner}/{model_name}
- GET https://api.replicate.com/v1/models/{model_owner}/{model_name}/versions/{version_id}
- POST https://api.replicate.com/v1/predictions
- GET https://api.replicate.com/v1/trainings/{training_id}
- GET https://api.replicate.com/v1/collections
- GET https://api.replicate.com/v1/models/{model_owner}/{model_name}/versions
- GET https://api.replicate.com/v1/predictions
- GET https://api.replicate.com/v1/trainings
- Each item of the list of trainings
Enums
- Source of the prediction, either from the API or from the web
- Status of the prediction, either starting, processing, succeeded, failed or canceled
- Events of the webhook, either start, output, logs or completed