Paul de Lavallaz

Sora Video Generation

设计创意v1.0.0
作者:Paul de Lavallaz更新于 2026-05-11sora-video-gen@clawhub_pauldelavallaz/sora-video-gen
视频处理#Video Generation

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

累计安装
163
累计下载
3,022
星标
1
全站排名
#3,716
全站前 74% · 「设计创意」前 69%
平台累计安装累计下载星标评论
ClawHub ↗932,7841-
SkillHub ↗1633,0221—

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

这个技能是做什么的

该技能可将文本提示或参考图像提交给 OpenAI 处理,并把生成的视频写入指定路径;参考图像可能会自动调整尺寸。技能卡提醒提示词和图片会发送到 OpenAI,命令行直接传入 API key 可能暴露凭据。仅提交获准发送的内容,使用受保护的密钥存储,并事先确认输出路径和文件权限。 需要 Python/uv 工作流及获授权的 OPENAI_API_KEY,调整文档脚本路径并核对当前可用参数。指南提醒结果会到期,应在完成后及时下载;参考图调整尺寸可能影响构图。

资料发布于 2026-10-27

可以用来做什么

  • 根据文本描述生成视频
  • 以参考图像引导视频生成
  • 指定生成文件的保存位置

什么时候用

  • 需要使用 Sora API 生成视频时
  • 确认提示词和参考图像可发送至 OpenAI,且凭据与输出路径已妥善保护时

示例提示词

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

根据这段文本提示生成视频,并保存到指定目录;确认不会发送其他文件或敏感图像,也不要在命令行中显示 API key。

月度数据趋势

累计下载3,022
1,9132,5093,1042026-03 · 累计下载 1,9952026-05 · 累计下载 2,3132026-06 · 累计下载 2,4282026-07 · 累计下载 2,6412026-08 · 累计下载 2,7532026-09 · 累计下载 3,02226-0326-09
星标1
0122026-03 · 星标 12026-05 · 星标 12026-06 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 126-0326-09

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

月份累计下载环比星标
2026-093,022—1
2026-082,753+4.2%1
2026-072,641+8.8%1
2026-062,428+5.0%1
2026-052,313—1
2026-031,995—1

SKILL.md 原文

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

3.3 KB · ClawHub v1.0.0
---
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.
---

# Sora Video Generation

Generate videos using OpenAI's Sora API.

## API Reference
展开全部(共 113 行)

**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),按月更新。口径说明见数据方法。