Sora
Intent
- Use for short AI video generation, remixing, polling job status, and downloading generated media assets.
Default operating pattern
- Decide the intent first: create, remix, poll, list, or download.
- Collect the exact prompt, duration, size, model, and any reference image or video identifiers before invoking the API.
- Prefer the bundled
scripts/sora.pyso async video flows stay reproducible and easier to resume. - For remix flows, explicitly name the invariants so the new clip preserves the original shot where intended.
- Poll until the job reaches a terminal state when the user needs a ready asset, then download and save the requested outputs.
Bundled helper
scripts/sora.pyhandles create, remix, polling, listing, and asset download for Sora jobs.
Pack fit
- Included in:
docs-media - Useful for demos, marketing assets, motion concepts, and short product videos.
Boundary
- Do not ask users to paste
OPENAI_API_KEYinto chat. - Do not assume Sora access exists for the current account; if the API rejects access, surface that plainly.