- 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 → App 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.
How to unlink projects from a connection
Editors and above can remove specific projects from a connection without deleting the connection entirely. The connection will remain available for other projects. To unlink projects:1
Open Connectors
Open Connectors, then go to App connectors, and select .
2
Open the connection
Open the connection you want to manage.
3
Select projects
Under Linked projects, check the projects you want to unlink.
4
Confirm
Click Unlink projects and confirm.
How to delete a connection
Workspace admins and owners can delete connections. Other members can delete a connection if they created it, or if they have been explicitly granted access to it. Before deleting, review the Linked projects section to see which projects are currently using the connection. To delete a connection:1
Open Connectors
Open Connectors, then go to App connectors, and select .
2
Open the connection
Open the connection you want to remove.
3
Review linked projects
Review the Linked projects section.
4
Delete
Under Delete this connection, click Delete and confirm.