Skip to main content
Perplexity is an AI search and answer engine that returns concise answers grounded in live web data and backed by sources. The Perplexity connector lets your Lovable app call the Perplexity API with a shared API key. It’s designed for apps that need fresh, source-backed information rather than static or training-only knowledge. Perplexity is available as an app + chat connector: one shared connection that works in the chat while you build and in your published apps. With Perplexity, your app can:
  • Answer questions with current information from the web and cite the sources
  • Search only academic papers or only SEC filings when a question calls for it
  • Turn a single question into a long-form research report
  • Pick a faster or a more thorough model for each request
Perplexity is a good fit when your app depends on recent, source-backed information such as news, research, market intelligence, or fact verification.

Common use cases and example apps

These examples show what you can build with Perplexity, each with a prompt to start from.

How to connect Perplexity

Who can create Perplexity connections depends on your plan and workspace settings. App + chat connectors are available by default on Free, Pro, and Business plans. On Enterprise plans, they are effectively disabled at first: Who can create connections and clients defaults to No one until an admin changes it in Connectors → Admin settings → App + chat connectors. You can create multiple Perplexity connections using different API keys, which is useful for separating environments (for example, development and production) or managing spend per environment. When the connection is created, you can link it to the projects where you want to use it. Anyone building in a project can ask Lovable in chat to link their project to it.

Prerequisites

Before connecting Perplexity, make sure you have:
  • A Perplexity account with permission to manage billing and API keys, and a payment method or API credits set up
  • A Perplexity API key
  • Permission to create connections in your Lovable workspace (see Who can create connections and clients)
All search and answer requests through this connector consume Perplexity API credits. API credits are managed separately from a Perplexity Pro subscription. Billing is handled directly by Perplexity, not Lovable.

Step 1: Get a Perplexity API key

A Perplexity API key lets your Lovable app authenticate with the Perplexity API. You can create multiple keys in Perplexity. To create a Perplexity API key:
1

Open the Perplexity API console

Sign in to the Perplexity API console with your Perplexity account.
2

Set up your API group and billing

If this is your first key, open Settings and enter your organization details (name, address, and tax details). Then open Billing and click Add payment method, or add API credits. Keys without credits return quota errors.
3

Create a key

Open API keys and click Generate API Key. Give the key a descriptive name, for example Lovable integration.
4

Copy the key

Copy the generated API key and store it securely. It starts with pplx-.
Your API key functions like a password. Keep it secure and never share it publicly. You’ll need it in the next step.
See Perplexity documentation for more: API groups and billing.

Step 2: Connect Perplexity to Lovable

You can create multiple connections using different API keys.
1

Open Perplexity in Connectors

Open Connectors and select Perplexity. For the other places to open the catalog from, see Where to find connectors.
2

Add a connection

Click Add connection.
3

Configure the connection

  1. Display name: name the connection, for example Perplexity Prod. This name is only used inside Lovable to identify the connection.
  2. API key: paste your Perplexity API key (it starts with pplx-). Get value next to the field opens the Perplexity API console.
4

Choose who can use this connection

Under Sharing, the connection is private to you by default and shows a Private label. To share it, click Share with others. Then add workspace members by email, or click Invite entire workspace to make the connection available to everyone in your Lovable workspace.See Who can use connections and clients for more information.
5

Connect

Click Connect. Lovable verifies the key against the Perplexity API before saving the connection.
When connected, anyone building in a project can ask Lovable in chat to link their project to Perplexity (based on configured connection-level access). Your Lovable apps can then retrieve cited, up-to-date answers from Perplexity.
Unlike most app + chat connectors, Perplexity does not route through Lovable’s connector gateway. Lovable stores the API key as a secret in each linked project, and your app calls Perplexity from its server, never from the browser.

Limitations

The Perplexity connector cannot:
  • Rotate API keys automatically. To rotate, create a new key in Perplexity and update the Lovable connection.
  • Support per-end-user Perplexity login. Each connection represents a single Perplexity account shared across all projects linked to it.

Troubleshooting

If requests through the connection fail, the section below covers the most common error and how to resolve it.
The API key is valid, but the Perplexity account it belongs to has run out of API credits. Buy or top up API credits in the Perplexity API console for that account. A Pro subscription’s credits are managed separately.

Manage your Perplexity connection

Connections are managed from Connectors: select Perplexity, then open the connection.
  • Unlink projects to remove Perplexity 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 Perplexity stop working until a new connection is added. See Delete a connection for the steps and who can delete.