返回 Pixelle-Video
config-schema.md
根目录 / docs / zh / reference / config-schema.md
1 # 配置文件详解
2
3 `config.yaml` 配置文件的详细说明。
4
5 ---
6
7 ## 配置结构
8
9 ```yaml
10 llm:
11 api_key: "your-api-key"
12 base_url: "https://dashscope.aliyuncs.com/compatible-mode/v1"
13 model: "qwen-plus"
14
15 comfyui:
16 comfyui_url: "http://127.0.0.1:8188"
17 comfyui_api_key: "" # ComfyUI API 密钥(可选)
18 runninghub_api_key: ""
19 runninghub_concurrent_limit: 1 # 并发限制 (1-10)
20 runninghub_instance_type: "" # 实例类型(可选,设为 "plus" 使用 48GB 显存)
21
22 image:
23 default_workflow: "runninghub/image_flux.json"
24 prompt_prefix: "Minimalist illustration style"
25
26 video:
27 default_workflow: "runninghub/video_wan2.1_fusionx.json"
28 prompt_prefix: "Minimalist illustration style"
29
30 tts:
31 default_workflow: "selfhost/tts_edge.json"
32
33 template:
34 default_template: "1080x1920/image_default.html"
35 ```
36
37 ---
38
39 ## LLM 配置
40
41 - `api_key`: API 密钥
42 - `base_url`: API 服务地址(支持任何 OpenAI 兼容接口)
43 - `model`: 模型名称
44
45 ---
46
47 ## ComfyUI 配置
48
49 ### 基础配置
50
51 - `comfyui_url`: 本地 ComfyUI 地址(默认 `http://127.0.0.1:8188`)
52 - `comfyui_api_key`: ComfyUI API 密钥(可选,用于 [Comfy Platform](https://platform.comfy.org/profile/api-keys))
53
54 ### RunningHub 云端配置
55
56 - `runninghub_api_key`: RunningHub API 密钥(使用云端工作流时必填)
57 - `runninghub_concurrent_limit`: 并发执行限制(1-10,普通会员默认为 1)
58 - `runninghub_instance_type`: 实例类型(可选)
59 - 留空或不设置:使用 24GB 显存机器
60 - `"plus"`: 使用 48GB 显存机器(适合大尺寸视频生成)
61
62 ### 图像配置
63
64 - `default_workflow`: 默认图像生成工作流
65 - `prompt_prefix`: 提示词前缀
66
67 ### 视频配置
68
69 - `default_workflow`: 默认视频生成工作流
70 - `runninghub/video_wan2.1_fusionx.json`: 云端工作流(推荐,无需本地环境)
71 - `selfhost/video_wan2.1_fusionx.json`: 本地工作流(需要本地 ComfyUI 支持)
72 - `prompt_prefix`: 视频提示词前缀(用于控制视频生成风格)
73
74 ### TTS 配置
75
76 - `default_workflow`: 默认 TTS 工作流
77
78 ---
79
80 ## 模板配置
81
82 - `default_template`: 默认帧模板路径(例如 `1080x1920/image_default.html`)
83
84 ---
85
86 ## 更多信息
87
88 配置文件会自动在首次运行时创建。
89
90
90 lines MARKDOWN