Jaa


Replicate (Independent Publisher) (Preview)

Use Replicate to run machine learning models in the cloud from your own code, without having to set up any servers. The community has published hundreds of open-source models that you can run, or you can run your own models.

This connector is available in the following products and regions:

Service Class Regions
Logic Apps Standard All Logic Apps regions except the following:
     -   Azure Government regions
     -   Azure China regions
     -   US Department of Defense (DoD)
Power Automate Premium All Power Automate regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Power Apps Premium All Power Apps regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Contact
Name Troy Taylor
URL https://www.hitachisolutions.com
Email ttaylor@hitachisolutions.com
Connector Metadata
Publisher Troy Taylor
Website https://replicate.com/
Privacy policy https://replicate.com/privacy
Categories AI;Lifestyle and Entertainment

Creating a connection

The connector supports the following authentication types:

Default Parameters for creating connection. All regions Not shareable

Default

Applicable: All regions

Parameters for creating connection.

This is not shareable connection. If the power app is shared with another user, another user will be prompted to create new connection explicitly.

Name Type Description Required
Token (in the form 'Token YourAPIToken') securestring The Token (in the form 'Token YourAPIToken') for this api True

Throttling Limits

Name Calls Renewal Period
API calls per connection 100 60 seconds

Actions

Cancel a prediction

Cancel a started prediction.

Create a prediction

Creates a prediction based on a model and input.

Get a collection of models

Retrieves a list of models based on a collection slug.

Get a list of predictions

Retrieve a paginated list of predictions that you've created with your account. This includes predictions created from the API and the Replicate website.

Get a model

Retrieve a model based on the owner and name.

Get a prediction

Retrieve a started prediction.

Cancel a prediction

Cancel a started prediction.

Parameters

Name Key Required Type Description
Prediction ID
prediction_id True string

The prediction identifier.

Returns

Name Path Type Description
ID
id string

The identifier.

Version
version string

The version (or model).

Get
urls.get string

The GET URL address.

Cancel
urls.cancel string

The Cancel URL address.

Created At
created_at string

When created at.

Completed At
completed_at string

When completed at.

Status
status string

The status.

Text
input.text string

The text.

Prompt
input.prompt string

The prompt.

Prompt Strength
input.prompt_strength string

The prompt strength.

Width
input.width integer

The width.

Height
input.height integer

The height.

Scale
input.scale string

The scale.

Number of Outputs
input.num_outputs integer

The number of outputs.

Number of Inference Steps
input.num_inference_steps integer

The number of inference steps.

Guidance Scale
input.guidance_scale string

The guidance scale.

Seed
input.seed integer

The seed number. Leave blank for random.

Output
output array of string
Error
error string

The error.

Logs
logs string

The logs.

Predict Time
metrics.predict_time float

The predict time.

Create a prediction

Creates a prediction based on a model and input.

Parameters

Name Key Required Type Description
Version
version True string

The version (or model).

Text
text string

The text.

Prompt
prompt string

The prompt.

Prompt Strength
prompt_strength string

The prompt strength.

Width
width integer

The width.

Height
height integer

The height.

Scale
scale string

The scale.

Number of Outputs
num_outputs integer

The number of outputs.

Number of Inference Steps
num_inference_steps integer

The number of inference steps.

Guidance Scale
guidance_scale string

The guidance scale.

Seed
seed integer

The seed number. Leave blank for random.

Completed Webhook
webhook_completed string

The webhook to call when completed.

Returns

Name Path Type Description
ID
id string

The identifier.

Version
version string

The version (or model).

Get
urls.get string

The GET URL address.

Cancel
urls.cancel string

The Cancel URL address.

Created At
created_at string

When created at.

Completed At
completed_at string

When completed at.

Status
status string

The status.

Text
input.text string

The text.

Prompt
input.prompt string

The prompt.

Prompt Strength
input.prompt_strength string

The prompt strength.

Width
input.width integer

The width.

Height
input.height integer

The height.

Scale
input.scale string

The scale.

Number of Outputs
input.num_outputs integer

The number of outputs.

Number of Inference Steps
input.num_inference_steps integer

The number of inference steps.

Guidance Scale
input.guidance_scale string

The guidance scale.

Seed
input.seed integer

The seed number. Leave blank for random.

Output
output string

The output.

Error
error string

The error.

Logs
logs string

The logs.

Get a collection of models

Retrieves a list of models based on a collection slug.

Parameters

Name Key Required Type Description
Collection Slug
collection_slug True string

The collection slug.

Returns

Name Path Type Description
Name
name string

The name.

Slug
slug string

The slug.

Description
description string

The description.

Models
models array of object
URL
models.url string

The URL address.

Owner
models.owner string

The owner.

Name
models.name string

The name.

Description
models.description string

The description.

Visibility
models.visibility string

The visibility.

GitHub URL
models.github_url string

The GitHub URL address.

Paper URL
models.paper_url string

The Paper URL address.

License URL
models.license_url string

The license URL address.

ID
models.latest_version.id string

The identifier.

Created At
models.latest_version.created_at string

When created at.

Cog Version
models.latest_version.cog_version string

The Cog version.

Title
models.latest_version.openapi_schema.info.title string

The title.

Version
models.latest_version.openapi_schema.info.version string

The Version.

OpenAPI
models.latest_version.openapi_schema.openapi string

The OpenAPI.

Get a list of predictions

Retrieve a paginated list of predictions that you've created with your account. This includes predictions created from the API and the Replicate website.

Returns

Name Path Type Description
Previous
previous string

The previous result link.

Next
next string

The next result link.

Results
results array of object
ID
results.id string

The identifier.

Version
results.version string

The version (or model).

GET
results.urls.get string

The GET URL address.

Cancel
results.urls.cancel string

The Cancel URL address.

Created At
results.created_at string

When created at.

Completed At
results.completed_at string

When completed at.

Source
results.source string

The source.

Status
results.status string

The status.

Get a model

Retrieve a model based on the owner and name.

Parameters

Name Key Required Type Description
Model Owner
model_owner True string

The model owner.

Model Name
model_name True string

The model name.

Returns

Name Path Type Description
URL
url string

The URL address.

Owner
owner string

The owner.

Name
name string

The name.

Description
description string

The description.

Visibility
visibility string

The visibility.

GitHub URL
github_url string

The GitHub URL address.

Paper URL
paper_url string

The Paper URL address.

License URL
license_url string

The license URL address.

ID
latest_version.id string

The identifier.

Created At
latest_version.created_at string

When created at.

Cog Version
latest_version.cog_version string

The Cog version.

Title
latest_version.openapi_schema.info.title string

The title.

Version
latest_version.openapi_schema.info.version string

The version.

OpenAPI
latest_version.openapi_schema.openapi string

The OpenAPI version.

Get a prediction

Retrieve a started prediction.

Parameters

Name Key Required Type Description
Prediction ID
prediction_id True string

The prediction identifier.

Returns

Name Path Type Description
ID
id string

The identifier.

Version
version string

The version (or model).

Get
urls.get string

The GET URL address.

Cancel
urls.cancel string

The Cancel URL address.

Created At
created_at string

When created at.

Completed At
completed_at string

When completed at.

Status
status string

The status.

Text
input.text string

The text.

Prompt
input.prompt string

The prompt.

Prompt Strength
input.prompt_strength string

The prompt strength.

Width
input.width integer

The width.

Height
input.height integer

The height.

Scale
input.scale string

The scale.

Number of Outputs
input.num_outputs integer

The number of outputs.

Number of Inference Steps
input.num_inference_steps integer

The number of inference steps.

Guidance Scale
input.guidance_scale string

The guidance scale.

Seed
input.seed integer

The seed number. Leave blank for random.

Output
output array of string
Error
error string

The error.

Logs
logs string

The logs.

Predict Time
metrics.predict_time float

The predict time.