Skip to main content
The built-in AI connector adds AI features to your app without a provider account, API keys, billing setup, or model code of your own. Describe the feature you want, and Lovable sets it up. These AI features run inside your app. They are separate from the Lovable agent that helps you build and edit your project. Features you can add, each with its own page:

Chat, summarize, and answer questions

Assistants, summaries, Q&A, translation, and analysis.

Generate and edit images

Mockups, marketing visuals, and image editing.

Generate video clips

Short clips from a prompt or a photo.

Generate music

Clips or full tracks, with vocals or instrumental.

Search by meaning

Semantic search, RAG, and knowledge bases.

Classify, route, and score

Route tickets, flag issues, rank, and score.

Read content aloud

Narration, read-aloud buttons, and audiobooks.

Transcribe speech

Voice notes, meetings, captions, and dictation.

Talk with your app

Live two-way voice conversations.
This page is about the built-in AI connector, where your app calls AI models through Lovable without a provider account. For providers an admin enables first, such as ElevenLabs, see Enable optional AI providers.Looking for other AI services in your app, such as cited answers from the live web with Perplexity, website scraping with Firecrawl, deep research with Parallel, or custom voices with ElevenLabs? Connect them as app connectors from the connector catalog. Those connections are different from the built-in AI connector.
For copy-paste prompts covering several of these features, see the AI section of the prompt library.

Add an AI feature to your app

Describe the feature in the project chat, the same way you ask for any other change. This works in a new project and in an app you have already built. Name a model if you have one in mind, or describe the result you want and Lovable picks a supported model for the job. See Choosing a model.
For the best experience, use the built-in AI connector together with the built-in backend, so your app can make secure model calls.
Lovable creates the backend function that calls the model and manages the project’s API key, so your app never exposes credentials. See How it works. Publish your changes so your published app gets the feature. AI features in your deployed app use credits, and the More → AI dashboard shows what each request cost. See Usage and pricing and Monitor AI usage and activity.

Control when Lovable uses the built-in AI connector

The built-in AI connector is enabled for your workspace by default, with the preference Always allow, so Lovable can add AI features to your app when you ask. To change the preference for your projects, open Connectors, select AI Gateway, and change the setting under Adding AI capabilities to your projects. Choose between:
  • Always allow: Lovable automatically performs the action without asking for review or approval.
  • Ask each time: Lovable asks for your approval whenever the action is needed. Select Allow to use the built-in AI connector for that request, or Skip to decline it. You can also change the preference from the same prompt, which applies to later requests.
  • Never allow: Lovable does not use the built-in AI connector, and suggests building the feature with a provider you connect yourself.
Workspace admins and owners can enable or disable the built-in AI connector for the whole workspace. Set the AI Gateway row to Enabled or Disabled in Connectors → Admin settings. Disabling it requires a Business or Enterprise plan. Disabling the built-in AI connector stops AI calls from every app in the workspace, including apps you have already published, until an admin or owner enables it again.

Enable optional AI providers

Some models in the built-in AI connector come from providers whose terms are separate from Lovable’s. These providers are disabled by default, and an admin or owner enables each one before your app can use its models. Lovable bills their models to your workspace as AI gateway usage, so you do not need an account or API key with the provider. Workspace admins and owners can enable these providers on all plans. Disabling a provider again requires a Business or Enterprise plan. Enable a provider in either of these places:
  • In the project chat or in Chats: when you ask for a feature that needs one of these providers, Lovable shows a card to enable that provider for the workspace. Select Enable followed by the provider’s name, such as Enable ByteDance. After an admin or owner enables or disables the provider, Lovable stops showing the card for it.
  • In Connectors: open Connectors, select AI Gateway, then the provider. Review the terms shown there, then select Enable and confirm.
The card and the Connectors page both link the provider’s terms in the Provider Rules. Enabling a provider applies to every project in the workspace. On Enterprise plans with the Connector requests policy enabled, editors can ask for access to a provider. When an editor asks in the project chat or in Chats for a feature that needs one of these providers, Lovable shows a card. Select Request access to send the request to workspace admins and owners in the Action center. The provider stays unavailable to the editor until an admin or owner enables it. Disabling a provider blocks every app in the workspace from calling its models through the built-in AI connector, including published apps. To enable the provider again after someone disables it, use Connectors. Two workspace settings also limit these providers:
  • EU inference: none of the three providers is available while your workspace has EU inference enabled.
  • Extended-retention models: on Enterprise plans, ByteDance and TopazLabs models also need Extended-retention models, because the provider stores the requests. ElevenLabs models do not need that setting.
When ElevenLabs is enabled, Lovable uses ElevenLabs for new speech and music features unless you name another model. Apps you have already built keep their models. For ElevenLabs batch or real-time speech to text, use the ElevenLabs connector with your own API key. ElevenLabs bills your account for those calls.

How it works

Lovable sets up the AI infrastructure for you:
  • API key: Lovable automatically generates and manages a LOVABLE_API_KEY for each project. You never need to create or provide it yourself. When a project is remixed, a fresh key is generated for the new project automatically.
  • Backend calls: AI calls run through a secure backend function that Lovable creates for you, which keeps your credentials and prompts server-side. The exception is live voice: the browser streams audio directly to the voice model, while your app’s server still starts the call and keeps the API key.
  • Streaming: the built-in AI connector supports streaming responses with server-sent events (SSE). Lovable sets up streaming for chatbot and assistant features, so responses appear piece by piece as they are generated rather than all at once.
The automatically generated project LOVABLE_API_KEY is separate from workspace API keys, which authenticate requests to the Lovable API. You do not need to create a workspace API key to use built-in AI features.

Choosing a model

When you ask Lovable to add or update an AI feature, you can name a supported model or describe what you want and let Lovable pick the right one. To browse the models available to your workspace in the product, open Connectors, select AI Gateway, and search the Available models list by model name, provider, or capability. Seedream 5 Pro, Seedance 2.5, Topaz Starlight Fast 2, and the ElevenLabs models are available after an admin or owner enables their provider, as described in Enable optional AI providers.
Enterprise workspaces use only zero-data-retention models, which the provider does not store, unless a workspace admin enables Extended-retention models. The Claude models, GPT-6.1 Terra, Gemini Omni 1.1 Flash, and the ByteDance and TopazLabs models are not zero-data-retention models, so on Enterprise plans your app can use them only after an admin enables that setting and accepts its current terms.Until an admin enables Extended-retention models, the Available models list marks each model your app cannot use with a Blocked by retention policy badge.When an admin enables EU inference, your app can use only the models that run in the European Union. A request for any other model fails with an error.
This table shows where to start for each use case and when you might switch. Each use case links to the page for its models. Each of these jobs has its own page: the models available for it, what each model is good for, and the limits that matter. In every table the default model, where there is one, comes first.
The Start with column names a current model for each job. When you name a model yourself, prefer a newer generation over an older one: older generations are the first to reach a retirement date.
A model that is being retired is listed on Deprecated models, with its retirement date and what happens to your app’s requests after it.

Monitor AI usage and activity

A project with a backend has an AI activity dashboard under More → AI that shows what your app’s AI features cost and how they are performing. You need permission to view the project’s AI logs to open it.
The project toolbar with the More tab selected and AI highlighted in the list of sections below it, with Agent integrations under it, showing where to open the AI activity dashboard
Use the dashboard to track spend, spot failed requests, and inspect individual AI calls. Lovable reads this activity too, so it can help you debug failures and improve your app’s AI features.
The More → AI dashboard is a per-project view for monitoring and debugging AI features. It shows individual requests with their status, model, and cost, and, when request content is available, the redacted request and response.To review AI spend across your workspace, see Usage and pricing.
Choose a time range to summarize recent AI activity. Four cards show:
  • Credits used: the credits your app’s AI requests used in the selected range.
  • AI requests: how many requests your app made.
  • Success rate: the percentage of requests that completed successfully.
  • Avg. time: the average time a request took.
On the Free plan, you can view the last 24 hours of activity. On paid plans, you can view the last 90 days.

AI activity

The AI activity list shows recent AI requests, newest first. When an AI action takes several steps, they appear together as a single run, so you can see the cost of each step. Each entry shows its status, a run name taken from the request, the model used, the credits it cost, when it ran, and how many requests the run covers. Lovable always records this summary for every AI request, even when the request content is not available.

AI app context

The AI app context setting lets Lovable debug and improve your app’s AI features. When it is on, Lovable keeps the full request and response for each AI call, so you and Lovable can open a request to see exactly what was sent and returned. Lovable uses this to debug failures, refine your prompts and knowledge, and make your AI features cheaper and faster. Secrets are removed automatically, and details are kept for 90 days. While EU inference is enabled, Lovable captures nothing, even when this setting is on, because captured content has no storage inside the region. The setting is on by default on Free and Pro plans. On Business and Enterprise plans it is off by default. Enable it from the prompt on More → AI, or from project settings. Changing it requires permission to edit the project. When it is off, the dashboard and Lovable still see the summary of each request but cannot open its full content.

Usage and pricing

Temporary offering, subject to change: Free, Pro, and Business workspaces receive a 4-credit monthly AI grant for AI gateway usage in deployed apps. On Free plans, the grant resets on the 1st of each calendar month at 00:00 UTC. On Pro and Business plans, it refreshes with the subscription billing cycle. The grant does not roll over.
Your app’s AI requests count as AI gateway usage, one of the usage types on Credits and usage. AI gateway usage is measured when AI features inside your deployed app make model calls. These requests are separate from the Lovable agent that helps you plan, build, and edit your project. AI gateway usage uses credits. Credit usage depends on the model used and the amount of work performed, such as text tokens, generated images, seconds of generated video, finished music tracks, audio processing, connected voice time, or other provider-reported usage. Live voice conversations use credits for the connected time of each call, including silence and the time the model waits for your backend, with a 15-second minimum charged when the call connects. The AI activity dashboard shows this as billable voice time for each call. AI gateway usage rates are based on the underlying provider model costs. To estimate relative model costs, refer to the provider pricing sources on the individual capability pages. Chat requests served at a faster tier cost more than the same request served at the standard tier. On Free, Pro, and Business plans, AI gateway usage draws from the monthly AI grant first. After that, it draws from general credits where available. To review AI gateway usage, go to Workspace settings → Plans & credit usage → Usage details and select Run credits. For more information about AI gateway costs, monthly AI grants, top-ups, auto top-up, alerts, and usage tracking, see Credits and usage.

Canceled requests

If your app cancels an AI request that is still running, some usage may still be billed. The built-in AI connector waits briefly for the provider to finish and report final usage before closing the connection, and provider behavior on canceled requests varies.

Workspace rate limits

The built-in AI connector applies rate limits per workspace. Rate limits are measured in requests (model calls) per minute, not tokens per minute. Two features add their own limits:
  • Video generation: how many clips one project can generate at the same time, 1 on Free plans and 10 on paid plans.
  • Live voice: how many voice calls can run at the same time in a workspace, 5 on Free plans and 20 on paid plans.
If your app’s requests exceed the allowed rate, the server returns a 429 Too Many Requests status code and the request is not processed. If your workspace runs out of credits, the server returns a 402 Payment Required status code. You can restore access by adding credits or enabling auto top-up in Workspace settings → Plans & credit usage. For more information, see Credits and usage. On Free plans, upgrade to raise these limits. On paid plans, contact Lovable Support if you need more capacity.

FAQ

No. The built-in AI connector adds AI features to the apps you build with Lovable. The Lovable agent is what helps you build and edit your project.The models documented here are available for AI features inside your app. They are not the models Lovable uses to write, edit, or reason about your code.
No. Lovable automatically generates and manages the API key for each project. You do not need to create a provider account, configure billing with a model provider, or paste API keys into your app.
AI calls run through a secure backend function that Lovable creates for you, which keeps credentials and prompts server-side. The exception is live voice: the browser streams audio directly to the voice model, while your app’s server starts the call and keeps the API key.
Yes. Most model types have a default, but you can ask Lovable to use another supported model or a combination of models. For music, Lovable uses Eleven Music v2 when ElevenLabs is enabled for your workspace, and a Lyria model otherwise. See Choosing a model.
Yes. The built-in AI connector includes text-to-speech (so your app can read content aloud or respond with voice), speech-to-text (so your app can transcribe voice notes, recordings, and meetings, or take voice input), and live voice models (so people can talk with your app in a spoken conversation).Ask Lovable to add a feature such as a “read aloud” button, a voice assistant, or a meeting transcriber, and it sets up the backend for you.See Text-to-speech, Speech-to-text, and Live voice.For ElevenLabs narration without your own API key, see Enable optional AI providers. For custom voices, sound effects, or voice agents, use the ElevenLabs connector with your own API key.
Yes. The built-in AI connector offers Claude Fable 5.1, Opus 5.5, Opus 5, Sonnet 5.5, Sonnet 5, and Haiku 5.5 in newer apps (created from May 13, 2026, which use TanStack Start). See Chat models for what each model is best for. On Enterprise plans, workspace admins and owners first enable Extended-retention models and accept the terms shown there.If your app needs a provider that isn’t offered, call that provider directly from a backend edge function using your own API key stored as a secret.
Jev 1.13 is a typed-decision model from TypeSafe. It returns a category, score, or yes/no probability instead of generated text. Use it to classify tickets, route requests, rank candidates, or verify a claim against text you already have. Use a chat model when the feature needs to write a reply, summarize, or extract new wording.
Not with the built-in AI connector, which always runs through Lovable and bills your workspace credits. If you want usage billed to your own provider account instead, ask Lovable to call the provider’s API directly from a backend edge function, with your key stored as a secret.That usage is billed by the provider, and your app only consumes Cloud usage for running the function.
If your workspace runs out of credits, AI requests return a 402 Payment Required status code. You can restore access by adding credits or enabling auto top-up in Workspace settings → Plans & credit usage.For more information, see Credits and usage.