Files
Chris Tate 4c294417f4 pdf (#124)
* no-ai

* pdf

* pdf example

* fixes

* ai gateway

* fixes

* fixes

* fixes

* shadcn

* 3 panes

* fixes

* fixes

* fixes

* fixes

* fix CI

* fix
2026-02-20 02:08:25 -06:00
..
2026-02-18 13:12:21 -06:00
2026-02-18 13:12:21 -06:00
2026-02-20 02:08:25 -06:00
2026-02-18 13:12:21 -06:00
2026-02-18 13:12:21 -06:00
2026-02-18 13:12:21 -06:00
2026-02-18 13:12:21 -06:00

Stripe App API

A lightweight Next.js server that provides the /api/generate endpoint for AI-powered UI generation in the Stripe App examples.

Setup

pnpm install

cp .env.example .env
# Set AI_GATEWAY_API_KEY

Running

pnpm dev

Runs on port 3001. The Stripe apps (drawer-app/ and fullpage-app/) expect this server to be running for AI generation features.

API

POST /api/generate

Accepts { prompt, systemPrompt } and returns a streamed text response with a json-render spec.