Run machine learning tasks easily at scale
@trigger.dev/replicate
package.
You can do this using npm, pnpm, or yarn:
getAll
helperpaginate
helperFunction Name | Description |
---|---|
collections.get | Gets a collection. |
collections.list | Returns the first page of all collections. Use with pagination helper. |
Function Name | Description |
---|---|
deployments.predictions.create | Creates a new prediction with a deployment. |
deployments.predictions.createAndAwait | Creates and waits for a new prediction with a deployment. |
Function Name | Description |
---|---|
models.get | Gets a model. |
models.versions | Gets a model version. |
models.versions | Gets all model versions. |
Function Name | Description |
---|---|
predictions.cancel | Cancels a prediction. |
predictions.create | Creates a prediction. |
predictions.createAndAwait | Creates and waits for a prediction. |
predictions.get | Gets a prediction. |
predictions.list | Returns the first page of all predictions. Use with pagination helper. |
Function Name | Description |
---|---|
trainings.cancel | Cancels a training. |
trainings.create | Creates a training. |
trainings.createAndAwait | Creates and waits for a training. |
trainings.get | Gets a training. |
trainings.list | Returns the first page of all trainings. Use with pagination helper. |
Function Name | Description |
---|---|
getAll | Pagination helper that returns an array of results. |
paginate | Pagination helper that returns an async generator. |
request | Sends authenticated requests to the Replicate API. |
run | Creates and waits for a prediction. |