Sm0k367/epic-agent-studio

Epic Agent Studio — multimodal AI creative SaaS (Google OAuth, Stripe, Postgres, admin)

★ 1Forks 0TypeScriptGitHub ↗Compare

Project website ↗

README

Epic Agent Studio

Multimodal AI creative platform — text, image, audio, and video.

Sign in with Google · Subscribe · Generate in your private studio workspace.


Next.js 15 React 19 TypeScript Tailwind CSS Prisma Groq Stripe Live Demo


Overview

Epic Agent Studio by Epic Tech AI is a multimodal AI creative platform. One prompt powers text (Groq), images (Pixio), audio (Hugging Face), and video generation — with templates, history, and per-user workspaces backed by PostgreSQL.

Merged from epic-os-platform (auth, billing, admin) and agent-platform (multimodal studio UI).


Features

Text Groq LLM creative direction
Image Pixio / Hugging Face image backends
Audio Hugging Face text-to-audio
Video Pixio / HF video concepts
Templates Curated prompts in /public/templates.json
History Generations logged to Postgres
Google OAuth Auth.js / NextAuth v5
Stripe billing Weekly · monthly · yearly
Admin Users, generations, feature flags at /admin

Customer journey

  Landing (/)  →  Google sign-in  →  /auth/continue
        │                                    │
        │                         ┌──────────┴──────────┐
        │                         ▼                     ▼
        │                   Has plan?              No plan
        │                         │                     │
        │                         ▼                     ▼
        │                    /studio              /pricing
        │              generate + history              │
        │                         ▲                     │
        └─────────────────────────┴──── Stripe checkout ─┘
                           /studio?welcome=1

Quick start

cd epic-agent-studio
cp .env.example .env

Fill .env with DATABASE_URL, AUTH_SECRET, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, and AI keys (GROQ_API_KEY, PIXIO_API_KEY, HF_TOKEN).

npm install
npm run db:push
npm run db:seed
npm run dev

Open http://localhost:3000


Environment variables

Variable Required Description
DATABASE_URL Yes PostgreSQL connection string
AUTH_SECRET Yes Auth.js session secret
AUTH_URL / NEXT_PUBLIC_SITE_URL Yes Public app URL
GOOGLE_CLIENT_ID / SECRET Yes Google OAuth
STRIPE_* Billing Stripe keys and price IDs
GROQ_API_KEY Text Groq API for text generation
PIXIO_API_KEY Image/Video Pixio image/video API
HF_TOKEN Audio Hugging Face inference token
PLATFORM_ADMIN_EMAILS Admin Comma-separated admin emails

Deploy on Railway

Step Action
1 Add Postgres plugin
2 Set DATABASE_URL=${{Postgres.DATABASE_URL}}
3 Set vars from .env.example
4 Deploy via Docker (Dockerfile + railway.toml)

Health: GET /api/health → {"ok":true,"database":"connected","platform":"epic-agent-studio"}


Project structure

epic-agent-studio/
├── src/
│   ├── app/
│   │   ├── page.tsx          # Marketing landing
│   │   ├── studio/           # Protected studio UI
│   │   └── api/
│   │       ├── studio/generate/  # Multimodal generation
│   │       ├── health/           # Railway healthcheck
│   │       └── admin/generations/
│   ├── components/studio/AgentStudio.tsx
│   └── lib/                  # Auth, Stripe, tenant
├── prisma/schema.prisma      # User, Workspace, Generation
├── public/templates.json
├── Dockerfile
└── railway.toml

Scripts

Command Description
npm run dev Local dev server
npm run build Prisma generate + production build
npm run start:prod Railway entry — fast start + background DB seed
npm run db:seed Upsert studio modality feature flags

Billing

Plan Price
Weekly $9.99/week
Monthly $29.99/month
Yearly $299/year

Admin

Set PLATFORM_ADMIN_EMAILS to your Google email. First sign-in grants PLATFORM_ADMIN.

  • /admin — users, generations, feature flags
  • /api/admin/generations — recent generation log (platform admin)

License

Private repository · proprietary — all rights reserved. Owned by Epic Tech AI.


Epic Tech AI · Epic Agent Studio · Engineered with Grok

Contributors

Sm0k367

Issues