← Back to Skills Marketplace
xAI Image Generator
by
mexicanamerican
· GitHub ↗
· v1.0.0
1145
Downloads
0
Stars
3
Active Installs
1
Versions
Install in OpenClaw
/install xai-image-gen
Description
Generate images from text prompts using xAI's Grok API with options for format, batch size, and automatic media attachment in OpenClaw.
Usage Guidance
Do not install this skill yet. Key issues to resolve before trusting it: 1) The bundle references a main executable 'xai-gen' but that file is not included — ask the author for the missing script or a verified repository/source. 2) Registry metadata says no env vars are required but skill.json and SKILL.md require XAI_API_KEY — confirm which is correct. 3) Inspect the xai-gen script source before running (ensure it only calls x.ai and does not exfiltrate data elsewhere). 4) Avoid blindly echoing your API key into ~/.bashrc; prefer a secure credential store or add the variable manually after reviewing. 5) Verify the API endpoint (https://api.x.ai) and the legitimacy of the publisher; if the code must be fetched from a remote repo, prefer an official GitHub release or reputable source. If the author cannot provide the missing executable and source code for review, treat the skill as incomplete and do not install.
Capability Analysis
Type: OpenClaw Skill
Name: xai-image-gen
Version: 1.0.0
The skill bundle describes a tool for generating images via xAI's API. All provided files (metadata, documentation, test script, skill definition) consistently outline a benign purpose and standard operational procedures. There is no evidence of prompt injection against the agent, data exfiltration beyond the legitimate API call, or other malicious activities. The instructions for persisting the API key in `~/.bashrc` in `SKILL.md` are for user convenience and not indicative of malicious intent. The core executable `xai-gen` was not provided for analysis, but its described behavior and dependencies (`requests` in `requirements.txt`) align with the stated purpose.
Capability Assessment
Purpose & Capability
Files and docs consistently describe an image-generation CLI that calls xAI's images API (https://api.x.ai). Requiring an XAI_API_KEY is proportionate. However the skill metadata at the registry top lists 'Required env vars: none' while skill.json and SKILL.md require XAI_API_KEY — that's an incoherence. Also the documentation repeatedly references a main executable 'xai-gen', but that file is not present in the provided file manifest (only test.sh and docs are included). Missing the main executable contradicts the stated capability.
Instruction Scope
SKILL.md instructs installation steps (pip install requests, chmod +x xai-gen) and suggests persisting XAI_API_KEY into ~/.bashrc via echo (which would write credentials into a shell profile). Those instructions are within scope for a CLI tool, but they also assume/require writing secrets to disk and running a missing executable. The docs and test.sh instruct the agent/user to run ./xai-gen and to output MEDIA: paths — reasonable for OpenClaw integration — but because the executable is absent, the runtime instructions cannot be followed as-is.
Install Mechanism
There is no formal install spec (instruction-only), which is low-risk normally. The SKILL.md asks to pip install requests and chmod an executable; that's typical. The concern is practical: the package claims a main executable (xai-gen) but that file is not included in the provided file list, so the installation instructions are incomplete and will fail or require fetching code from an external source (not provided).
Credentials
Requesting XAI_API_KEY is proportionate for a tool that calls xAI's API (skill.json marks it required). But the registry metadata at the top contradicts that (it lists no required env vars), indicating a mismatch between declared requirements and actual needs. SKILL.md also encourages writing the API key into ~/.bashrc, which is convenient but exposes persistent credentials on disk if users follow it; advise safer storage.
Persistence & Privilege
The skill does not request always:true, does not claim elevated privileges, and does not declare system-wide config changes beyond instructing the user to optionally add an environment variable to their shell profile. Autonomous invocation is allowed (platform default) but there's no evidence this skill requests persistent system privileges or modifies other skills.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install xai-image-gen - After installation, invoke the skill by name or use
/xai-image-gen - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release
Metadata
Frequently Asked Questions
What is xAI Image Generator?
Generate images from text prompts using xAI's Grok API with options for format, batch size, and automatic media attachment in OpenClaw. It is an AI Agent Skill for Claude Code / OpenClaw, with 1145 downloads so far.
How do I install xAI Image Generator?
Run "/install xai-image-gen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is xAI Image Generator free?
Yes, xAI Image Generator is completely free (open-source). You can download, install and use it at no cost.
Which platforms does xAI Image Generator support?
xAI Image Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created xAI Image Generator?
It is built and maintained by mexicanamerican (@mexicanamerican); the current version is v1.0.0.
More Skills