Stonewuu/ai-fusion-video
About
【融光】 — An agent-based, end-to-end AI creation platform for short dramas, motion comics, and videos, built with Java and agentscope2.0.
Design & MediaMeasured star growth
- in 24h
- +5
- in 7 days
- +20
- in 15 days
- +49
- in 1 month
- +141
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README_EN.md
Original
简体中文 | English
AI Fusion Video
An Agent-driven video creation platform
🤝 Sponsors
Thank you to the following sponsors for supporting AI Fusion Video!
|
Thank you to Infistar.cc (无限星河) for sponsoring this project! | All-model API access · Powering AI video creation
🔥 Reliable service at low prices: Rates as low as 1% of official pricing, with transparent pricing multipliers; redundant nodes and intelligent routing protect against HTTP 429 rate limits and circuit-breaker events; |
|
|
Thank you to LL2 for sponsoring this project! | In-house compute · Wholesale rates through direct provider contracts.
MiniMax-H3 CNY 0.05/s (self-hosted, full-quality 768P);
deepseek-v4.1-flash at 40% of official prices; |
|
Thank you to MetaSota for sponsoring this project! | MiniMax H3 Video Generation API
MetaSota offers MiniMax H3 video generation at the following rates: Generate 30-second videos with multiple reference inputs and synchronized audio. The OpenAI-compatible API also works with ComfyUI, so you don’t need to deploy your own GPU. 🎁 Sign up through the exclusive AI-FUSION-VIDEO link to claim bonus credits and special offers. |
|
Thank you to Erchun AIGC (贰春) for sponsoring this project | Multiple channels and models Images from CNY 0.01 each · H3 video from CNY 0.03/second. Seedance offers official and special-price channels, starting at 10% of official prices. Hundreds of models · Dozens of channels · Choose freely |
|
|
APIXO AI: All-in-One AI Video Maker & Multimodal Creation Platform Create storyboard references with Seedream 5.5 and explore idea-to-shot workflows with video models. Seedream 5.5 image API: limited-time 30% off, output images from $0.014 each (rates vary by output size; input images billed separately). Create online or connect through API and MCP → to fit your workflow. |
Want to feature your brand here? Contact me
| Contact the author | Join the community | Buy the author a coffee |
|---|---|---|
Please include a note with your friend request; requests without a note will not be accepted. |
Group 1 is full with 500 members. Please join Group 2. |
|
AI Fusion Video is an Agent-driven platform for video creators. It brings projects, scripts, storyboards, assets, and image and video generation into one workspace. Creators can organize scripts by episode and scene, break them down into storyboards, refine individual shots, and generate and manage the assets needed for production.
This repository includes a Java backend, a Next.js frontend, and Docker Compose deployment files. After the first launch, follow the setup wizard to create an administrator account and start using the platform.
Product Video
https://github.com/user-attachments/assets/acd181a0-541c-4163-a000-fa9ed72a5106
Features
Infinite canvas
Bring scripts, storyboards, characters, and media together on one canvas. Connect the steps you need to generate images and videos, assemble shots, and export the finished video. You can preview reference images and play clips directly in their nodes.
Use Auto Arrange to tidy a busy canvas. Save a workflow as a reusable template, or share the canvas with teammates to edit together, leave comments, and save versions.
AI Fusion Video Assistant (融光助手)
Open the assistant in a project or on the canvas. Reference a script, storyboard, asset, or selected node when asking it to revise content, plan shots, or generate media. You can also attach images, video, audio, or files when the selected model supports them. Replies appear as they are generated, and you can pick up the conversation after refreshing or returning to it.
In Agent Settings, choose your usual instructions, tools, and default Skills. The assistant follows the permissions you select for the conversation, can use external tools connected through MCP or delegate tasks to other agents, and shows progress in the chat.
ComfyUI workflows
Connect a ComfyUI instance under Settings → AI Configuration. Import the workflow exported from ComfyUI in API JSON format, map its prompt, reference media, and outputs, then validate and test it. Publish the workflow and link it to an image or video model.
Select that model in the generation tools or on the canvas to run the workflow. The form shows which inputs you need and how many reference images it accepts.
Other features
| Area | What you can do |
|---|---|
| Projects and teams | Manage creative projects, project members, and collaboration roles |
| Script writing | Organize scripts by episode and scene, and provide project context to an Agent |
| Storyboarding | Build storyboards from scripts and edit shot content, reference assets, and generation results |
| Image and video generation | Generate images and video from text or reference assets while tracking background job progress |
| Asset management | Organize project assets and reusable image and video resources |
| Models and storage | Configure text, image, and video models centrally, with local or object storage |
| System administration | Use the setup wizard, manage users and roles, reset passwords, and check for updates |
Model and generation protocols
Manage models and API connections centrally from Settings without writing secrets into the source code. Chat and Agents support OpenAI-compatible APIs, Anthropic, Gemini, DashScope, Ollama, and other model services. Image and video generation can connect to multiple services, with models selected in projects according to their capabilities.
Model availability depends on your provider account, endpoint, and permissions.
Storage
Media assets can be stored on local disk or in an S3-compatible object store. Agent workspaces can likewise use the database, local disk, or object storage, making the setup suitable for local development, single-server deployments, and cloud environments.
UI demos
https://github.com/user-attachments/assets/fe71cbb8-f9d9-4351-9a4c-cb8a0a6af7ba
https://github.com/user-attachments/assets/24d9443b-e463-405c-8ada-108236b4d6c2
https://github.com/user-attachments/assets/2f1de26c-5cd5-4be3-ad2e-81be2edd6956
https://github.com/user-attachments/assets/acd26ede-8b77-48c0-91dc-c80c5ed7ceca
https://github.com/user-attachments/assets/8a8ce3cf-4bf8-4f76-ad7c-0af373d16a5b
https://github.com/user-attachments/assets/be99d4c1-dc09-4616-8fba-06cb959c84c8
Tech stack
| Layer | Technology |
|---|---|
| Frontend | Next.js 16, React 19, TypeScript, Tailwind CSS 4, Base UI / Shadcn, Zustand |
| Backend | Java 21, Spring Boot 3.5, Spring Security, Spring AI, AgentScope, MyBatis-Plus |
| Data | MySQL 8, Redis, Flyway |
| Media | FFmpeg, FFprobe, local storage or an S3-compatible object store |
| Deployment | Docker Compose, Nginx |
Quick deployment
Docker Compose
Docker Compose is the recommended deployment method. With Docker Engine and Docker Compose installed, run:
git clone https://github.com/Stonewuu/ai-fusion-video.git
cd ai-fusion-video
cp .env.example .env
docker compose up -d
To customize ports, passwords, or the deployment mode, create a root .env based on .env.example. Git ignores this file, so project updates do not require changes to docker-compose.yml.
When startup completes, open http://localhost:8080 and follow the prompts to create an administrator account. To check the services or follow the backend logs, run:
docker compose ps
docker compose logs -f backend
By default, Compose starts MySQL, Redis, the backend, the frontend, and Nginx. Nginx provides a single entry point and forwards /api/** and /media/** requests to the backend. Before a public deployment, update the default database and Redis passwords in .env.
Build images from source
To build the frontend and backend images from the current source, run:
docker compose -f docker-compose.build.yml up -d --build
Separate frontend and backend deployment
If the frontend and backend use different public domains, configure the following values in .env:
PUBLIC_API_URL=https://api.example.com
CORS_ALLOWED_ORIGIN_PATTERNS=https://app.example.com
FRONTEND_PORT=3000
BACKEND_PORT=18080
Set PUBLIC_API_URL to the backend root URL without a trailing /api. The backend allows cross-origin requests globally by default. In production, restrict CORS_ALLOWED_ORIGIN_PATTERNS to the actual frontend origins as shown above; separate multiple origins with commas.
Run prebuilt images:
docker compose -f docker-compose.yml -f docker-compose.separated.yml up -d
Build images from source:
docker compose -f docker-compose.build.yml -f docker-compose.separated.yml up -d --build
Separate frontend and backend deployment leaves the repository's built-in Nginx service disabled. Configure an HTTPS reverse proxy for each service, then open Settings > General and confirm the site public URL and backend resource public URL.
Source development
Requirements
- JDK 21
- Node.js 20 and pnpm 10
- Docker for local MySQL and Redis
- FFmpeg and FFprobe for video composition and media inspection
Start middleware and backend
cd ai-fusion-video
docker compose -f docker-compose-middleware.yml up -d
./mvnw spring-boot:run
Windows users can run .\mvnw.cmd spring-boot:run.
The backend uses the local profile by default. Its settings live in ai-fusion-video/src/main/resources/application-local.yaml. If FFmpeg and FFprobe are not in their default locations, set VIDEO_COMPOSE_FFMPEG_PATH and VIDEO_COMPOSE_FFPROBE_PATH to the correct binaries.
Start the frontend
Open another terminal at the repository root:
cd ai-fusion-video-web
pnpm install
pnpm dev
The Next.js development server reads ai-fusion-video-web/.env.development and proxies /api/** and /media/** to http://localhost:18080. If the backend listens on another port, override the proxy target in .env.local:
DEV_BACKEND_URL=http://localhost:18081
Local addresses
| Service | Address |
|---|---|
| Frontend | http://localhost:3000 |
| Backend | http://localhost:18080 |
| Swagger UI | http://localhost:18080/swagger-ui.html |
| MySQL | localhost:43306 |
| Redis | localhost:46379 |
Configuration
Docker environment variables
Docker Compose automatically reads .env from the repository root. Each startup mode uses the following configuration:
| Deployment mode | Compose files | Variables to review |
|---|---|---|
| Default unified gateway | docker-compose.yml |
Review the MySQL root password and Redis password; application credentials are optional; change MYSQL_DATABASE, APP_PORT, JAVA_OPTS, or the CORS allowlist only when needed; keep PUBLIC_API_URL empty |
| Locally built unified gateway | docker-compose.build.yml |
Uses the same variables as the default unified gateway, but builds the images locally |
| Separate frontend and backend | Base Compose file + docker-compose.separated.yml |
Set PUBLIC_API_URL; setting CORS_ALLOWED_ORIGIN_PATTERNS is recommended in production; change FRONTEND_PORT and BACKEND_PORT when needed; APP_PORT is not used |
Change the MySQL root password and Redis password before any public deployment. If a MySQL application account is enabled, give it a separate password as well. FRONTEND_PORT, BACKEND_PORT, and PUBLIC_API_URL only take effect when docker-compose.separated.yml is included; CORS_ALLOWED_ORIGIN_PATTERNS applies to every deployment mode.
| Variable | Default | Purpose |
|---|---|---|
MYSQL_ROOT_PASSWORD |
123456 |
MySQL root administration password; it must be changed before public deployment |
REDIS_PASSWORD |
123456 |
Redis access password; it must be changed before public deployment |
MYSQL_DATABASE |
ai_fusion_video |
MySQL database name; normally does not need to be changed |
APP_PORT |
8080 |
Default unified gateway port; open http://localhost:8080 after startup |
FRONTEND_PORT |
3000 |
Exposed frontend port for separate frontend and backend deployment |
BACKEND_PORT |
18080 |
Exposed backend port for separate frontend and backend deployment |
PUBLIC_API_URL |
Empty | Public backend root URL for separate deployment; do not include /api |
CORS_ALLOWED_ORIGIN_PATTERNS |
* |
Browser origins allowed to call the backend; * allows all origins. Use explicit production origins and separate multiple values with commas |
JAVA_OPTS |
-Xms512m -Xmx1024m |
Backend JVM options; normally do not need to be changed |
MYSQL_USERNAME |
Empty | Optional MySQL application account; must not be set to root; leaving it empty preserves root access |
MYSQL_PASSWORD |
Empty | Optional MySQL application password; must be configured together with MYSQL_USERNAME |
Keep PUBLIC_API_URL empty when you use the unified gateway. CORS_ALLOWED_ORIGIN_PATTERNS may remain * or be restricted to the site's actual origin.
MYSQL_USERNAME and MYSQL_PASSWORD must either both be set or both remain empty. When .env.example is copied as-is, both variables are empty and the backend continues using root with MYSQL_ROOT_PASSWORD, matching the historical default. For a new database, setting both variables before the first startup makes MySQL create the regular account and grant it access to MYSQL_DATABASE. To move an existing database to a regular account, create and grant the user in MySQL before setting these variables; changing .env does not modify existing database accounts.
The default deployment does not publish MySQL or Redis ports to the host. If a local tool needs direct access, uncomment the relevant ports configuration in the Compose file you use. The example mappings bind only to 127.0.0.1 on the host.
Public resource URLs
Cloud image and video models generally cannot fetch reference assets from localhost or a private network address. Use public object storage or securely expose the backend resource endpoint, then save the corresponding public URL under Settings > General.
The site public URL is used for password reset emails and page links, while the backend resource public URL is used for media links and Agent references. The two settings may point to different domains.
Project layout
.
├─ ai-fusion-video/ Java backend, Flyway migrations, and backend tests
├─ ai-fusion-video-web/ Next.js frontend
├─ docker/ Nginx configuration
├─ docker-compose.yml Prebuilt image deployment
├─ docker-compose.build.yml
└─ docker-compose.separated.yml
Checks and tests
Backend:
cd ai-fusion-video
./mvnw test
./mvnw -Dtest=FlywayMigrationNamingTests test
./mvnw -Pagentscope-integration verify
Frontend:
cd ai-fusion-video-web
pnpm lint
pnpm build
Flyway migrations live in ai-fusion-video/src/main/resources/db/migration/. See the Flyway migration rules for version names, baselines, and migration history constraints.
Contributing
Issue reports, feature suggestions, and code improvements are welcome. For features or architectural changes with a broad impact, please open an Issue to describe the proposal and confirm the direction before starting development.
Development workflow
Fork this repository and clone your fork, then add this repository as
upstream:git clone https://github.com/YOUR-USERNAME/ai-fusion-video.git cd ai-fusion-video git remote add upstream https://github.com/Stonewuu/ai-fusion-video.gitCreate a feature branch from the latest
main. Do not make changes directly onmainor a version development branch:git fetch upstream git checkout main git pull --ff-only upstream main git checkout -b feat/your-changeUse a prefix such as
feat/,fix/, ordocs/, followed by a short description of the change.After completing the change, run the checks relevant to your work:
# Backend cd ai-fusion-video ./mvnw test # Frontend cd ../ai-fusion-video-web pnpm lint pnpm buildCommit and push your branch:
git add path/to/changed-file git commit -m "feat: describe your change" git push -u origin feat/your-changeWhen opening a Pull Request, set this repository's
mainbranch as the target.
Before submitting, make sure the change has a clear scope and does not include secrets, credentials, or local environment files. Add or update tests and documentation when behavior changes.
Acknowledgements
- Thanks to the LinuxDo community for supporting the project
- Thanks to waoowaoo for the script editor design reference
License
Built by Stonewu
Explore related projects
Loading…