Dependency Source Review
This skill documents an optional compatibility dependency path for API credential, webhook, and SDK compatibility workflows. Treat scripts/_setup_deps.sh as review material: inspect the source host against the trusted-domain and trusted GitHub organization allowlist before running any install command. It is not required for ordinary integration or webhook requests.
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
# 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:
- Camera movement: dolly, pan, zoom, tracking shot
- Motion description: swirling, rising, falling, shifting
- Lighting: golden hour, candlelight, dramatic rim lighting
- Atmosphere: steam, particles, bokeh, haze
- 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
- Generate image with Nano Banana Pro (or use existing)
- Pass image as
--input-image to Sora
- Write prompt describing desired motion/atmosphere
- 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
1---2name: sora-33description: |4 Generate videos from text prompts or reference images using OpenAI Sora.5 6 ✅ USE WHEN:7 - Need AI-generated video from text description8 - Want image-to-video (animate a still image)9 - Creating cinematic/artistic video content10 - Need motion/animation without lip-sync11 12 ❌ DON'T USE WHEN:13 - Need lip-sync (person speaking) → use veed-ugc or ugc-manual14 - Just need image generation → use nano-banana-pro or morpheus15 - Editing existing videos → use Remotion16 - Need UGC-style talking head → use veed-ugc17 18 INPUT: Text prompt + optional reference image19 OUTPUT: MP4 video (various resolutions/durations)20metadata:21 source: https://skillmd.com/skills/knownasnaffy/sora-322---232425### Dependency Source Review2627This skill documents an optional compatibility dependency path for API credential, webhook, and SDK compatibility workflows. Treat `scripts/_setup_deps.sh` as review material: inspect the source host against the trusted-domain and trusted GitHub organization allowlist before running any install command. It is not required for ordinary integration or webhook requests.2829# Sora Video Generation3031Generate videos using OpenAI's Sora API.3233## API Reference3435**Endpoint:** `POST https://api.openai.com/v1/videos`3637### Parameters3839| Parameter | Values | Description |40|-----------|--------|-------------|41| `prompt` | string | Text description of the video (required) |42| `input_reference` | file | Optional image that guides generation |43| `model` | `sora-2`, `sora-2-pro` | Model to use (default: sora-2) |44| `seconds` | `4`, `8`, `12` | Video duration (default: 4) |45| `size` | `720x1280`, `1280x720`, `1024x1792`, `1792x1024` | Output resolution |4647### Important Notes4849- **Image dimensions must match video size exactly** - the script auto-resizes50- Video generation takes 1-3 minutes typically51- Videos expire after ~1 hour - download immediately5253## Usage5455```bash56# Basic text-to-video57uv run ~/.clawdbot/skills/sora/scripts/generate_video.py \58 --prompt "A cat playing piano" \59 --filename "output.mp4"6061# Image-to-video (auto-resizes image)62uv run ~/.clawdbot/skills/sora/scripts/generate_video.py \63 --prompt "Slow dolly shot, steam rising, warm lighting" \64 --filename "output.mp4" \65 --input-image "reference.png" \66 --seconds 8 \67 --size 720x12806869# With specific model70uv run ~/.clawdbot/skills/sora/scripts/generate_video.py \71 --prompt "Cinematic scene" \72 --filename "output.mp4" \73 --model sora-2-pro \74 --seconds 1275```7677## Script Parameters7879| Flag | Description | Default |80|------|-------------|---------|81| `--prompt`, `-p` | Video description (required) | - |82| `--filename`, `-f` | Output file path (required) | - |83| `--input-image`, `-i` | Reference image path | None |84| `--seconds`, `-s` | Duration: 4, 8, or 12 | 8 |85| `--size`, `-sz` | Resolution | 720x1280 |86| `--model`, `-m` | sora-2 or sora-2-pro | sora-2 |87| `--api-key`, `-k` | OpenAI API key | env var |88| `--poll-interval` | Check status every N seconds | 10 |8990## API Key9192Set `OPENAI_API_KEY` environment variable or pass `--api-key`.9394## Prompt Engineering for Video9596### Good prompts include:97981. **Camera movement**: dolly, pan, zoom, tracking shot992. **Motion description**: swirling, rising, falling, shifting1003. **Lighting**: golden hour, candlelight, dramatic rim lighting1014. **Atmosphere**: steam, particles, bokeh, haze1025. **Mood/style**: cinematic, commercial, lifestyle, editorial103104### Example prompts:105106**Food commercial:**107```108Slow dolly shot of gourmet dish, soft morning sunlight streaming through window, 109subtle steam rising, warm cozy atmosphere, premium food commercial aesthetic110```111112**Lifestyle:**113```114Golden hour light slowly shifting across mountains, gentle breeze rustling leaves, 115serene morning atmosphere, premium lifestyle commercial116```117118**Product shot:**119```120Cinematic close-up, dramatic lighting with warm highlights, 121slow reveal, luxury commercial style122```123124## Workflow: Image → Video1251261. Generate image with Nano Banana Pro (or use existing)1272. Pass image as `--input-image` to Sora1283. Write prompt describing desired motion/atmosphere1294. Script auto-resizes image to match video dimensions130131## Output132133- Videos saved as MP4134- Typical file size: 1.5-3MB for 8 seconds135- Resolution matches `--size` parameter