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.
Customers need their own OPENAI_API_KEY from OpenAI's platform:
export OPENAI_API_KEY="sk-..."> 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.
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
| Model | Duration | Approximate Cost |
|---|---|---|
| ------- | ---------- | ----------------- |
| sora-2 | 4s | ~$0.10 |
| sora-2 | 8s | ~$0.20 |
| sora-2 | 12-16s | ~$0.30 |
| sora-2 | 20s | ~$0.40 |
| sora-2-pro | 4s | ~$0.25 |
| sora-2-pro | 8s | ~$0.40 |
| sora-2-pro | 12-16s | ~$0.50 |
| sora-2-pro | 20s | ~$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.
templates/product-demo.md template + createtemplates/social-ads.md template + create (4-8s)templates/brand-spots.md template + create or create-and-polltemplates/launch-teaser.md template + create-and-pollcreate-character first, then create with character IDsedit (one targeted change per iteration)extend (continue timeline)create-batch with JSONL inputstatus or polldownload (video/thumbnail/spritesheet)templates/ matching the use case (or write a custom prompt).scripts/sora.py with appropriate flags.create-and-poll).edit (targeted changes) or extend (timeline continuation).Set the CLI path:
export SORA_CLI="<path-to-skill>/scripts/sora.py"
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
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
python "$SORA_CLI" create --prompt "Test prompt" --dry-run
Full CLI reference: references/cli.md
OPENAI_API_KEY must be set for live API calls.api.videos.* scopes).sora-2 (fast, flexible)sora-2-pro (higher fidelity, required for 1080p)1280x7204 seconds| Model | Sizes |
|---|---|
| ------- | ------- |
| sora-2 | 1280x720, 720x1280 |
| sora-2-pro | 1280x720, 720x1280, 1024x1792, 1792x1024, 1920x1080, 1080x1920 |
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.
Ready-to-use prompt templates for common business video needs:
| Template | File | Best For |
|---|---|---|
| ---------- | ------ | ---------- |
| Product Demos | templates/product-demo.md | Product launches, feature showcases |
| Social Ads | templates/social-ads.md | Instagram, TikTok, LinkedIn clips |
| Brand Spots | templates/brand-spots.md | Brand identity, company culture |
| Launch Teasers | templates/launch-teaser.md | Pre-launch hype, coming soon |
sora-2 and sora-2-pro onlyseconds parameter (4, 8, 12, 16, 20)references/cli.md — Full CLI command referencereferences/video-api.md — API parameters and endpointsreferences/prompting.md — Prompt engineering best practicesreferences/troubleshooting.md — Common errors and fixestemplates/product-demo.md — Product demo prompt templatestemplates/social-ads.md — Social ad prompt templatestemplates/brand-spots.md — Brand identity spot templatestemplates/launch-teaser.md — Launch teaser templates共 1 个版本