Generate videos using OpenAI's Sora API. Use when the user asks to generate, create, or make videos from text prompts or reference images. Supports image-to-video generation with automatic resizing.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install sora-video-gen或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install sora-video-gen⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/sora-video-gen/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: sora description: Generate videos using OpenAI's Sora API. Use when the user asks to generate, create, or make videos from text prompts or reference images. Supports image-to-video generation with automatic resizing. ---
Generate videos using OpenAI's Sora API.
Endpoint: POST https://api.openai.com/v1/videos
| Parameter | Values | Description | |-----------|--------|-------------| | prompt | string | Text description of the video (required) | | input_reference | file | Optional image that guides generation | | model | sora-2, sora-2-pro | Model to use (default: sora-2) | | seconds | 4, 8, 12 | Video duration (default: 4) | | size | 720x1280, 1280x720, 1024x1792, 1792x1024 | Output resolution |
# Basic text-to-video
uv run ~/.clawdbot/skills/sora/scripts/generate_video.py \
--prompt "A cat playing piano" \
--filename "output.mp4"
# Image-to-video (auto-resizes image)
uv run ~/.clawdbot/skills/sora/scripts/generate_video.py \
--prompt "Slow dolly shot, steam rising, warm lighting" \
--filename "output.mp4" \
--input-image "reference.png" \
--seconds 8 \
--size 720x1280
# With specific model
uv run ~/.clawdbot/skills/sora/scripts/generate_video.py \
--prompt "Cinematic scene" \
--filename "output.mp4" \
--model sora-2-pro \
--seconds 12
| Flag | Description | Default | |------|-------------|---------| | --prompt, -p | Video description (required) | - | | --filename, -f | Output file path (required) | - | | --input-image, -i | Reference image path | None | | --seconds, -s | Duration: 4, 8, or 12 | 8 | | --size, -sz | Resolution | 720x1280 | | --model, -m | sora-2 or sora-2-pro | sora-2 | | --api-key, -k | OpenAI API key | env var | | --poll-interval | Check status every N seconds | 10 |
Set OPENAI_API_KEY environment variable or pass --api-key.
Food commercial:
Slow dolly shot of gourmet dish, soft morning sunlight streaming through window,
subtle steam rising, warm cozy atmosphere, premium food commercial aesthetic
Lifestyle:
Golden hour light slowly shifting across mountains, gentle breeze rustling leaves,
serene morning atmosphere, premium lifestyle commercial
Product shot:
Cinematic close-up, dramatic lighting with warm highlights,
slow reveal, luxury commercial style
--input-image to Sora--size parameter安装 Sora Video Generation 后,可以对 AI 说这些话来触发它
Help me get started with Sora Video Generation
Explains what Sora Video Generation does, walks through the setup, and runs a quick demo based on your current project
Use Sora Video Generation to generate videos using OpenAI's Sora API
Invokes Sora Video Generation with the right parameters and returns the result directly in the conversation
What can I do with Sora Video Generation in my design & creative workflow?
Lists the top use cases for Sora Video Generation, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/sora-video-gen/ 目录(个人级,所有项目可用),或 .claude/skills/sora-video-gen/(项目级)。重启 AI 客户端后,用 /sora-video-gen 主动调用,或让 AI 根据上下文自动发现并使用。
Sora Video Generation 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Sora Video Generation 可免费安装使用。请查阅仓库了解许可证信息。
Generate videos using OpenAI's Sora API. Use when the user asks to generate, create, or make videos from text prompts or reference images. Supports image-to-video generation with automatic resizing.
Sora Video Generation 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Sora Video Generation
Identifies repetitive steps in your workflow and sets up Sora Video Generation to handle them automatically