Generative Marketing Studio is a multi-tenant platform that takes a campaign from prompt to published post: generate the copy, generate the imagery, render the reel, then schedule it onto Facebook and Instagram.

Multi-tenancy is the constraint everything else is built around. The API is 107 REST endpoints across 21 Prisma models, and one shared surface serves every tenant, so isolation cannot be a UI concern. It is enforced server side by tenant-scoped query guards underneath Owner/Creator RBAC, with Zod validation on every request.

The generation layer is deliberately provider-agnostic: SSE token streaming for copy through OpenRouter, and a text-to-image abstraction spanning five providers so no single vendor is load-bearing. Generation costs real money per call, so a SHA-256 prompt cache dedupes repeat requests instead of paying twice for the same output.

Video is where that idea pays off most. The FFmpeg reel renderer is content-addressed per scene: editing one scene re-encodes only that segment and stream-copies the rest, turning a full re-render into a near-instant operation. Publishing is atomic, with one-step rollback.

Delivery runs through the Meta Graph API on an Agenda job queue with exponential-backoff retries, because third-party publishing fails routinely and a dropped post is a lost campaign. Access tokens are encrypted at rest with AES-256-GCM, and engagement comes back into Recharts dashboards.