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§
- Create
Prediction - POST https://api.replicate.com/v1/predictions
- Create
Training - POST https://api.replicate.com/v1/models/{model_owner}/{model_name}/versions/{version_id}/trainings
- GetCollection
Models - GET https://api.replicate.com/v1/collections/{collection_slug}
- GetModel
- GET https://api.replicate.com/v1/models/{model_owner}/{model_name}
- GetModel
Version - GET https://api.replicate.com/v1/models/{model_owner}/{model_name}/versions/{version_id}
- GetPrediction
- POST https://api.replicate.com/v1/predictions
- GetTraining
- GET https://api.replicate.com/v1/trainings/{training_id}
- List
Collection Models - GET https://api.replicate.com/v1/collections
- List
Collection Models Item - Each item of the list of collections
- List
Model Versions - GET https://api.replicate.com/v1/models/{model_owner}/{model_name}/versions
- List
Predictions - GET https://api.replicate.com/v1/predictions
- List
Training - GET https://api.replicate.com/v1/trainings
- List
Training Item - Each item of the list of trainings
- Predictions
List Item - Represents a prediction in the list of predictions
- Predictions
Urls - Prediction urls to iether cancel or get the prediction
Enums§
- Prediction
Source - Source of the prediction, either from the API or from the web
- Prediction
Status - Status of the prediction, either starting, processing, succeeded, failed or canceled
- Webhook
Events - Events of the webhook, either start, output, logs or completed
Functions§
- object_
empty_ as_ none - If the object is empty, return None