LA
Lovable · Product

Lovable AI Gateway

Managed LLM access from every Lovable app.

The AI Gateway gives Lovable apps a single, billed-by-Lovable endpoint for chat completions, image generation, embeddings, TTS and STT — without wiring up an OpenAI or Anthropic account. Perfect for prototypes and AI-native features that would otherwise stall on key management.

Disclosure: We may earn a commission if you purchase through links on this page. This never affects our reviews.

Features
🔀

One key, many models

Route to GPT, Claude, Gemini and open models from a single endpoint.

🚀

Streaming

First-class support for streamed chat, image and audio.

💳

Usage caps

Set per-project or per-workspace credit limits.

📊

Logs

Inspect every request and response for debugging.

Use cases
  • AI-native SaaS features shipped without procurement approval
  • Internal automations that use LLMs without paying per-team API keys
Tutorials

Add a streaming chat feature to your app

The reference pattern for a production chat surface on top of Gateway.

  1. Create an edge function that calls the AI Gateway with streaming enabled.
  2. Wire the frontend to fetch with ReadableStream and render tokens as they arrive.
  3. Persist final assistant messages to Postgres, not partial streams.
  4. Add rate-limits per user via a Cloud function.
  5. Set a workspace credit cap so runaway loops can't drain your balance.
FAQs
Do I need my own OpenAI key?+

No — the Gateway handles model access and billing. Bring your own key only if you want to.

Resources