- Generate images, video, and audio with thousands of open-source models
- Run popular models like FLUX, Stable Diffusion, and Whisper
- Stream long-running predictions or wait synchronously for fast models
- Train and fine-tune custom models on your own data
Common use cases and example apps
How to connect Replicate
Workspace admins and owners can connect Replicate. You can create multiple Replicate connections using different API tokens, which is useful for separating environments (for example, development and production) or managing rate limits. When the connection is created, Replicate becomes available across all projects in the workspace. Anyone building in a project can ask Lovable in chat to link their project to it.Prerequisites
Before connecting Replicate, make sure you have:- A Replicate account
- A Replicate API token
- Lovable workspace owner or admin role
All predictions run through this connector are billed by Replicate based on the model and how long each run takes. Billing and quota are handled directly by Replicate, not Lovable.
Step 1: Get a Replicate API token
A Replicate API token lets your Lovable app authenticate with the Replicate API. To create a Replicate API token:1
Open your Replicate account
Sign in to Replicate.
2
Open API tokens
Go to Account settings → API tokens.
3
Create a token
Click Create token and give it a descriptive name, for example
Lovable integration.4
Copy the token
Copy the token (it starts with
r8_) and store it securely.Step 2: Connect Replicate to Lovable
You can create multiple connections using different API tokens.1
Open Replicate in Connectors
Go to Connectors and select Replicate.
2
Add a connection
Click Add connection.
3
Configure the connection
- Display name: name the connection, for example
Replicate Prod. This name is only used inside Lovable to identify the connection. - API token: paste your Replicate API token (it starts with
r8_).
4
Choose who can access this connection
Under Who can access this connection, decide who in your workspace can use the connection:
- Only you (default): only the person creating the connection can use it and its associated data.
- Invite specific people: only you and explicitly added workspace members can use the connection and its associated data.
- Invite entire workspace: click Invite entire workspace to make the connection available to everyone in your Lovable workspace.
5
Connect
Click Connect.
Limitations
The Replicate connector cannot:- Run predictions from client-side code. Calls go through Lovable from a server-side endpoint.
- Refresh or rotate API tokens automatically. To rotate, create a new token in Replicate and update the Lovable connection.
- Support per-end-user Replicate login. Each connection represents a single Replicate account shared across all projects linked to it.
Manage your connection
Connections are managed from Connectors: select , then open the connection.- Unlink projects to remove access from specific projects while keeping the connection available for others. See Unlink projects from a connection for the steps.
- Delete the connection to remove it from the workspace entirely. Deleting is permanent. It removes the credentials from all linked projects, and app features that use stop working until a new connection is added. See Delete a connection for the steps and who can delete.