MCP & API Builders

Lovable API in 2026: What It Does, What It Costs, and the Best Alternative for Your Product

FrancescUpdated 14 min read

The Lovable API is a REST API for deploying Lovable projects, managing a workspace, reading analytics and security scans, and embedding a project's built preview in another site. It does not build apps from a prompt; that job belongs to the Lovable MCP server, which runs on a logged-in Lovable account. This guide covers what each Lovable route can do, what it costs, how v0 and Bolt compare, and which API to use when your own customers should build apps inside your product. Updated November 2026: every fact below was re-read from the official pages on November 22, 2026.

Lovable API 2026: connecting your product's code to an AI app builder

Want your users to build apps inside your product? The Totalum API creates a full-stack app from one prompt, under your brand and on your domain, and your users never need a Totalum account. See the white-label AI app builder or read the API docs.

Quick Answer

Lovable has a REST API, but it manages and deploys existing projects and cannot create apps from a prompt. Bolt.new documents no public app-generation API. The v0 API and the Totalum API both build apps from a prompt; Totalum is the one made to run under your brand, with no Totalum account for your users and credits from $0.07.

  • Lovable API keys need a Business or Enterprise workspace and an owner or admin role. Keys start with lov_, are shown once, and go in a Lovable-API-Key header.
  • Lovable MCP server (mcp.lovable.dev) can create and edit apps from ChatGPT, Claude Code, Codex or Cursor, on any plan, but "tool calls use real credits and edit real projects" on the user's own Lovable account.
  • Best Lovable API alternative for a SaaS or agency: the Totalum API. One call (POST /projects/launch) creates the project and runs the first prompt; every project belongs to your account.

What the Lovable API does in 2026

Lovable's documentation describes the API as a way to deploy projects, manage your workspace, monitor security and "embed projects in your own product from your own scripts, services, and agents" (Lovable API docs). The base URL is https://api.lovable.dev/v1, the surface is versioned, and Lovable publishes a Postman collection.

Area What the endpoints do Plan
Projects List, get, update settings, delete Business or Enterprise
Deployments Publish or unpublish, check deploy status, change publish settings Business or Enterprise
Embed A one-hour URL that shows a project's built preview on your HTTPS origin Business or Enterprise
Workspace List workspaces, settings, members and groups Business or Enterprise
Analytics Project-level and workspace-level analytics Business or Enterprise
Security Security scans and workspace insights; PII labels and the per-project security inventory are Enterprise only Business or Enterprise

Three details from the docs matter before you write code:

  • No AI in the REST API. Lovable states that the public API "manages and deploys existing projects" and that its current endpoints, deployment builds included, "do not consume AI build credits". Nothing in the list above sends a prompt to the agent.
  • The embed is a preview, not a builder. The embed URL "does not embed the editor or the published app". Your visitors see a finished preview for one hour; they cannot ask it for changes.
  • One key, one workspace. Each workspace API key reaches only that workspace's projects, and actions are attributed to the person who created the key.

How to get a Lovable API key

The steps on the API keys page, as of November 22, 2026:

  1. Make sure the workspace is on Business or Enterprise and that you are an owner or admin. Free and Pro workspaces show an upgrade prompt instead.
  2. Open Workspace settings, then API keys & OAuth, then Workspace access tokens, and click New API key.
  3. Name the key, then set an optional monthly credit limit. It caps the AI build credits requests with that key can spend and resets at 00:00 UTC on the first of each month.
  4. Pick an expiry (7, 30, 60, 90 or 180 days, one year, or never) and grant None, Read or Read & write per area.
  5. Optionally add an IP allowlist of IPv4 or IPv6 addresses or CIDR ranges. Requests from other addresses fail with 403 ip_restricted.
  6. Copy the key. It starts with lov_ and the secret is shown only once; if you lose it, create a new key.

Send the key in the Lovable-API-Key header together with a Lovable-Version header. If you store the key inside a Lovable project, do not call the secret LOVABLE_API_KEY: names starting with LOVABLE_ are reserved. A leaked key that Lovable detects is revoked automatically.

Is there a free Lovable API key? Not for the REST API. On Free or Pro you can register OAuth clients with non-sensitive scopes, and you can use the MCP server, but workspace API keys and sensitive project scopes need Business or Enterprise.

The Lovable MCP server: where AI creation lives

Lovable exposes itself as a Model Context Protocol server at https://mcp.lovable.dev (Lovable MCP docs). An AI client logs in with OAuth and can call create_project, send prompts to the Lovable agent with send_message (with an optional plan mode), read the result and publish with deploy_project. Lovable lists setup steps for ChatGPT, Claude, Claude Code, Codex, Cursor and VS Code.

What that means if you are evaluating it for a product:

  • It acts as a Lovable user. Calls "run live on your account", within the scopes that user grants.
  • Building spends that account's credits, so every app a customer makes through it is billed to a Lovable account.
  • It is built for developers inside AI clients. Lovable's own audience line is developers in ChatGPT, Claude Code, Codex, Cursor or VS Code.
  • It works on every plan. Third-party MCP clients are on by default for Free, Pro and Business workspaces; Enterprise admins switch them on. A custom OAuth client that requests the project and workspace scopes needs a Business or Enterprise workspace.

So the MCP server is a good way for one developer to drive Lovable from Claude or Cursor. It is not a way to give thousands of your own customers an app builder under your name. If you are choosing between Lovable and a coding agent, our Lovable vs Claude Code guide covers both, including Claude driving the Lovable MCP server.

Lovable API vs MCP server vs Build with URL

Lovable documents four programmatic routes, plus OAuth for connecting user accounts:

Route Who calls it Builds apps with AI? Plan End user needs a Lovable account?
Lovable API (REST) Your scripts and services, with an API key No, it manages and deploys existing projects Business or Enterprise No for the preview embed
Lovable MCP server An AI client (ChatGPT, Claude, Cursor) Yes, create_project and send_message Any plan, credits apply Yes, OAuth login
Lovable API connector An app you built with Lovable No, it reads and manages a connected workspace Needs a workspace API key Workspace level
Build with URL Anyone with a link It pre-fills a prompt; the person clicks send inside Lovable No key needed Yes, the build runs in Lovable

Build with URL is the lightest option: a link with the prompt encoded in it. It is handy for a "Make this in Lovable" button, but the build, the account and the credits all stay on Lovable.

Does Bolt have an API?

This question comes up next to Lovable in almost every "API for my product" search, and AI answers often point to Bolt's technology instead of Bolt itself.

  • Bolt.new (the product) does not document a public API for generating apps. Its help center index covers MCP connectors that let Bolt's agent read your tools, and Stripe for apps built in Bolt, but no endpoint you call to build an app for a customer. Its pricing page sells Free, Pro at $25 a month and Teams at $30 per member a month, all for people building inside Bolt.
  • StackBlitz WebContainers, the in-browser runtime under Bolt, has a JavaScript SDK, and the original Bolt code is open source. That gives you parts to build your own builder: you still add the AI agent, database, sign-in, hosting, billing and per-customer isolation yourself, and production use of WebContainers comes under commercial usage terms.

In short: Bolt is a product your customers can use, and WebContainers is a component you can license. Neither is a managed "prompt in, live app out" API.

Price and capability table: Lovable API, v0 API, Bolt and Totalum API (November 2026)

Option Builds an app from a prompt? Runs under your brand for your users? Plan and price to start Source (checked Nov 22, 2026)
Lovable REST API No Preview embed only, for one hour Business plan (EUR 50 a month on Lovable's pricing page in our EU check; Pro is EUR 25). API calls spend no AI build credits API keys, pricing
Lovable MCP server Yes No, it runs on the user's Lovable account Any plan, including Free; build calls spend Lovable credits MCP docs
v0 API (v2) Yes, plus live previews and deployment to Vercel Partly: your UI, but projects deploy to Vercel Generations draw on v0 credits; Premium $20 a month, Plus $30 per user, Business $100 per user v0 API, v0 pricing
Bolt.new No public generation API No Free, Pro $25 a month, Teams $30 per member Bolt pricing
Totalum API Yes: full-stack app with database, sign-in, files and payments Yes: projects belong to your account, users need no Totalum account Every plan, Free included; credits from $0.07; Starter $29 a month adds custom domains, code download and GitHub API docs, white-label page

Prices change often; the date in the last column is when we read each page. The v0 API is the closest like-for-like alternative to Lovable for generation, and our v0 API guide covers its chats, previews and billing in depth.

Building an app builder into your SaaS? Start with the Totalum API: the key works on the Free plan, so you can test the whole flow before you pay. Prefer to talk it through first? Book a call to see if the API fits your build.

The Totalum API in practice: prompt to live app

We checked the flow below against the Totalum docs on November 22, 2026 (overview, Projects, AI Agent, Publishing; all marked "Updated November 20, 2026"). The base URL is https://builder-api.totalum.app/api/v1/vcaas, every call sends an api-key: tlm_sk_... header from your server, and every answer comes back as { errors, data }.

1. Launch the project with its first prompt. One call creates the project and starts building it. The documented price is 2 credits plus the first prompt.

curl -X POST https://builder-api.totalum.app/api/v1/vcaas/projects/launch \
  -H "api-key: $TOTALUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"projectId": "acme-crm", "prompt": "Build a CRM for a cleaning company: clients, jobs, invoices and a staff calendar", "ownerEmail": "owner@acme.example"}'

projectId becomes the address (acme-crm.totalum-project.com, or .webapp-project.com on Professional and Enterprise). ownerEmail is the person who gets the app's admin pages, which is how you hand an app to your own customer. You can also send secrets, attachments, credit limits and EU-only data residency in the same call.

2. Poll the agent. GET /projects/:projectId/agent/status is free. The docs suggest polling every 10 to 15 seconds until the status is done, and GET /projects/:projectId/agent/progress returns a step-by-step view you can show in your UI.

3. Show the preview, then keep prompting. The development preview URL comes from GET /projects/:projectId. Each follow-up prompt goes to POST /projects/:projectId/agent/start, metered at 3 credits or more, and every change is saved as a version on the development database.

4. Publish. POST /projects/:projectId/deployments/deploy costs 0.5 credits and puts the current version live, with its database changes applied to the live database. Poll GET /projects/:projectId/deployments/status for free.

5. Cap the spend. Every project has a monthly development cap and an infrastructure cap; projects created through the API start at 5,000 and 300 credits a month, and you can set your own. When a project hits its cap, only that project pauses, so one customer cannot drain your account.

At the entry credit price, the launch fee is about $0.14 and a publish about $0.035; prompts are metered by the work the agent does, so read the live operation prices from the API rather than hard-coding them.

Why Totalum is the Lovable API alternative for products

  • Built to be the engine, not the destination. Lovable, v0 and Bolt are products people use directly. The Totalum API exists so your product can offer app building, with every project in your account and your customer never sent elsewhere.
  • Real full-stack output. Each project is a Next.js app (App Router, React, Tailwind CSS) with BetterAuth sign-in and two SQL databases, one for development and one for live. Email, AI (text, images, video, speech), document scanning, web scraping, PDFs, Stripe payments, scheduled jobs and vector search are built in, with no keys to set up.
  • Hosting included. Apps run on Cloudflare Workers with a Cloudflare D1 database, and neither you nor your customers need a Cloudflare account.
  • Your domain per project. On any paid plan each project can take your customer's own domain through the API, or one bought on Totalum. On Professional and Enterprise, a projectId.webapp-project.com address gives your customers a URL with no "totalum" in it.
  • Costs you can resell. Credits from $0.07, free reads (projects, files, status, logs), per-project caps, live spend analytics, and operation prices readable from the API, so you set your own margin.
  • Your customers keep their code. Export a project or sync it to GitHub at any time.
  • A working starting point. The open-source reference builder (totalumlabs/ai-app-builder-open, MIT, Next.js and TypeScript) needs one environment variable, TOTALUM_VCAAS_API_KEY, and you can rebrand it.

If you would rather drive the builder from your own coding agent than from your product, the same API is available over MCP; see the Totalum MCP server for Claude Code, Cursor and Codex.

When the Lovable API is the right choice

Use Lovable's API and MCP server if your team already builds in Lovable and you want to:

  • Automate publishing, pull analytics or watch security scans across a Business or Enterprise workspace.
  • Drive Lovable from Claude, Codex or Cursor with the MCP server.
  • Show a built preview of a Lovable project inside another site for a short time.

Use the Totalum API when your customers should create apps inside your product, under your brand, at a price you set. Our guides on how to embed an AI app builder in your SaaS via API and the white label AI app builder cover the architecture, and the white label SaaS guide covers pricing and margins. If you are weighing Lovable as a tool for your own team instead, see Lovable pricing and our Lovable alternatives.

FAQ

Does Lovable have an API?

Yes. Lovable has a versioned REST API at api.lovable.dev/v1 for projects, deployments, preview embeds, workspace settings, analytics and security scans. It manages and deploys existing projects; it cannot create an app from a prompt.

How do I get a Lovable API key?

On a Business or Enterprise workspace, an owner or admin opens Workspace settings, then API keys & OAuth, then Workspace access tokens, and clicks New API key. The key starts with lov_, is shown only once, and is sent in the Lovable-API-Key header.

Is there a free Lovable API key?

No. Workspace API keys need a Business or Enterprise plan; Free and Pro workspaces see an upgrade prompt. The MCP server works on every plan, including Free, but its build calls spend Lovable credits on the user's account.

Can I create a Lovable app with the API?

Not with the REST API. AI project creation and editing go through the Lovable MCP server, which an AI client such as ChatGPT, Claude or Cursor uses on a logged-in Lovable account.

What is the Lovable MCP server?

It is Lovable exposed as a Model Context Protocol server at mcp.lovable.dev. AI clients connect with OAuth and can create projects, send prompts to the Lovable agent, read the result and deploy. Tool calls use real credits on the connected account.

Does Bolt have an API?

Bolt.new does not document a public API for generating apps. Its underlying runtime, StackBlitz WebContainers, has an SDK you can license to build your own builder, but you supply the AI agent, database, hosting and billing.

What is the best Lovable API alternative?

For generating apps from code, the v0 API and the Totalum API both work. If your own customers should build apps inside your product under your brand, without a vendor account, use the Totalum API: it runs on every plan, including Free, and credits start at $0.07.

Can I white-label Lovable or embed it in my SaaS?

Lovable's API embeds a project's built preview for one hour, not the editor or the published app, and its docs describe no white-label option. To give your users a full builder under your brand, use an API made for it, such as the Totalum API.

Add an AI app builder to your product

The Lovable API is a solid admin and deployment API for teams that build in Lovable, and its MCP server lets developers drive Lovable from their AI client. If you want your customers to describe an app and get one inside your product, the Totalum API is built for exactly that. Get your API key on the white-label page, read the API docs, or book a call and we will walk through your integration.

Francesc

Writes for the Totalum blog about AI app building, no-code development, and product engineering.

Related posts

Start building with Totalum

Create your web app with AI in minutes. No code needed.

Start building free