Replicate Video
Replicate predictions for video models (Veo, Kling, Hailuo, Wan, ...), run and wait with long time limits and downloads, prediction status, model discovery (paid per model, cancel and webhooks node only)
Beta v0.1.0 Node.js 13 actions
About
A Graphrt plugin for running video models on Replicate (Veo, Kling, Hailuo, Wan, Seedance, LTX and many more). It creates predictions, waits for them with long-job time limits, and saves the output files to disk. It can also read a prediction's status (to poll across workflow runs) and find models and their input schemas.
What it can do
- run_model: run an official or latest-version model by owner/name (e.g. google/veo-3, kwaivgi/kling-v2.1, minimax/hailuo-02) with its input object
- run_version: run a pinned model version
- run_model_with_webhook, run_version_with_webhook (node only): the same, plus a webhook URL that Replicate POSTs the prediction to on every update
- get_prediction: status, logs, metrics and output, saves the output of a succeeded prediction
- cancel_prediction (node only)
- list_predictions: your predictions, newest first (paginated)
- get_model, list_model_versions: description, default example and the input/output schema (latest_version.openapi_schema)
- get_collection, search_models: discover models, e.g. the text-to-video and image-to-video collections
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Run model
replicate-video.run_model - Run model version
replicate-video.run_version - Run model (webhook)
replicate-video.run_model_with_webhook - Run model version (webhook)
replicate-video.run_version_with_webhook - Get prediction
replicate-video.get_prediction - Cancel prediction
replicate-video.cancel_prediction - List predictions
replicate-video.list_predictions - Get model
replicate-video.get_model - List model versions
replicate-video.list_model_versions - Get collection
replicate-video.get_collection
Show all 13 actions
- Search models
replicate-video.search_models - Account
replicate-video.get_account - Replicate HTTP API request
replicate-video.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
REPLICATE_API_TOKENRequiredAPI token (starts with r8_) -
REPLICATE_OUTPUT_DIROptionalAbsolute directory for output files. Unset: nothing is saved and saved_files is [], the output URLs are still returned
How to use it
In Graphrt Desktop
- Open Plugins and search for Replicate Video.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install replicate-video workflow.yaml
- id: clip
type: replicate-video.run_model
model_owner: minimax
model_name: hailuo-02
input:
prompt: "A paper boat drifting across a calm pond at dawn"
duration: 6