Gen Sora Video

Generate a Sora video from a text prompt via an Azure OpenAI endpoint, then download the resulting .mp4 locally. Use when the user asks to generate a Sora video/video.mp4 from a prompt or wants the generated video saved to disk.

majiayu000 Updated 567 repo stars

File contents

Generate Sora Video

Generate a Sora video from a prompt and save it as an .mp4 file locally.

Run

.venv/Scripts/python .claude/skills/gen_sora/scripts/gen_sora.py "<prompt>" "output.mp4" --seconds 8 --size 1280x720

Parameters

  • Required: prompt (text prompt), output_path (where to save the mp4)
  • Optional: --model (default: env SORA_MODEL or sora-2), --seconds (default: 8), --size (default: 1280x720), --poll-seconds (default: env SORA_POLL_SECONDS or 20), --input-reference (default: omitted)

Examples

Generate and save an mp4:

.venv/Scripts/python .claude/skills/gen_sora/scripts/gen_sora.py "A cinematic drone shot of a futuristic city at sunset" "my_city.mp4" --seconds 10 --size 1920x1080

majiayu000/claude-skill-registry-data/tree/main/devops/gen-sora-video commit d04bb1d2bc

Frequently asked questions

npx skillmds@latest add majiayu000/gen-sora-video