← 返回
内容创作 Key 中文

Sora Video Generation

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 ❌ 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 INP
利用 OpenAI Sora 根据文本提示或参考图像生成视频。 ✅ 适用场景: - 需根据文本描述生成 AI 视频 - 图生视频(让静态图像动起来) - 创作电影感或艺术感视频内容 - 需要动态/动画效果但无需口型同步 ❌ 不适用场景: - 需要口型同步(人物说话)→ 请用 veed-ugc 或 ugc-manual - 仅需生成图像 → 请用 nano-banana-pro 或 morpheus - 剪辑现有视频 → 请用 Remotion - 需要 UGC 风格的说话头像 → 请用 veed-ugc 输入:文本提示 + 可选参考图像 输出:MP4 视频(多种分辨率/时长)
pauldelavallaz
内容创作 clawhub v1.0.1 1 版本 99801.1 Key: 需要
★ 2
Stars
📥 1,967
下载
💾 209
安装
1
版本
#latest

概述

Sora Video Generation

Generate videos using OpenAI's Sora API.

API Reference

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

Parameters

ParameterValuesDescription
--------------------------------
promptstringText description of the video (required)
input_referencefileOptional image that guides generation
modelsora-2, sora-2-proModel to use (default: sora-2)
seconds4, 8, 12Video duration (default: 4)
size720x1280, 1280x720, 1024x1792, 1792x1024Output 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

FlagDescriptionDefault
----------------------------
--prompt, -pVideo description (required)-
--filename, -fOutput file path (required)-
--input-image, -iReference image pathNone
--seconds, -sDuration: 4, 8, or 128
--size, -szResolution720x1280
--model, -msora-2 or sora-2-prosora-2
--api-key, -kOpenAI API keyenv var
--poll-intervalCheck status every N seconds10

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

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-28 22:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

AI Brand Analyzer

pauldelavallaz
分析品牌以生成全面的品牌标识档案(JSON格式)。当用户需要分析品牌、创建品牌档案或获取品牌数据进行广告生成时使用。档案可在Ad-Ready、Morpheus及其他创意工作流程中重复使用。支持列出和更新现有档案。
★ 3 📥 2,552
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,173
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,662