Loading...
Loading...
通过兔子API进行AI视频生成。支持 Veo、Sora、Kling、Seedance 等模型,单视频和长视频(多段合成)模式。当用户要求生成视频、创建视频或需要视频生成后端时使用。
npx skill4agent add tuziapi/tuzi-skills tuzi-video-genSKILL_DIR${SKILL_DIR}/scripts/main.tsecho "${TUZI_API_KEY:-not_set}"
grep -s TUZI_API_KEY .tuzi-skills/.env "$HOME/.tuzi-skills/.env"| Result | Action |
|---|---|
| Key found | Continue to Step 0.2 |
| Key NOT found | ⛔ Run API key setup (see references/config/first-time-setup.md) → Store key → Then continue |
test -f .tuzi-skills/tuzi-video-gen/EXTEND.md && echo "project"
test -f "$HOME/.tuzi-skills/tuzi-video-gen/EXTEND.md" && echo "user"| Result | Action |
|---|---|
| Found | Load, parse, apply settings |
| Not found | ⛔ Run first-time setup (references/config/first-time-setup.md) → Save EXTEND.md → Then continue |
| Path | Location |
|---|---|
| Project directory |
| User home |
references/config/preferences-schema.md# Single video
npx -y bun ${SKILL_DIR}/scripts/main.ts --prompt "A cat walking in a garden" --video cat.mp4
# With model and duration
npx -y bun ${SKILL_DIR}/scripts/main.ts --prompt "城市夜景延时" --video city.mp4 --model veo3 --seconds 8
# With reference image
npx -y bun ${SKILL_DIR}/scripts/main.ts --prompt "Animate this scene" --video out.mp4 --ref source.png
# From prompt file
npx -y bun ${SKILL_DIR}/scripts/main.ts --promptfiles prompt.md --video out.mp4
# Long video (multi-segment with ffmpeg concat)
npx -y bun ${SKILL_DIR}/scripts/main.ts --prompt "A journey through seasons" --video long.mp4 --segments 3
# Long video with per-segment prompts
npx -y bun ${SKILL_DIR}/scripts/main.ts --video long.mp4 --segments 3 --segment-prompts seg1.md seg2.md seg3.md| Option | Description |
|---|---|
| Prompt text |
| Read prompt from files (concatenated) |
| Output video path (required) |
| Model ID (default: veo3.1) |
| Duration in seconds |
| Video size (e.g., |
| Reference images |
| Reference image mode |
| Long video segment count (min 2) |
| Per-segment prompt files |
| JSON output |
| Model | Provider | Duration | Sizes | Image Mode |
|---|---|---|---|---|
| Veo | 8s | 16:9, 9:16 | reference |
| Veo | 8s | 16:9, 9:16 | frames |
| Veo | 8s | 4K | frames |
| Sora | 10/15s | 16:9, 9:16 | reference |
| Sora | 10/15/25s | 16:9, 9:16, HD | reference |
| Kling | 5/10s | 16:9, 9:16, 1:1 | reference |
| Seedance | 5/10s | 1080p, 720p | frames |
--segments Nffmpeg -f concat--segment-prompts--prompt| Variable | Description |
|---|---|
| Tuzi API key (https://api.tu-zi.com) |
| Default video model (default: veo3.1) |
| Custom Tuzi endpoint (default: https://api.tu-zi.com) |
<cwd>/.tuzi-skills/.env~/.tuzi-skills/.env--model <id>default_modelTUZI_VIDEO_MODELveo3.1Using [model]Switch model: --model <id> | EXTEND.md default_model | env TUZI_VIDEO_MODEL