A lightweight Next.js server that provides the /api/generate endpoint for AI-powered UI generation in the Stripe App examples.
pnpm install
cp .env.example .env
# Set AI_GATEWAY_API_KEY
pnpm dev
Runs on port 3001. The Stripe apps (drawer-app/ and fullpage-app/) expect this server to be running for AI generation features.
Accepts { prompt, systemPrompt } and returns a streamed text response with a json-render spec.