Back to Autogpt

Replicate Replicate Block

docs/integrations/block-integrations/replicate/replicate_block.md

0.6.441.5 KB
Original Source

Replicate Replicate Block

<!-- MANUAL: file_description -->

Blocks for running any AI model hosted on the Replicate platform.

<!-- END MANUAL -->

Replicate Model

What it is

Run Replicate models synchronously

How it works

<!-- MANUAL: how_it_works -->

This block runs any model hosted on Replicate using their API. Specify the model name in owner/model format, provide inputs as a dictionary, and optionally pin to a specific version.

The block waits for completion and returns the model output along with status information.

<!-- END MANUAL -->

Inputs

InputDescriptionTypeRequired
model_nameThe Replicate model name (format: 'owner/model-name')strYes
model_inputsDictionary of inputs to pass to the modelDict[str, str | int]No
versionSpecific version hash of the model (optional)strNo

Outputs

OutputDescriptionType
errorError message if the operation failedstr
resultThe output from the Replicate modelstr
statusStatus of the predictionstr
model_nameName of the model usedstr

Possible use case

<!-- MANUAL: use_case -->

Model Flexibility: Access thousands of open-source AI models from a single interface.

Custom Models: Run your own models deployed on Replicate in workflows.

Specialized AI Tasks: Use best-of-breed models for specific tasks like upscaling, segmentation, or captioning.

<!-- END MANUAL -->