All skills

14 of 113 — copy any prompt into Lovable, or read the guide.

Active:Category: ai
AI
guide

AI cost guardrails

Set per-user daily caps and short-circuit before calling the model.

advanced 1h 30m Deep dive
aicostrate-limit
AI
guide

AI eval loop

Ship a small eval set before iterating on prompts — otherwise you're guessing.

advanced 1h 30m Deep dive
aievalquality
AI
prompt

Build a tiny eval harness for prompts

Stop guessing whether a prompt change helped — score it against a fixed set of cases before shipping.

advanced 1h 30m
aitestingqualityprompts
AI
prompt

Chat completion via Lovable AI Gateway

Call a hosted Gemini/OpenAI chat model from a server function — no API keys needed.

advanced 1h 30m Deep dive
aigatewaychat
AI
guide

Choose the right model

Match model to task: Flash for cheap/fast, Pro for reasoning, image models for pixels.

advanced 1h 30m Deep dive
aimodelscost
AI
guide

Embeddings + RAG

Store document embeddings in pgvector and retrieve top-k chunks for a chat prompt.

advanced 1h 30m Deep dive
aiembeddingsragpgvector
AI
prompt

Generate an image

Use the AI Gateway to generate an image and save it to Cloud storage.

advanced 1h 30m Deep dive
aiimagesgateway
AI
guide

Model fallback and graceful degradation

Keep AI features alive when a model is rate limited, over budget, or simply down.

advanced 1h 30m
aireliabilityerrorsgateway
AI
guide

Prompt-injection and safety

Treat all model output and all retrieved content as untrusted input.

advanced 1h 30m Deep dive
aisafetyprompt-injection
AI
prompt

Speech-to-text

Accept an audio blob and return a transcript with word timestamps.

advanced 1h 30m Deep dive
aisttaudio
AI
prompt

Stream a chat response

Stream tokens to the browser using a server route + Web Streams.

advanced 1h 30m Deep dive
aigatewaystreaming
AI
prompt

Structured JSON output

Force the model to return typed JSON matching a Zod schema.

advanced 1h 30m Deep dive
aijsonzod
AI
prompt

Text-to-speech

Generate an MP3 from text and stream it back to the client.

advanced 1h 30m Deep dive
aittsaudio
AI
prompt

Tool / function calling

Give the model tools it can call and route them to your server functions.

advanced 1h 30m Deep dive
aifunction-callingtools