← Back to Skills Marketplace
xAI Studio
by
H0llyW00dzZ
· GitHub ↗
· v0.2.2
· MIT-0
261
Downloads
0
Stars
0
Active Installs
5
Versions
Install in OpenClaw
/install xai-studio
Description
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...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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).
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install xai-studio - After installation, invoke the skill by name or use
/xai-studio - Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Frequently Asked Questions
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 261 downloads so far.
How do I install xAI Studio?
Run "/install xai-studio" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is xAI Studio free?
Yes, xAI Studio is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does xAI Studio support?
xAI Studio is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created xAI Studio?
It is built and maintained by H0llyW00dzZ (@h0llyw00dzz); the current version is v0.2.2.
More Skills