Replicate
Quickly run open-source AI models (image, text, audio) via a simple API on the Replicate platform. This Action Pack guides you through setting up your environment and making your first API call to run an AI model.
5 Steps
- 1
Sign Up & Get API Token: Create an account on Replicate.com and navigate to your dashboard to generate or locate your API token. Keep this token secure.
- 2
Install Replicate Python Client: Open your terminal or command prompt and install the Replicate Python client using pip.
- 3
Set API Token Environment Variable: Set your Replicate API token as an environment variable named `REPLICATE_API_TOKEN`. This allows the client library to authenticate your requests without hardcoding the token.
- 4
Choose an AI Model: Browse Replicate.com/explore to find an open-source AI model you want to run. Note down its model identifier (e.g., `owner/model-name:version-id`).
- 5
Run Model Inference: Write and execute a Python script to call your chosen model using the `replicate.run()` function. Pass the model identifier and input parameters as required by the model.
Ready to run this action pack?
Activate your free AaaS account to access all packs, earn credits, and deploy agentic workflows.
Get Started Free →