open-generative-studio
Open Generative Studio
一个开源、可自托管的 AI 创作工作室。 在一个画布中生成图像、视频、口型同步、电影级片段和营销/UGC 广告——配备基于节点的流程构建器、按用户计费的积分钱包,以及托管的 MCP 服务器,让 AI 代理(Claude、ChatGPT、Cursor)可以通过你的实例生成媒体。
模型推理由 Atlas Cloud 提供支持——一个 API 密钥即可让你的实例访问前沿的图像、视频、音频和 LLM 模型(FLUX、Qwen-Image、Kling、Seedream、DeepSeek 等)。
功能
图像工作室 - 文生图和图生图,支持参考图像、多模型选择器,以及每次生成的实时成本标签。
视频工作室 - 文生视频、图生视频和参考视频,支持多图像/视频/音频参考。
口型同步 - 人像 + 音频(上传或浏览器内录制)生成说话视频。
营销工作室 - 模板化的 UGC / 产品广告视频生成。
Flow - 基于节点的流程构建器(React Flow):串联 LLM、图像、视频和音频节点,将一个提示词扩展为 N 个变体,并从内置示例媒体的预建社区模板库开始。
MCP 服务器 - 托管的 Model Context Protocol 端点,支持 OAuth 2.1 一键连接,因此代理可以调用
generate_image、generate_video、get_balance等操作来访问你的实例。积分钱包 - 原子化的 Postgres 积分操作(扣款 / 退款 / 对账)、仅追加的交易账本、可选的 Razorpay 充值、促销代码,以及两级联盟计划。
生产级加固 - 失败退款生成管道、长视频任务的异步提交与对账、结果重新托管到 Supabase Storage、速率限制,以及管理员业务指标仪表板。
架构(60 秒)
Browser (studio canvas)
| POST /api/generate { model, prompt, ... }
v
Next.js API route - Supabase auth -> atomic credit deduction -> dispatch
|
| model_costs.source drives the dispatcher:
| 'atlascloud' -> lib/atlascloud/client.js (primary provider)
| 'kie.ai' / 'muapi.ai' -> optional secondary adapters
v
Atlas Cloud (async prediction -> polled by the reconciler -> result re-hosted
into Supabase Storage -> row completed / auto-refunded on failure)前端:Next.js 15(App Router)+ React + Tailwind。
后端:Next.js API 路由 + Supabase(Postgres、Auth、Storage)。
推理:Atlas Cloud - 应用仅通过服务端与
https://api.atlascloud.ai通信;API 密钥永远不会到达浏览器。
快速开始
git clone https://github.com/nextgentrainingacademy88-max/open-generative-studio.git
cd open-generative-studio
cp .env.local.example .env.local # paste your Supabase + Atlas Cloud keys
npm install
npm run build:packages
npm run dev # http://localhost:3000完整指南(Supabase 迁移、存储桶、模型注册): SETUP.md。
由 Atlas Cloud 提供支持
本项目使用 Atlas Cloud 作为其模型推理提供商:
LLM 通过 OpenAI 兼容的
POST /v1/chat/completions端点。图像 通过
POST /api/v1/model/generateImage(FLUX、Qwen-Image、Seedream 等)。视频 通过
POST /api/v1/model/generateVideo(Kling、Vidu 等)。异步预测在
GET /api/v1/model/prediction/{id}轮询,并由内置的对账器完成。
在你的环境中设置 ATLASCLOUD_API_KEY,并在 model_costs 表(source = 'atlascloud')中注册你想要的模型——参见
supabase/migrations/0052_atlascloud_provider.sql
获取带注释的示例。密钥仅在服务端读取,绝不会提交到本仓库。
仓库导览
app/ Next.js App Router - marketing pages, studio, wallet,
affiliate portal, blog, /api routes (generate, workflow,
razorpay, mcp, cron)
components/ App shell, marketing sections, admin charts, UI primitives
lib/ Server-side core: credit ops, pricing, dispatch
atlascloud/client.js Atlas Cloud adapter (images, video, chat)
generate-core.js Auth -> deduct -> dispatch -> refund-on-failure pipeline
generation-reconcile.js Async poll + re-host + true-up
flow/ Workflow engine (poll-driven, fan-out, CAS-claimed ticks)
mcp/ MCP tools + auth (API keys + OAuth via Supabase)
packages/ Vendored studio UI + workflow-builder (React Flow)
supabase/migrations/ Full schema: wallet, generations, model catalog, promo,
affiliate program, security hardening
scripts/ Template seeders + maintenance scripts
skills/ Agent skill bundle for the MCP server致谢与血统
始于 Anil-matcha/Open-Generative-AI (MIT)并进行了大幅重建:积分钱包 SaaS 后端、服务端提供商调度、Flow 流程引擎 + 构建器 UX、带 OAuth 的 MCP 服务器、联盟计划、管理员分析、安全加固,以及营销网站。
许可证
MIT - 可自由使用、自托管、修改和再分发。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Generate images, video, and audio with Glif's media-generation agent
Generate images, video, music and voice from your CLI or AI agent. On-brand AI media toolkit.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nextgentrainingacademy88-max/open-generative-studio'
If you have feedback or need assistance with the MCP directory API, please join our Discord server