From cc5582b71914036e24f8e75c964e320fe64e84be Mon Sep 17 00:00:00 2001
From: hit-cxf <2024111082@stu.hit.edu.cn>
Date: Thu, 14 May 2026 19:47:35 +0800
Subject: [PATCH] 文艺短视频:将所有模版改为兼容传入视频的格式

---
 aigc-director/references/workflow/create_project.md |  164 +++++++++++++++++-------------------------------------
 1 files changed, 51 insertions(+), 113 deletions(-)

diff --git a/aigc-director/references/workflow/create_project.md b/aigc-director/references/workflow/create_project.md
index c4e1bb3..c31601d 100644
--- a/aigc-director/references/workflow/create_project.md
+++ b/aigc-director/references/workflow/create_project.md
@@ -1,138 +1,76 @@
-# 创建项目
+# 视频生成
 
-创建一个新的视频生成项目。
+使用图片或文字生成视频片段(15秒以内)。
 
-## 请求与响应
-
-### 请求
+## 请求
 
 ```bash
-curl -X POST "http://localhost:8000/api/project/start" \
+curl -X POST "http://localhost:8000/api/sandbox/video" \
   -H "Content-Type: application/json" \
   -d '{
-    "idea": "故事内容",
-    "style": "anime",
-    "video_ratio": "16:9",
-    "llm_model": "qwen3.5-plus",
-    "vlm_model": "qwen-vl-plus",
-    "image_t2i_model": "doubao-seedream-5-0",
-    "image_it2i_model": "doubao-seedream-5-0",
-    "video_model": "wan2.6-i2v-flash",
-    "enable_concurrency": true,
-    "web_search": false
+
+    "model": "wan2.7-i2v",
+    "prompt": "一只猫在草地上奔跑",
+    "image": "code/result/image/user_upload/cat.png"
   }'
 ```
 
-### 响应
+## 参数说明
+
+| 参数 | 必填 | 说明 |
+|------|------|------|
+
+| model | | 模型,默认 wan2.7-i2v |
+| prompt | ✅ | 视频描述 |
+| image | ✅ | 参考图片路径 |
+
+## 可用模型
+
+| 模型 | 说明 |
+
+
+
+| wan2.7-i2v | 默认,最新高性能模型 |
+  | doubao-seedance-2-0-260128 | 字节跳动高并发模型 |
+  | wan2.6-i2v-flash | 快速生成 |
+  | kling-v3 | |
+| kling-v2-6 | |
+| jimeng_ti2v_v30_pro | |
+
+## ⚠️ 路径格式
+
+- `image` 必须使用 `code/result/...` 格式的**相对路径**
+- 禁止使用完整 URL 或本地路径
+
+## 响应
 
 ```json
 {
-  "session_id": "xxx",
-  "status": "idle",
-  "current_stage": "init"
+  "success": true,
+  "video_path": "code/result/sandbox/videos/xxx.mp4",
+  "record_id": "xxx"
 }
 ```
 
----
+## 获取视频文件
 
-## 参数说明
-
-| 参数 | 必填 | 说明 | 默认值 |
-|------|------|------|--------|
-| idea | ✅ | 故事创意/灵感 | - |
-| style | ✅ | 视频风格 | realistic |
-| video_ratio | | 视频比例 | 16:9 |
-| llm_model | | 剧本生成模型 | qwen3.5-plus |
-| vlm_model | | VLM 评估模型 | qwen-vl-plus |
-| image_t2i_model | | 文生图模型 | doubao-seedream-5-0 |
-| image_it2i_model | | 图生图模型 | doubao-seedream-5-0 |
-| video_model | | 视频生成模型 | wan2.6-i2v-flash |
-| enable_concurrency | | 开启并发生成 | true |
-| web_search | | 联网搜索 | false |
-
-### 可用风格
-
-`anime`, `realistic`, `comic-book`, `3d-disney`, `watercolor`, `oil-painting`, `cyberpunk`, `chinese-ink`
-
-### 可选视频比例
-
-6:9, 9:16, 1:1, 4:3, 3:4
-
-### 可用模型
-
-| 模块 | 模型 |
-|------|------|
-| LLM | qwen3.5-plus, deepseek-chat, gpt-4o, gemini-2.5-flash |
-| VLM | qwen-vl-plus, gemini-2.5-flash-image |
-| T2I | doubao-seedream-5-0, wan2.6-t2i, jimeng_t2i_v40 |
-| I2I | doubao-seedream-5-0, wan2.6-image |
-| Video | wan2.6-i2v-flash, kling-v3, jimeng_ti2v_v30_pro |
-
----
-
-## 询问用户示例
-
-在创建项目前,请向用户展示以下选项并让用户选择:
-
-| 配置项 | 选项 | 默认值(推荐) |
-|--------|------|---------------|
-| **视频风格 (style)** | anime, realistic, comic-book, 3d-disney, watercolor, oil-painting, cyberpunk, chinese-ink | realistic |
-| **视频比例 (video_ratio)** | 16:9(横屏), 9:16(竖屏), 1:1(方形), 4:3, 3:4 | 16:9 |
-| **LLM 模型** | qwen3.5-plus, deepseek-chat, gpt-4o, gemini-2.5-flash | qwen3.5-plus |
-| **VLM 模型** | qwen-vl-plus, gemini-2.5-flash-image | qwen-vl-plus |
-| **T2I 模型** | doubao-seedream-5-0, wan2.6-t2i, jimeng_t2i_v40 | doubao-seedream-5-0 |
-| **I2I 模型** | doubao-seedream-5-0, wan2.6-image | doubao-seedream-5-0 |
-| **Video 模型** | wan2.6-i2v-flash, kling-v3, jimeng_ti2v_v30_pro | wan2.6-i2v-flash |
-| **联网搜索** | true, false | false |
-| **并发生成** | true, false | true |
-
----
-
-## 停点1:项目配置确认
-
-在调用 API 创建项目之前,必须展示当前配置并询问用户:
-
-### 展示当前配置
-
-根据用户提供的idea和选择(用户未提及的选项使用默认值),生成配置确认表格:
-
-| 配置项 | 当前值 |
-|--------|--------|
-| 故事创意 (idea) | [用户的创意内容] |
-| 视频风格 (style) | realistic(默认值)或其他用户选择 |
-| 视频比例 (video_ratio) | 16:9(默认值)或其他用户选择 |
-| LLM 模型 | qwen3.5-plus(默认值)或其他用户选择 |
-| VLM 模型 | qwen-vl-plus(默认值)或其他用户选择 |
-| T2I 模型 | doubao-seedream-5-0(默认值)或其他用户选择 |
-| I2I 模型 | doubao-seedream-5-0(默认值)或其他用户选择 |
-| Video 模型 | wan2.6-i2v-flash(默认值)或其他用户选择 |
-| 联网搜索 | false(默认值)|
-| 并发生成 | true(默认值)|
-
-### 询问用户
-
-> 当前配置如上,请问是否有需要修改的?
-> - 如需修改,请告知具体要修改的项目和新值
-> - 如无需修改,请回复"确认"或"确定"
-
-### 循环确认
-
-- 如果用户提出修改 → 记录修改项 → 重新展示更新后的配置 → 再次询问确认
-- 直到用户确认无需修改 → 才能调用 API 创建项目
-
----
+```python
+# 直接从后端目录复制
+backend_path = "/code/result/sandbox/videos/{record_id}.mp4"
+local_path = "~/.openclaw/workspace/temp_imgs/{record_id}.mp4"
+shutil.copy2(backend_path, local_path)
+```
 
 ## 注意事项
 
-1. **必须询问用户**:在创建项目前,一定要询问用户项目的配置,用户没有提及的选项则使用默认值
-5. **检查 API Key**:根据选择的模型检查对应 API Key 是否配置
-
----
+1. 生成的视频较短(15秒以内)
+2. 如果需要生成长视频,请使用完整工作流
 
 ## 常见问题
 
 | 错误 | 原因 | 解决方法 |
 |------|------|----------|
 | `curl: (7) Failed to connect` | 后端未运行 | 启动后端服务 |
-| `500 Internal Server Error` | API Key 缺失或配置错误 | 检查 `backend/.env` 文件 |
-| `404 Not Found` | API 路径错误 | 确认 URL 为 `http://localhost:8000/api/project/start` |
\ No newline at end of file
+| `404 Not Found` | 路径格式错误 | 使用 `code/result/...` 格式 |
+| `"error": "image not found"` | 图片文件不存在 | 检查图片路径是否正确 |
+| `"success": false` | API Key 额度用完或无效 | 检查对应平台的 API Key |

--
Gitblit v1.8.0