🧪 Skills
pixelhub-api-tools
Use for Pixelhub API direct calls when users need image generation/editing, video generation/post-processing, or audio/music generation.
v1.0.7
Description
name: pixelhub_api_tools description: Use for Pixelhub API direct calls when users need image generation/editing, video generation/post-processing, or audio/music generation.
First-Time Setup Required
This is a generic public skill package. It does not include any API key by default.
- API key status:
PENDING_USER_API_KEY - Registration page:
https://www.pixellelabs.com/ - API key page:
https://www.pixellelabs.com/user/api-keys - Required runner:
pixelhub_api_runner.py(same folder as thisSKILL.md) - Recommended Python version:
3.11+
When this skill is used for the first time, the AI should follow this setup flow:
- Tell the user to register or log in at
https://www.pixellelabs.com/. - Tell the user to open Personal Center -> API Keys.
- Tell the user to copy their own Pixelle API key and send it in chat.
- After the user sends the key, replace
DEFAULT_API_KEYinpixelhub_api_runner.py. - After the key is written, change this file's status line from
PENDING_USER_API_KEYtoAPI_KEY_ADDED. - After that, do not ask for the API key again unless the user wants to replace it.
Do not invent an API key. Do not switch to curl, manual HTTP requests, or any non-Python fallback.
After Setup
Once the user's API key has been added, use the Python runner directly.
Runner order:
- Optional discovery:
python -X utf8 "pixelhub_api_runner.py" toolspython -X utf8 "pixelhub_api_runner.py" tools --tool "grok_generate_image"python -X utf8 "pixelhub_api_runner.py" tools --tool "grok_generate_image" --tool "grok_video_i2v"
- Submit and wait:
python -X utf8 "pixelhub_api_runner.py" execute --tool "<tool_name>" --params '{...}'
- If needed, custom flow:
runto submit and gettask_idpoll --task-id <task_id>for custom timeout or interval
Prefer execute for one-shot tasks when using runner.
Environment Requirement
Before using this skill, make sure Python is available locally.
- Check with:
python --version - If Python is not available, install Python
3.11+ - After installation, rerun the helper script commands below
Command Cheatsheet
# List tool names grouped by category
python -X utf8 "pixelhub_api_runner.py" tools
# Show one tool's detailed params
python -X utf8 "pixelhub_api_runner.py" tools --tool "grok_generate_image"
# Show multiple tools' detailed params
python -X utf8 "pixelhub_api_runner.py" tools --tool "grok_generate_image" --tool "grok_video_i2v"
# Execute and wait
python -X utf8 "pixelhub_api_runner.py" execute --tool "z_image_turbo_mcp" --params '{"text":"cinematic portrait","width":1024,"height":1024}'
Execution Rules
- Different tools have different parameter schemas.
toolswithout--toolreturns grouped tool names by category only.tools --tool "..."returns detailed params for the specified tool.- Repeat
--toolto inspect multiple tools in one command. - Do not reuse one tool's params for another tool.
- If a call fails with param error, run
toolsand fix params. - For media input params, pass public URL values.
- Do not fabricate result URLs; trust task result only.
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!