sora-video
Original:🇺🇸 English
Translated
3 scripts
Generate videos using Sora via lnapi.com.
2installs
Added on
NPX Install
npx skill4agent add shuliuzhenhua-sys/shuliu-skills sora-videoTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Sora Video Generation
Use the API to generate videos with Sora. Supports text-to-video and image-to-video.
lnapi.comScript Directory
Important: All scripts are located in the subdirectory of this skill.
scripts/Agent Execution Instructions:
- Determine this SKILL.md file's directory path as
SKILL_DIR - Script path =
${SKILL_DIR}/scripts/main.ts - Replace all in this document with the actual path
${SKILL_DIR}
Usage
bash
# Text-to-Video
npx -y bun ${SKILL_DIR}/scripts/main.ts --prompt "A golden retriever running on the beach" --output video.mp4
# Image-to-Video
npx -y bun ${SKILL_DIR}/scripts/main.ts --prompt "Animate this image" --image input.jpg --output video.mp4
# Specify duration and size
npx -y bun ${SKILL_DIR}/scripts/main.ts --prompt "City at night" --seconds 15 --size 1280x720 --output video.mp4Options
- ,
--prompt <text>: Prompt text (required)-p - : Read prompt from files
--promptfiles <files...> - : Input image path (for image-to-video)
--image <path> - : Output video path (required)
--output <path> - : Model ID (default
--model <id>)sora-2 - : Duration in seconds (10 or 15, default
--seconds <n>)10 - : Resolution (1280x720, 720x1280, 720x720, default
--size <WxH>)720x1280 - : Polling interval in ms (default
--poll <ms>)5000 - : JSON output
--json - : Show help
-h, --help
Fixed Config
- Base URL:
https://lnapi.com - API Key: (Required in environment)
LNAPI_KEY