← 返回 Skills 市场
yefl2064

auto-video-creator

作者 ye · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
313
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install auto-video-creator
功能描述
AI-powered video generator using XLXAI Sora2 API. Create professional videos from text prompts or images in seconds.
使用说明 (SKILL.md)

Auto Video Creator - XLXAI Video Generation Skill

Generate professional videos from text prompts or images using the XLXAI Sora2 API.

Scope

This skill focuses exclusively on video generation:

  • ✅ Calls XLXAI Sora2 API to generate videos
  • ✅ Returns task/result JSON with video URL upon completion
  • ✅ Supports text-to-video and image-to-video generation
  • ❌ Does NOT upload, post, or proxy videos to TikTok or other platforms
  • ❌ Does NOT handle social media publishing

For upload/post functionality, use a separate skill (e.g., post-to-tiktok-getlate) or downstream workflow.

Quick Start

1. Setup Environment

cp skills/xlxai-video/.env.example skills/xlxai-video/.env
# Edit skills/xlxai-video/.env and set XLXAI_API_KEY
export XLXAI_API_KEY="$YOUR_KEY"

2. Generate Video

python3 skills/xlxai-video/scripts/generate_video.py "Your video prompt here" --model sora2-portrait-4s

The script loads the API key from the XLXAI_API_KEY environment variable, handles task creation and polling, and returns JSON with the video URL when complete.

API Response Examples

Task Creation Response (no-wait)

{
  "task_id": "task_Ue8FsGswnj3fCaY91yAj84m8AA8lLVpm",
  "status": "pending",
  "model": "sora2-portrait-4s",
  "created_at": "2026-03-03T18:19:30Z"
}

Completed Task Response

{
  "task_id": "task_Ue8FsGswnj3fCaY91yAj84m8AA8lLVpm",
  "status": "completed",
  "video_url": "https://api.xlxai.store/video2-proxy/base/video/79193b56b4792daec07c5564bff412f193a6c20e5ee7ca0a323ab753da2420a9.mp4",
  "progress": 100,
  "duration": 38,
  "message": "Generation complete",
  "created_at": "2026-03-03T18:19:30Z",
  "completed_at": "2026-03-03T18:20:08Z"
}

Notes:

  • Field names depend on XLXAI API version; inspect raw JSON for actual fields
  • video_url may point to third-party CDN; download and self-host if needed

Video Models

Choose based on your needs:

Portrait Models (Vertical Videos)

  • sora2-portrait-4s — 4-second vertical video (default)
  • sora2-portrait-8s — 8-second vertical video
  • sora2-portrait-12s — 12-second vertical video

Landscape Models (Horizontal Videos)

  • sora2-landscape-4s — 4-second horizontal video
  • sora2-landscape-8s — 8-second horizontal video
  • sora2-landscape-12s — 12-second horizontal video

Default: sora2-portrait-4s

Usage Patterns

Text-to-Video Generation

Generate videos from text descriptions:

python3 scripts/generate_video.py "A 30-year-old American man in a suit presenting to camera" \
  --model sora2-landscape-8s

Image-to-Video Generation

Create videos from images with motion (local images auto-converted to data URI):

python3 scripts/generate_video.py "Man showcasing the suit, saying it's well-made and affordable" \
  --model sora2-portrait-4s \
  --image "/path/to/local/image.jpg"

Or use image URLs directly:

python3 scripts/generate_video.py "Man showcasing the suit, saying it's well-made and affordable" \
  --model sora2-portrait-4s \
  --image "http://example.com/image.jpg"

Non-blocking Task Creation

Get task ID immediately without waiting for completion:

python3 scripts/generate_video.py "Your prompt" --no-wait

Check status later:

python3 scripts/generate_video.py --check-status task_abc123

Script Options

Option Description Default
--model Video model (portrait/landscape, 4s/8s/12s) sora2-portrait-4s
--image Image URL or local file path
--no-wait Return task ID immediately false
--poll-interval Seconds between status checks 10
--timeout Max seconds to wait for completion 600
--check-status Check status of existing task

Output Format

On success, the script returns JSON with:

  • status: "completed"
  • video_url: Download link for the generated video
  • progress: 100
  • duration: Generation time in seconds
  • task_id: Unique task identifier
  • created_at: Task creation timestamp
  • completed_at: Task completion timestamp

Error Handling

The script handles:

  • ✅ API request failures with retry logic
  • ✅ Timeout after 600 seconds (configurable)
  • ✅ Progress reporting during generation
  • ✅ Clear error messages for failed tasks
  • ✅ HTTP status code validation

Important Notes

  • Copyright & Rights: Verify copyright and portrait rights before publishing generated content
  • API Key Security: Keep your API key secret; use environment variables in production
  • Video URL: May point to third-party CDN; download and self-host if needed
  • Rate Limits: Check XLXAI API documentation for rate limiting

日本語ガイド

セットアップ

cp skills/xlxai-video/.env.example skills/xlxai-video/.env
export XLXAI_API_KEY="$YOUR_KEY"

ビデオ生成

python3 skills/xlxai-video/scripts/generate_video.py "あなたのプロンプト" --model sora2-portrait-4s

画像からビデオを生成

python3 skills/xlxai-video/scripts/generate_video.py "シーンの説明" --image "/path/to/image.jpg"

한국어 가이드

설정

cp skills/xlxai-video/.env.example skills/xlxai-video/.env
export XLXAI_API_KEY="$YOUR_KEY"

비디오 생성

python3 skills/xlxai-video/scripts/generate_video.py "당신의 프롬프트" --model sora2-portrait-4s

이미지에서 비디오 생성

python3 skills/xlxai-video/scripts/generate_video.py "장면 설명" --image "/path/to/image.jpg"

Contact / 連絡先 / 연락처

安全使用建议
Before installing or running this skill, note the following: (1) generate_video.py requires an XLXAI_API_KEY environment variable but the registry metadata doesn't declare it — you must provide a provider API key to use the skill. (2) The script will upload any local image you pass (it base64-encodes and sends it to https://api.xlxai.store), so do not point it at sensitive local files. (3) Verify the XLXAI API hostname and the provider's privacy/TOS; treat the API key as a secret and use a scoped/rotatable key. (4) The package relies on the Python 'requests' library but doesn't declare dependencies — ensure your environment meets requirements. (5) Source and homepage are missing; prefer packages with clear provenance or inspect the code manually before running. If you need this skill, request the publisher correct the registry metadata (declare XLXAI_API_KEY and dependencies) and/or provide a vetted homepage/source before trusting it with sensitive data.
功能分析
Type: OpenClaw Skill Name: auto-video-creator Version: 1.0.1 The skill is a legitimate wrapper for the XLXAI Sora2 video generation API. The Python script (generate_video.py) implements standard API interaction patterns, including task creation, status polling, and base64 encoding for local images, without any signs of malicious intent, data exfiltration, or unauthorized execution. It follows security best practices by retrieving API keys from environment variables rather than hardcoding them, and the documentation (SKILL.md and README.md) accurately reflects the code's functionality without attempting prompt injection or hidden actions.
能力评估
Purpose & Capability
The skill claims to call the XLXAI Sora2 API to generate videos (valid). However, the registry metadata lists no required environment variables or primary credential while both SKILL.md and generate_video.py explicitly require XLXAI_API_KEY and call https://api.xlxai.store. That mismatch (metadata says 'none' but code requires a secret and network access) is incoherent and should be addressed.
Instruction Scope
Runtime instructions stay within video generation (creating tasks, polling, returning video_url). They also instruct converting local image files to base64 data URIs and sending them to the provider — which means the skill will read arbitrary local files supplied to it and transmit their contents. That behavior is expected for image-to-video features but users should be aware it uploads local image contents to a third-party API.
Install Mechanism
There is no install spec (instruction-only), which minimizes install-time risk. However, the script imports the 'requests' package and no dependencies or packaging info are declared. This is an operational/coherency issue (the environment must have Python and requests available) rather than an immediate security exploit, but it should be documented.
Credentials
The code and SKILL.md require XLXAI_API_KEY (sensible and proportionate for an API-backed video generator). The problem is the registry metadata omits this required credential entirely. That omission could mislead users into installing without configuring a key or trusting the skill when sensitive credentials are needed. No other unrelated credentials are requested.
Persistence & Privilege
The skill does not request always:true, does not declare config path access, and does not attempt to modify other skills or system settings. It runs as an on-demand CLI script and returns JSON; persistence and privilege requests are within expected bounds.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install auto-video-creator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /auto-video-creator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Version 1.0.1 - Added initial skill metadata file (_meta.json). - Added generate_video.py script for automated video creation via XLXAI Sora2 API. - Enables both text-to-video and image-to-video generation. - Returns API task/result JSON, including the video URL upon completion. - No third-party video uploads or publishing functions included.
v1.0.0
Initial release of auto-video-creator (v1.0.0): - Generate videos automatically from text prompts or images using the XLXAI Sora2 API. - Supports both text-to-video and image-to-video workflows (including local images and URLs). - Flexible model selection for portrait and landscape formats with different durations. - Option to run generation in blocking or non-blocking mode (get task ID and poll later). - Script returns raw API JSON responses, including task status and video URL when ready. - No upload, posting, or third-party integrations; focuses solely on video creation.
元数据
Slug auto-video-creator
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

auto-video-creator 是什么?

AI-powered video generator using XLXAI Sora2 API. Create professional videos from text prompts or images in seconds. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 313 次。

如何安装 auto-video-creator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install auto-video-creator」即可一键安装,无需额外配置。

auto-video-creator 是免费的吗?

是的,auto-video-creator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

auto-video-creator 支持哪些平台?

auto-video-creator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 auto-video-creator?

由 ye(@yefl2064)开发并维护,当前版本 v1.0.1。

💬 留言讨论