Blocks
Replicate
Run AI models with cloud API
Integrate with Replicate to run thousands of AI models including image generation, LLMs, speech recognition, and more. Deploy custom models without managing infrastructure using API token authentication.
Block Preview
Replicate
Run AI models with cloud API
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the replicate block with monitoring enabled in production.
Inputs (UI)
Replicate API Token
short-inputPlaceholder: Enter your Replicate API token
Layout: full
Operation
dropdownLayout: full
Options: Run Prediction, Get Prediction, List Models, Get Model
Model
short-inputPlaceholder: owner/model-name:version or owner/model-name
Layout: full
Condition: operation = ["run_prediction","get_model"]
Model Input (JSON)
long-inputPlaceholder: {"prompt": "a cat", "width": 512}
Layout: full
Condition: operation = "run_prediction"
Prediction ID
short-inputPlaceholder: Enter prediction ID
Layout: full
Condition: operation = "get_prediction"
Inputs (API)
credential
stringRequired
operation
stringRequired
model
stringOptional
input
stringOptional
predictionId
stringOptional
Outputs
Primary response type:
{
"data": "json"
}