使用 xingjiabiapi 的视频生成 API 创建 AI 视频。
Scanned 2/12/2026
Install via CLI
openskills install aAAaqwq/AGI-Super-Skills# Video Generation Skill
使用 xingjiabiapi 的视频生成 API 创建 AI 视频。
## 支持的模型
| 模型 | 别名 | 说明 | 价格 |
|------|------|------|------|
| veo3.1 | `veo` | Google Veo 标准版 | 0.12元/8s |
| veo3.1-pro | `veopro` | Google Veo 专业版 | 高质量 |
| veo3.1-pro-4k | `veo4k` | Google Veo 4K | 4K分辨率 |
| sora-2-pro-all | `sora` | OpenAI Sora 专业版 | 电影级 |
| sora-2-all | - | OpenAI Sora 标准版 | 标准 |
| kling-video | `kling` | 快手可灵 | 动作流畅 |
| MiniMax-Hailuo-2.3 | - | 海螺视频 | 性价比 |
## 使用方法
### 命令行
```bash
# 列出可用模型
python3 ~/clawd/skills/video-generation/video_api.py models
# 生成视频
python3 ~/clawd/skills/video-generation/video_api.py generate "A cat walking on the beach" -m veo3.1 -d 8
# 使用 Sora
python3 ~/clawd/skills/video-generation/video_api.py generate "Cinematic shot of a sunset" -m sora-2-pro-all -d 10
# 查询任务状态
python3 ~/clawd/skills/video-generation/video_api.py poll <task_id>
```
### Python API
```python
from skills.video_generation.video_api import generate_video, list_models
# 生成视频
result = generate_video(
prompt="A beautiful sunset over the ocean",
model="veo3.1",
duration=8,
aspect_ratio="16:9",
output_dir="/tmp/videos"
)
print(result)
# {
# "status": "completed",
# "video_url": "https://...",
# "local_path": "/tmp/videos/video_xxx.mp4"
# }
```
## API 端点
- **提交任务**: `POST /v1/video/generations`
- **查询状态**: `GET /v1/video/generations/{task_id}`
## 参数说明
| 参数 | 类型 | 默认值 | 说明 |
|------|------|--------|------|
| prompt | string | 必填 | 视频描述 |
| model | string | veo3.1 | 模型名称 |
| duration | int | 8 | 视频时长(秒) |
| aspect_ratio | string | 16:9 | 宽高比 |
## 注意事项
1. 视频生成是异步任务,需要轮询获取结果
2. 生成时间通常需要 1-5 分钟
3. 高峰期可能出现"负载饱和"错误,稍后重试即可
4. 生成的视频 URL 有时效性,建议及时下载
## 与 multimodal-agent 集成
multimodal-agent 可以调用此脚本生成视频:
```python
import subprocess
import json
result = subprocess.run([
"python3",
"/home/aa/clawd/skills/video-generation/video_api.py",
"generate",
"Your prompt here",
"-m", "veo3.1"
], capture_output=True, text=True)
output = json.loads(result.stdout)
```
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
Drive the full internationalization journey for a project — detect the stack, recommend a library, set up the chosen library, wrap existing strings, and optionally connect a translation platform. Use when the user asks to add or configure i18n, internationalization, localization, multi-language support, or translations — including when they explicitly mention LinguiJS, Lingui, next-intl, "wrap strings", "find hardcoded text", "make my app translatable", or "set up translations". Triggers on g...
PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.