← 返回 Skills 市场
h0llyw00dzz

xAI Studio

作者 H0llyW00dzZ · GitHub ↗ · v0.2.2 · MIT-0
cross-platform ⚠ suspicious
261
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install xai-studio
功能描述
xAI Studio — generate and edit images and videos via the xAI API. Image: text-to-image, batch generation, multi-image editing, concurrent style transfers, mu...
安全使用建议
This skill appears coherent for its stated purpose, but consider these before installing: - The xai-sdk will send your provided images/videos and prompts to xAI; do not upload sensitive/private media unless you accept that it will be sent to the service. - The skill requires your XAI_API_KEY; treat it like any API secret. Only provide a key with the appropriate scope and rotate it if you stop using the skill. - SKILL.md suggests installing the xai-sdk via pip. Verify the xai-sdk package identity (official repository or PyPI publisher) before installing in a shared environment. - The CLI will fetch any image/video URLs you pass (urllib.urlretrieve). Only pass trusted URLs to avoid unexpected network activity or malicious payloads. - Minor metadata inconsistency: the registry listing noted 'instruction-only' but the package includes a scripts/run.py and install instructions. That’s not dangerous, but be aware the skill includes executable Python code that will run locally.
功能分析
Type: OpenClaw Skill Name: xai-studio Version: 0.2.2 The xai-studio skill bundle provides legitimate functionality for media generation via the xAI API, but it includes high-risk capabilities that could be abused via prompt injection. Specifically, scripts/run.py can read arbitrary local files (via the --image or --video arguments) and encode them for transmission to an external API, and it uses urllib.request.urlretrieve to download content from arbitrary URLs. While these features are plausibly needed for the stated purpose of editing local media and downloading results, they represent a significant attack surface for data exfiltration if the AI agent is manipulated into accessing sensitive files (e.g., SSH keys or credentials). No evidence of intentional malice or obfuscation was found.
能力评估
Purpose & Capability
Name/description (xAI Studio) matches the actual behavior: generating and editing images/videos through the xai_sdk. Required binary (python3) and primary env var (XAI_API_KEY) are proportionate to the described purpose.
Instruction Scope
SKILL.md and scripts/run.py confine actions to using the xai_sdk, encoding local files, optionally downloading user-supplied image/video URLs, and saving outputs under media/xai-output. This is expected, but note that user-supplied URLs will be fetched (urllib.urlretrieve) and local files may be read and base64-encoded and sent to the xAI service.
Install Mechanism
No high-risk installers are present. SKILL.md recommends creating a venv and pip-installing xai-sdk; metadata includes apt/pip steps. Small inconsistency: the registry summary said 'No install spec — instruction-only', yet SKILL.md contains install entries and a code file is included. The pip package xai-sdk is the expected dependency; verify its provenance before installing.
Credentials
Only XAI_API_KEY is required as the primary credential, which is appropriate for calling the xAI API. The code does not read other environment variables or system config paths.
Persistence & Privilege
always is false and the skill does not request persistent system privileges or modify other skills. It writes outputs to a local media directory only (no system-wide changes).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install xai-studio
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /xai-studio 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.2.2
Async concurrency restored for parallel style transfers and video edits. Features: - Restore true async concurrency in concurrent command using AsyncClient with asyncio.Semaphore (capped at 4 parallel requests) (#6) - Add _save_async_image() helper with proper await for async .image property - Apply same Semaphore + async-with pattern to video-concurrent command Docs: - Add multi-turn chaining note clarifying unlimited --prompt steps on a single source image (#5)
v0.2.1
Corrected SDK installation instructions across documentation. Docs: - Use pip3 instead of pip in venv install command for README.md (#4)
v0.2.0
Local video file support for the xAI Studio CLI. Features: - Add _encode_video() for automatic base64 encoding of local video files - video-edit and video-concurrent now accept local file paths in addition to https:// URLs (local files are encoded as data: URIs transparently)
v0.1.1
Refactored CLI internals and corrected documentation to match actual script behavior. Refactor: - Extract common kwargs builders (_build_common_image_kwargs, _build_common_video_kwargs) for image and video API calls (#1) - Reduce repetitive argument gathering across subcommand functions Docs: - Fix output file naming pattern: <command> → <prefix> with actual stems (generate, edit, style, step, video, video_edit, video_style) (#2) - Fix date placeholder: <date> → <YYYY-MM-DD> (UTC) (#2) - Add missing --aspect-ratio flag to Video Flags section in SKILL.md (#2) - Correct default values for --resolution, --timeout, and --poll-interval to reflect API/SDK defaults instead of hardcoded values (#2)
v0.1.0
v0.1.0 — 2026-03-17 Initial release of xAI Studio, an OpenClaw skill for generating and editing images and videos via the xAI API. Features: - Image generation from text prompts (single and batch up to 10) - Image editing with up to 3 source images - Concurrent style transfers (parallel prompt processing) - Multi-turn edit chaining (sequential output-to-input pipeline) - Video generation from text or still image (1–15s, 480p/720p) - Video editing with text prompts - Concurrent video edits (parallel prompt processing) - Automatic file format detection from magic bytes (PNG, JPEG, WebP, GIF) - Descriptive output filenames (<command>_<NNN>_<HHMMSS>.<ext>) - Date-organized output directories (<out-dir>/<YYYY-MM-DD>/) - Virtual environment support (useVenv) with venv/bin/python3 Infrastructure: - SKILL.md with YAML frontmatter and OpenClaw metadata - ClawHub publishing (clawhub install xai-studio) - MIT-0 license
元数据
Slug xai-studio
版本 0.2.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 5
常见问题

xAI Studio 是什么?

xAI Studio — generate and edit images and videos via the xAI API. Image: text-to-image, batch generation, multi-image editing, concurrent style transfers, mu... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 261 次。

如何安装 xAI Studio?

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

xAI Studio 是免费的吗?

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

xAI Studio 支持哪些平台?

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

谁开发了 xAI Studio?

由 H0llyW00dzZ(@h0llyw00dzz)开发并维护,当前版本 v0.2.2。

💬 留言讨论