Paul de Lavallaz

Sora Video Generation

设计创意v1.0.1
作者:Paul de Lavallaz更新于 2026-05-17sora@clawhub_pauldelavallaz/sora
视频处理#Video Generation#Animation#Image Generation#Prompt

据 AlphaMoat 统计,截至 2026-09,Sora Video Generation 累计下载 2,839 次、获 2 个星标,在全部 5,078 个 AI 技能中排名第 3,840 位,在「设计创意」分类(512 个)中排名第 367 位。

累计安装
209
累计下载
2,839
星标
2
全站排名
#3,840
全站前 76% · 「设计创意」前 72%
平台累计安装累计下载星标评论
ClawHub ↗812,6752-
SkillHub ↗2092,8392—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

适用场景为文本生成视频、图生视频(让静态图动起来)、影视/艺术化内容与无需对口型的运动画面;官方明确不适用于对口型说话(应改用 veed-ugc 或 ugc-manual)、纯图像生成(改用 nano-banana-pro 或 morpheus)、已有视频剪辑(改用 Remotion)与 UGC 风格口播(改用 veed-ugc)。调用 POST https://api.openai.com/v1/videos,参数:prompt(必填)、input_reference(可选参考图)、model(sora-2 或 sora-2-pro,默认 sora-2)、seconds(4、8 或 12 秒)、size(720x1280、1280x720、1024x1792、1792x1024)。脚本 generate_video.py 默认 8 秒、720x1280、每 10 秒轮询一次,API key 经 OPENAI_API_KEY 或 --api-key 传入。官方注意事项:图片尺寸须与视频尺寸完全一致(脚本会自动缩放);生成通常需 1-3 分钟;视频约 1 小时后过期,应立即下载;8 秒视频的典型文件大小为 1.5-3MB。配套 skill-card 提醒提示词与参考图会发送至 OpenAI、命令行传 key 可能经 shell 历史泄露(应优先用环境变量或密钥管理器)、依赖仅声明下界未锁版本,且需 Python 3.10 及以上与 OpenAI 网络访问。提示词和参考图会发送给 OpenAI;只使用获准处理的素材。API key 优先通过环境变量或密钥管理器提供,避免放在命令行参数中。

资料发布于 2026-10-27

可以用来做什么

  • 从文本提示词生成 MP4 视频
  • 用静态参考图生成动态视频
  • 生成影视感、商品展示类镜头

什么时候用

  • 需要文本或图片驱动的 AI 视频、且不需要对口型时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

从这张参考图生成 8 秒的电影感视频
生成一段 12 秒的黄昏山脉空镜

月度数据趋势

累计下载2,839
1,2592,1082,9562026-03 · 累计下载 1,3762026-05 · 累计下载 1,9282026-06 · 累计下载 2,1092026-07 · 累计下载 2,4032026-08 · 累计下载 2,5712026-09 · 累计下载 2,83926-0326-09
星标2
1232026-03 · 星标 22026-05 · 星标 22026-06 · 星标 22026-07 · 星标 22026-08 · 星标 22026-09 · 星标 226-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-092,839—2
2026-082,571+7.0%2
2026-072,403+13.9%2
2026-062,109+9.4%2
2026-051,928—2
2026-031,376—2

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.8 KB · ClawHub v1.0.1
---
name: sora
description: |
  Generate videos from text prompts or reference images using OpenAI Sora.
  
  ✅ USE WHEN:
  - Need AI-generated video from text description
  - Want image-to-video (animate a still image)
  - Creating cinematic/artistic video content
  - Need motion/animation without lip-sync
展开全部(共 129 行)
  
  ❌ DON'T USE WHEN:
  - Need lip-sync (person speaking) → use veed-ugc or ugc-manual
  - Just need image generation → use nano-banana-pro or morpheus
  - Editing existing videos → use Remotion
  - Need UGC-style talking head → use veed-ugc
  
  INPUT: Text prompt + optional reference image
  OUTPUT: MP4 video (various resolutions/durations)
---

# Sora Video Generation

Generate videos using OpenAI's Sora API.

## API Reference

**Endpoint:** `POST https://api.openai.com/v1/videos`

### Parameters

| 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 |

### Important Notes

- **Image dimensions must match video size exactly** - the script auto-resizes
- Video generation takes 1-3 minutes typically
- Videos expire after ~1 hour - download immediately

## Usage

```bash
# 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
```

## Script Parameters

| 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 |

## API Key

Set `OPENAI_API_KEY` environment variable or pass `--api-key`.

## Prompt Engineering for Video

### Good prompts include:

1. **Camera movement**: dolly, pan, zoom, tracking shot
2. **Motion description**: swirling, rising, falling, shifting
3. **Lighting**: golden hour, candlelight, dramatic rim lighting
4. **Atmosphere**: steam, particles, bokeh, haze
5. **Mood/style**: cinematic, commercial, lifestyle, editorial

### Example prompts:

**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
```

## Workflow: Image → Video

1. Generate image with Nano Banana Pro (or use existing)
2. Pass image as `--input-image` to Sora
3. Write prompt describing desired motion/atmosphere
4. Script auto-resizes image to match video dimensions

## Output

- Videos saved as MP4
- Typical file size: 1.5-3MB for 8 seconds
- Resolution matches `--size` parameter

「设计创意」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。