Skip to main content
Adding AI to an app usually means choosing a provider, creating API keys, setting up billing, and wiring model calls into your backend. Vibely AI handles that for you: describe the AI feature you want, and Vibely builds it against a managed gateway to hosted models from Google, OpenAI, and Anthropic.
Add AI features to your app
These AI features run inside your app. They are separate from the Vibely agent that builds and edits your project, and the models listed here are not the ones the agent uses to write your code. Some examples:
  • Chatbots and assistants: conversational helpers inside your app.
  • Summaries: condense long text, documents, or transcripts.
  • Document Q&A and semantic search: find content by meaning, not keywords.
  • Classification and extraction: tag, route, or pull structured data out of text.
  • Translation: serve users in more than one language.
  • Image generation: create images from a prompt.
  • Video generation: create short clips from a prompt.
  • Text-to-speech and speech-to-text: read content aloud, transcribe voice notes, add dictation.

Before you start

Vibely AI calls are made from a Supabase Edge Function, never from the browser or the phone, so your prompts and credentials stay server-side. That means your project needs a linked Supabase project first. If it isn’t linked, the agent shows the Connect Supabase card instead of writing a function that can’t run.

Add an AI feature

Ask for the feature in the project chat. For example:
The agent writes an Edge Function that calls Vibely AI and wires your app to it. It never asks you for an OpenAI, Anthropic, or Gemini key.

How it works

  • API key. Vibely creates and manages a key for each project. It’s injected into your Edge Functions as VIBELY_AI_KEY, together with VIBELY_AI_URL. You never create or paste it. Both names are reserved secrets.
  • Server-side calls. Your Edge Function calls the gateway with that key. Nothing in your app’s bundle can reach it directly.
  • Streaming. Chat supports streaming responses over server-sent events, so replies appear as they are generated. On mobile, where React Native has no built-in EventSource, the agent uses the non-streaming chat endpoint.

Supported models

When you ask for an AI feature, you can name a model or describe what you want and let the agent pick. Each kind of task has a default: To see the current list with descriptions, open Manage → Vibely AI in the editor and select All AI models. The catalog can change, so ask the agent to check it rather than hard-coding a model name you read somewhere else.

Choosing a model

Monitor AI usage and activity

Open Manage → Vibely AI in the editor to see how your app’s AI features are doing. Choose a time range (Last 1 hour, Last 24 hours, Last 7 days, or Last 30 days) and the dashboard shows:
  • Credits used: what the app’s AI requests cost in the range.
  • AI requests: how many calls were made.
  • Success rate: the share that completed successfully.
  • Avg. time: how long a request took on average.
Below that, the activity list shows each request with its run name, model, credits, and time. Expand a request to see what was sent and returned, or the error if it failed. The same view shows your available credit balance, usage broken down by project, and Set a limit for your AI credits, which opens Settings → Usage limits & alerts. For the whole workspace, go to Settings → Vibely AI.

Usage and pricing

AI features in your deployed app spend from your workspace’s shared credits, the same balance a build turn uses. There is no separate AI balance to fund. Each call is billed after it completes, based on what it actually used, such as tokens, generated images, seconds of video, or audio. Rates follow the underlying provider’s cost for the model you use. Usage is billed to the workspace that owns the project, not to whoever is using the app. See Credits for how credits work and how to add more.

Limits and errors

Build your app to handle these responses gracefully. Showing “AI is temporarily unavailable” instead of a crash is the difference between a hiccup and a broken app. Rate limits are measured in requests per minute and depend on your plan. Other limits: text-to-speech input is capped at 4,096 characters, and speech-to-text accepts up to 25 MB of audio per request, so split long recordings.

Turn Vibely AI on or off

Vibely AI is on by default. Workspace owners and admins manage it in Customize → Connectors → Vibely AI:
  • Disable for workspace turns it off for every project.
  • The permission setting controls what the agent does when a request calls for AI:
Disabling Vibely AI affects live apps, not just new builds. Every published app that calls it starts receiving 403 AI_CONNECTOR_DISABLED immediately. Turning it back on restores them.

FAQ

No. Vibely AI powers AI features inside the apps you build. The agent is what builds and edits your project.
No. Vibely creates and manages the key for each project.
Not through Vibely AI, which always bills your workspace credits. If you want usage billed to your own provider account, ask the agent to call the provider directly from an Edge Function, with your key stored as a secret.
Yes. Calls go through an Edge Function on mobile too, never from the app itself, because anything in an app binary can be read. Voice features are especially useful on a phone.
AI requests return 402 OUT_OF_CREDITS until you add credits.

Supabase

Required first: AI calls run from an Edge Function.

Credits

How the shared credit balance works.

Secrets

Use your own provider key from an Edge Function.

Admin controls

Control which connectors your workspace can use.