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
累計下載
2839
星標
2
全站排名
#3,840
全站前 76% · 「設計創意」前 72%
平台累計安裝累計下載星標評論
ClawHub ↗8126752-
SkillHub ↗20928392—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

適用場景為文字生成影片、圖生影片(讓靜態圖動起來)、影視/藝術化內容與無需對口型的運動畫面;官方明確不適用於對口型說話(應改用 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 秒的黃昏山脈空鏡

月度資料趨勢

累計下載2839
1259210829562026-03 · 累計下載 13762026-05 · 累計下載 19282026-06 · 累計下載 21092026-07 · 累計下載 24032026-08 · 累計下載 25712026-09 · 累計下載 283926-0326-09
星標2
1232026-03 · 星標 22026-05 · 星標 22026-06 · 星標 22026-07 · 星標 22026-08 · 星標 22026-09 · 星標 226-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-092839—2
2026-082571+7.0%2
2026-072403+13.9%2
2026-062109+9.4%2
2026-051928—2
2026-031376—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),按月更新。口徑說明見資料方法。