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
累計下載
3022
星標
1
全站排名
#3,716
全站前 74% · 「設計創意」前 69%
平台累計安裝累計下載星標評論
ClawHub ↗9327841-
SkillHub ↗16330221—

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

這個技能是做什麼的

該技能可將文字提示或參考圖像提交給 OpenAI 處理,並把生成的影片寫入指定路徑;參考圖像可能會自動調整尺寸。技能卡提醒提示詞和圖片會傳送到 OpenAI,命令列直接傳入 API key 可能暴露憑證。僅提交獲准傳送的內容,使用受保護的金鑰儲存,並事先確認輸出路徑和檔案權限。 需要 Python/uv 工作流及獲授權的 OPENAI_API_KEY,調整文件腳本路徑並核對目前可用參數。指南提醒結果會到期,應於完成後及時下載;參考圖調整尺寸可能影響構圖。

資料釋出於 2026-10-27

可以用來做什麼

  • 根據文字描述生成影片
  • 以參考圖像引導影片生成
  • 指定生成檔案的儲存位置

什麼時候用

  • 需要使用 Sora API 生成影片時
  • 確認提示詞和參考圖像可傳送至 OpenAI,且憑證與輸出路徑已妥善保護時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

根據這段文字提示生成影片,並儲存到指定目錄;確認不會傳送其他檔案或敏感圖像,也不要在命令列中顯示 API key。

月度資料趨勢

累計下載3022
1913250931042026-03 · 累計下載 19952026-05 · 累計下載 23132026-06 · 累計下載 24282026-07 · 累計下載 26412026-08 · 累計下載 27532026-09 · 累計下載 302226-0326-09
星標1
0122026-03 · 星標 12026-05 · 星標 12026-06 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 126-0326-09

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

月份累計下載環比星標
2026-093022—1
2026-082753+4.2%1
2026-072641+8.8%1
2026-062428+5.0%1
2026-052313—1
2026-031995—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),按月更新。口徑說明見資料方法。