← 返回
未分类 Key

Sora Video

Generate, edit, extend, and manage AI videos using OpenAI's Sora 2 API. Includes marketing-ready prompt templates for product demos, social ads, brand spots,...
使用 OpenAI 的 Sora 2 API 生成、编辑、扩展和管理 AI 视频。包括适用于产品演示、社交广告、品牌宣传片等的营销级提示模板。
jonathanlindsay jonathanlindsay 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 349
下载
💾 0
安装
1
版本
#latest

概述

sora-video

AI video generation skill for Stomme AI customers using OpenAI's Sora 2 API. Wraps a production-grade Python CLI with marketing-focused prompt templates for business use cases.

Prerequisites

OpenAI API Key (Required)

Customers need their own OPENAI_API_KEY from OpenAI's platform:

  1. Go to platform.openai.com/api-keys
  2. Create a new API key with video generation permissions
  3. Set it as an environment variable: export OPENAI_API_KEY="sk-..."
  4. Ensure your OpenAI organization has Sora API access enabled

> Important: A ChatGPT Pro/Plus subscription does NOT provide API access to Sora. You need a separate API key with pay-per-use billing from platform.openai.com.

Python + uv

The CLI requires Python 3.10+ and uses uv for dependency management (auto-installs the openai SDK):

# Install uv if not present
curl -LsSf https://astral.sh/uv/install.sh | sh

Pricing Guide

ModelDurationApproximate Cost
----------------------------------
sora-24s~$0.10
sora-28s~$0.20
sora-212-16s~$0.30
sora-220s~$0.40
sora-2-pro4s~$0.25
sora-2-pro8s~$0.40
sora-2-pro12-16s~$0.50
sora-2-pro20s~$0.60

Costs are per video generation attempt. Failed or cancelled jobs are not billed. Prices are approximate and may change — check OpenAI's pricing page for current rates.

When to Use

  • Generate product demo videos from text descriptions
  • Create social media ad clips (Instagram, TikTok, LinkedIn)
  • Produce brand identity spots and launch teasers
  • Edit or extend existing generated videos
  • Create reusable non-human character references for brand mascots
  • Batch-generate multiple video variants for A/B testing

Decision Tree

  • Product demo → use templates/product-demo.md template + create
  • Social ad → use templates/social-ads.md template + create (4-8s)
  • Brand spot → use templates/brand-spots.md template + create or create-and-poll
  • Launch teaser → use templates/launch-teaser.md template + create-and-poll
  • Character-based shotscreate-character first, then create with character IDs
  • Edit existing videoedit (one targeted change per iteration)
  • Extend existing videoextend (continue timeline)
  • Batch variantscreate-batch with JSONL input
  • Check statusstatus or poll
  • Download assetsdownload (video/thumbnail/spritesheet)

Workflow

  1. Select a template from templates/ matching the use case (or write a custom prompt).
  2. Run the CLI via scripts/sora.py with appropriate flags.
  3. For async jobs, poll until completion (or use create-and-poll).
  4. Download assets before URLs expire (~1 hour).
  5. Iterate with edit (targeted changes) or extend (timeline continuation).

CLI Quick Start

Set the CLI path:

export SORA_CLI="<path-to-skill>/scripts/sora.py"

Generate a video

uv run --with openai python "$SORA_CLI" create \
  --prompt "Close-up of a premium smartwatch on marble surface" \
  --model sora-2 \
  --size 1280x720 \
  --seconds 8

Generate and auto-download

uv run --with openai python "$SORA_CLI" create-and-poll \
  --prompt "Product hero shot of wireless earbuds" \
  --model sora-2-pro \
  --size 1920x1080 \
  --seconds 4 \
  --download \
  --out hero.mp4

Dry-run (no API call)

python "$SORA_CLI" create --prompt "Test prompt" --dry-run

Full CLI reference: references/cli.md

Authentication

  • OPENAI_API_KEY must be set for live API calls.
  • Never ask customers to paste their full key in chat — have them set it locally.
  • If key is missing, guide them to platform.openai.com/api-keys.
  • ChatGPT subscription OAuth tokens do NOT work (missing api.videos.* scopes).

Models & Defaults

  • Default model: sora-2 (fast, flexible)
  • Premium model: sora-2-pro (higher fidelity, required for 1080p)
  • Default size: 1280x720
  • Default duration: 4 seconds
  • Allowed durations: 4, 8, 12, 16, 20 seconds

Size Support

ModelSizes
--------------
sora-21280x720, 720x1280
sora-2-pro1280x720, 720x1280, 1024x1792, 1792x1024, 1920x1080, 1080x1920

Prompt Augmentation

The CLI automatically reformats prompts into a structured production spec. Use CLI flags instead of writing long structured prompts:

uv run --with openai python "$SORA_CLI" create \
  --prompt "Premium headphones on display" \
  --use-case "product teaser" \
  --scene "dark studio, soft haze" \
  --camera "85mm, slow orbit" \
  --lighting "soft key, gentle rim" \
  --seconds 8

If your prompt is already structured, add --no-augment.

Marketing Templates

Ready-to-use prompt templates for common business video needs:

TemplateFileBest For
--------------------------
Product Demostemplates/product-demo.mdProduct launches, feature showcases
Social Adstemplates/social-ads.mdInstagram, TikTok, LinkedIn clips
Brand Spotstemplates/brand-spots.mdBrand identity, company culture
Launch Teaserstemplates/launch-teaser.mdPre-launch hype, coming soon

Guardrails (Enforced by API)

  • Only content suitable for audiences under 18
  • No copyrighted characters or music
  • No real people (including public figures)
  • Input images with human faces are rejected
  • Character uploads are for non-human subjects only

API Limitations

  • Models: sora-2 and sora-2-pro only
  • Duration set via seconds parameter (4, 8, 12, 16, 20)
  • Max 2 characters per generation
  • Extensions: up to 20s each, 6 times max (120s total)
  • Extensions do not support characters or image references
  • Video creation is async — must poll for completion
  • Download URLs expire after ~1 hour
  • Content restrictions enforced server-side

Reference Map

  • references/cli.md — Full CLI command reference
  • references/video-api.md — API parameters and endpoints
  • references/prompting.md — Prompt engineering best practices
  • references/troubleshooting.md — Common errors and fixes
  • templates/product-demo.md — Product demo prompt templates
  • templates/social-ads.md — Social ad prompt templates
  • templates/brand-spots.md — Brand identity spot templates
  • templates/launch-teaser.md — Launch teaser templates

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 11:12 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,739
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,383 📥 320,851
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,086 📥 813,610