- Summaries: automatically condense long text into clear takeaways.
- Chatbots and assistants: build conversational helpers into your app.
- Sentiment detection: understand user feedback at scale.
- Document Q&A: let users ask questions directly against your content.
- Creative generation: brainstorm ideas, draft copy, or expand concepts.
- Translation: serve users across languages.
- Image and document analysis: extract, summarize, and interpret key information from unstructured content.
- Workflow automation: handle repetitive or multi-step tasks inside your app.
- Semantic search and retrieval-augmented generation (RAG): search documents, knowledge bases, and content by meaning instead of exact keywords.
- Text-to-speech: turn text into spoken audio for voice narration, read-aloud, and audio-first experiences.
- Speech-to-text: transcribe voice notes, recordings, and meetings, and add voice input or dictation.
Enabling the built-in AI connector
For the best experience, use the built-in AI connector with Lovable Cloud, so your app has the backend needed to make secure model calls.
Permission preferences
The default setting is Always allow, meaning the built-in AI connector can be used automatically in your projects. You can change your preference anytime from Connectors → App connectors → Lovable AI → Manage permissions. 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. For example, if you want to add a chatbot, you can:
- Allow: enable the integration for the current project.
- Deny: decline the integration for this request. You may be asked again later.
- Adjust preferences: change the default behavior for future projects. This does not affect the current project.
- Never allow: Lovable blocks the action, informs you that AI is required, and instructs you to enable the built-in AI connector.
How it works
Lovable sets up the AI infrastructure for you:- API key: Lovable automatically generates and manages a
LOVABLE_API_KEYfor 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 edge function that Lovable creates for you. Calls are never made directly from the browser, which keeps your credentials and prompts server-side.
- Streaming: the built-in AI connector supports streaming responses with server-sent events (SSE). Lovable uses streaming by default for chatbot and assistant features, so responses appear token by token rather than all at once.
Supported models for AI features in your app
These models are available for AI features inside the apps you build, such as chatbots, image generation, semantic search, and voice. They are not the models Lovable uses to write, edit, or reason about your code.
Choosing a model
Not sure which to use? Describe what you want, and Lovable picks a model for you. This table shows where to start and when you might switch.| Use case | Start with | Switch when |
|---|---|---|
| Chat and assistant features | Gemini 3 Flash Preview | You need deeper reasoning or longer context. |
| High-volume, simple text tasks | Gemini 3.1 Flash Lite Preview or GPT-5 Nano | Accuracy matters more than cost. |
| Image generation and editing | GPT Image 2 | You want lower-cost drafts or a Gemini image model. |
| Semantic search and retrieval-augmented generation (RAG) | Gemini Embedding 001 | You need multimodal retrieval. |
| Text-to-speech | GPT-4o Mini TTS | You need character or higher-fidelity voices. |
| Speech-to-text | GPT-4o Mini Transcribe | You need higher transcription accuracy. |
Chat models
Chat models power conversational and text features: chatbots, assistants, summaries, document Q&A, translation, classification, and extraction. They range from fast, low-cost models for simple tasks to high-reasoning models for complex work. Ask Lovable to:- Build a chatbot or in-app assistant.
- Summarize long text, documents, or transcripts.
- Answer questions from your own content.
- Classify, extract, or translate text.
| Model | Best for |
|---|---|
| Gemini 3 Flash Preview (default) | Fast, general-purpose chat and iterative builds where responsiveness matters. |
| Gemini 3.5 Flash | Fast coding, reasoning, and agentic workflows. |
| Gemini 3.1 Pro Preview | Advanced coding, long-context understanding, and complex multi-step reasoning. Slower and premium-priced. |
| Gemini 3.1 Flash Lite | High-volume, lightweight tasks like classification, summarization, and translation. |
| Gemini 2.5 Pro | Deep reasoning, advanced coding, and research. Most capable 2.5 model, most expensive. |
| Gemini 2.5 Flash | Assistants and general workflows balancing speed and intelligence. |
| Gemini 2.5 Flash Lite | Simple, high-throughput tasks at the lowest cost. |
| GPT-5.5 Pro | Frontier reasoning, in-depth research, and complex engineering. Slowest and most expensive. |
| GPT-5.5 | Complex reasoning, advanced coding, and long-context knowledge work. |
| GPT-5.4 Pro | Advanced coding, deep research, and long-context multi-step reasoning. Premium-priced. |
| GPT-5.4 | Complex reasoning, coding, and long-context knowledge tasks. |
| GPT-5.4 Mini | Assistants and mid-complexity reasoning at lower cost. |
| GPT-5.4 Nano | Summaries, classification, and high-volume simple tasks. Cheapest and fastest 5.4. |
| GPT-5.2 | Complex reasoning and deep coding or analytical workflows. |
| GPT-5 | Accuracy-critical tasks and high-quality reasoning. |
| GPT-5 Mini | Assistants and business workflows balancing speed and cost. |
| GPT-5 Nano | Quick, simple responses and high-volume tasks. Cheapest and fastest GPT-5. |
Image models
Image models generate and edit images from text prompts, uploaded images, or both. Use them for visual assets, product mockups, marketing imagery, and in-app image editing. Ask Lovable to:- Generate images from a text description.
- Edit or restyle an uploaded image.
- Create product mockups or marketing visuals.
- Produce thumbnails or illustrations on demand.
| Model | Best for |
|---|---|
| GPT Image 2 (default) | High-quality image generation and editing; product mockups, marketing imagery, and creative content. |
| GPT Image 1 Mini | Cost-efficient image generation; thumbnails, drafts, and high-volume workflows. |
| Gemini 3.1 Flash Image Preview | Fast image generation and editing with strong subject consistency and text rendering. Also known as Nano Banana 2. |
| Gemini 3 Pro Image Preview | Detailed visuals, text rendering in images, and multi-image composition. Also known as Nano Banana Pro. |
| Gemini 2.5 Flash Image | Very low-cost image generation and quick visual outputs. |
Embedding models
Embedding models turn content into a format that can be searched by meaning instead of exact keywords. Use them for semantic search, retrieval-augmented generation (RAG), FAQ bots, document search, and knowledge bases. Ask Lovable to:- Build semantic search over uploaded documents.
- Create a FAQ bot that answers from your help content.
- Build a company knowledge base that finds relevant internal docs.
| Model | Best for |
|---|---|
| Gemini Embedding 001 (default) | General-purpose semantic search, document retrieval, and recommendations. |
| Gemini Embedding 2 | Multimodal retrieval across text, images, video, audio, and PDFs. |
| Text Embedding 3 Small | Cost-sensitive or high-volume text embedding workloads. |
| Text Embedding 3 Large | Higher-quality text retrieval when accuracy matters more than cost. |
Text-to-speech models
Text-to-speech models turn text into natural-sounding spoken audio, so your app can read content aloud, narrate generated text, or talk back. Describe the voice feature you want, and Lovable wires up the backend and picks the right settings. Speech streams as it is generated by default, so playback can begin before the full clip is ready, and you can describe the tone or pacing you want in plain language (for example, “speak slowly and warmly”). Ask Lovable to:- Add a “read aloud” button that speaks an article or summary.
- Narrate AI-generated stories, lessons, or briefings.
- Turn a book or document into an audiobook.
- Build a voice assistant that responds with spoken audio.
| Model | Best for |
|---|---|
| GPT-4o Mini TTS (default) | Natural-sounding speech for narration, read-aloud, and voice features. |
Speech-to-text models
Speech-to-text models turn spoken audio into text, so people can talk to your app instead of typing and your app can work with what they said. Upload a voice note, call recording, or meeting audio, and the app transcribes it. Transcription streams as it is produced by default; because these features run in real time, very long recordings may time out, so transcribe long audio in segments. Ask Lovable to:- Build a meeting assistant that turns a recording into notes and action items.
- Add voice input or dictation so users can speak instead of type.
- Transcribe and search voice memos.
- Caption or subtitle uploaded audio.
| Model | Best for |
|---|---|
| GPT-4o Mini Transcribe (default) | Fast, cost-effective transcription for most voice input and audio features. |
| GPT-4o Transcribe | Higher-accuracy transcription when quality matters more than cost. |
Monitor AI usage and activity
Every project has an AI activity dashboard under Cloud → AI that shows what your app’s AI features cost and how they are performing. Use it to track spend, spot failed requests, and inspect individual AI calls.The Cloud → AI dashboard is a per-project view for monitoring and debugging AI features. It shows individual requests with their status, duration, models, token usage, cost, and, when request capture is on, redacted request and response details.To review AI gateway spend across your workspace, go to Settings → Plans & credit usage → Usage details and select Run credits. There, you can see AI gateway usage as billed credits and filter usage by project.
- Total cost: the credits your app’s AI requests used in the selected range.
- Success rate: the percentage of requests that completed successfully.
- Avg. Duration: the average time a request took, in milliseconds.
AI activity
Below the summary, AI activity lists recent AI requests, newest first. Each entry shows its status, a title taken from the request, when it ran, the model used, the input and output tokens, the credits it cost, and how long it took. When an AI action takes several steps, they appear together as a single run so you can see the cost of each step. Lovable always records this summary information for every AI request, so the dashboard and activity list work whether or not request details are captured.Capture request details
To inspect the full content of a request, turn on Capture request details from Cloud → AI. When it is on, Lovable stores the redacted request and response payloads, so you can open a request in the activity list and see what was sent and returned. Secrets are removed before storage, and captured details are kept for 90 days. The default depends on your plan:- Free and Pro: capture is on by default.
- Business and Enterprise: capture is off by default, and you can turn it on per project.
Usage and pricing
Temporary offering, subject to change: Free workspaces receive 4 monthly AI credits for AI gateway usage in deployed apps. The monthly AI grant resets on the 1st of each calendar month at 00:00 UTC and does not roll over.
Cancelled requests
If your app cancels an in-flight AI request, some usage may still be counted. The built-in AI connector waits briefly for the provider to finish and report final usage before closing the connection. Provider behavior on cancelled requests varies, so some usage may still be billed even if the app closes the connection before the response finishes.Workspace rate limits
To ensure reliable performance and fair access for all users, the built-in AI connector applies rate limits per workspace. These limits help maintain system stability, prevent abuse, control costs, and provide a consistent experience for everyone. If your app’s requests exceed the allowed rate, the server returns a429 Too Many Requests status code and the request will not be 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 Settings → Plans & credit usage.
For more information, see Credits and usage.
Rate limits are more restrictive for free users, while paid plans include higher thresholds and greater flexibility.
- Free plan users: upgrade anytime to increase your limits.
- Paid plan users: contact Lovable Support if you need additional capacity.
FAQ
Is the built-in AI connector the same thing as the Lovable agent?
Is the built-in AI connector the same thing as the Lovable agent?
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 listed on this page are available for AI features inside your app. They are not the models Lovable uses to write, edit, or reason about your code.
Do I need my own OpenAI, Google, or other provider API key?
Do I need my own OpenAI, Google, or other provider API key?
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.
Where do AI calls run?
Where do AI calls run?
AI calls run through a secure backend edge function that Lovable creates for you. Calls are not made directly from the browser, which helps keep credentials and prompts server-side.
Can I choose which model my app uses?
Can I choose which model my app uses?
Yes. Each model type has its own default, and you can ask Lovable to use a different supported model or combination of models for a specific AI feature. See Supported models for AI features in your app.
Can my app work with voice and audio?
Can my app work with voice and audio?
Yes. The built-in AI connector includes both text-to-speech (so your app can read content aloud or respond with voice) and speech-to-text (so your app can transcribe voice notes, recordings, and meetings, or take voice input). Ask Lovable to add a feature like a “read aloud” button, a voice assistant, or a meeting transcriber, and it sets up the backend for you. See Text-to-speech and Speech-to-text.For higher-fidelity or character voices as a core part of your product, you can also connect ElevenLabs.
What happens if my workspace runs out of credits?
What happens if my workspace runs out of credits?
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 Settings → Plans & credit usage.For more information, see Credits and usage.