Logic
AI
Agent activity and credit usage for this project, plus the App AI gateway that lets your built app call AI without keys.
The AI section shows what the agent has done in this project (runs, success rate, duration, credits used, tokens in and out) over a selectable time window, and controls two switches: sharing full AI logs with the agent, and the App AI gateway.
The App AI gateway
The gateway lets the app you are building call AI endpoints without managing any API keys: text generation, image generation, and audio transcription. Your project ships with a small helper library, and calls are metered to your organization's credits.
import { invokeLLM, generateImage } from '@/lib/startbase-ai';
const reply = await invokeLLM({ prompt: 'Summarize this review' });
const image = await generateImage({ prompt: 'A cozy reading nook' });- Text generation: 30 requests per minute, billed as build credits.
- Image generation: 10 requests per minute, 1 creative credit per image.
- Transcription: audio up to 10 MB, 15 requests per minute.
While the gateway is disabled, AI calls from your app return 404. Once enabled, it works from previews, published sites, and custom domains alike.
Sharing AI logs with the agent
Metrics are always collected. The "Share full AI logs with the agent" switch additionally lets the agent read complete request and response logs when debugging your app's AI features. Secrets are never included in shared logs.