Replicate

AI API token

Run machine-learning models on Replicate, and manage predictions, deployments and trainings, from any Windmill script, flow or app.

Set up in 3 steps

1

Copy your API token

At replicate.com/account/api-tokens, copy your token.

2

Add the resource in Windmill

Open Resources, add a resource of type replicate, and paste the token.

3

Run your first script

Fork any script below and read before writing anything.

Scripts

Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.

Resource type

replicate — the shape of the credential every script on this page expects.

View raw schema →
FieldTypeRequiredWhat it is
tokenstringYesAPI Token retrieved from the dashboard.

Questions

Predictions are asynchronous

A prediction call returns immediately with a status. Poll it until it succeeds, or pass a webhook so a flow resumes when the model finishes.

Inference is billed by the second

Every prediction costs compute time. A flow that retries a slow model can spend more than you expect — cap the retries.

Is my token stored on the hub?

Never. It lives only in your own Windmill workspace, encrypted at rest.