b-gen
Run batch image and video tasks from a .txt or .md file line by line. Supports intervals between tasks and resumes from where it stopped, for efficient bulk processing.
Instructions
通用批量引擎:从 .txt/.md 文件逐行读取任务并批量执行,支持间隔与断点续传。
参数: task: 任务类型,必填(g-pic/i-pic 每行一个 prompt;r-pic 每行一个图片路径; r-vid 每行一个视频 URL;p-pic 每行 "prompt | 参考图路径") file_path: 输入文件路径,必填 interval: 相邻任务间隔秒数(默认 0) resume: 断点续传开关(进度记录于 .bgen_progress.json) size: 尺寸(仅生图任务生效,默认 2752x1536) n: 生成数量(仅 g-pic/i-pic 生效,默认 1)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| size | No | 2752x1536 | |
| task | Yes | ||
| resume | No | ||
| interval | No | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |