OpenClaw skills for AI image and video generation via Pixmind API.
- Register at pixmind.io
- Open the API Platform key dashboard and click + Create API Key
clawhub install pixmind-image
clawhub install pixmind-video
clawhub install pixmind-image-compressSet the API key in your environment (OpenClaw also injects it from the skill configuration):
export PIXMIND_API_KEY=your_api_key_hereThat's it. The skill will auto-load the key on use.
All skills use the production API Platform gateway with Bearer authentication:
| Purpose | Endpoint |
|---|---|
| Models | GET /api-platform/v1/models |
| Pricing | GET /api-platform/v1/pricing |
| Image/video generation | POST /api-platform/v1/generations |
| Task status | GET /api-platform/v1/tasks/{taskId} |
| Image compression | POST /api-platform/v1/image/compress |
Base URL: https://aihub-admin.aimix.pro. Send Authorization: Bearer $PIXMIND_API_KEY on every request.
Text-to-image and image-to-image generation.
| Parameter | Default | Description |
|---|---|---|
--prompt |
required | Image description |
--model |
seedream-4.0 |
Model name |
--aspect-ratio |
1:1 |
1:1, 16:9, 9:16, 4:3, 3:4 |
--count |
1 |
Number of images (1-4) |
--enhance |
off | AI-enhance the prompt |
--type |
text2img |
text2img or img2img |
--image |
— | Reference image URL (for img2img) |
Available models: seedream-4.0, imagen-4-standard, imagen-4-ultra, imagen-4-fast, gemini-2.5-flash, gemini-3-pro-image, seedream-3.0-t2i, seededit-3.0-i2i
# Text to image
node scripts/image-generate.js --prompt "a cute cat"
# High quality with specific model
node scripts/image-generate.js --prompt "oil painting of sunset" --model imagen-4-ultra --aspect-ratio 16:9 --count 2
# Image to image
node scripts/image-generate.js --prompt "make it snowy" --type img2img --image https://example.com/photo.jpgText-to-video and image-to-video generation.
| Parameter | Default | Description |
|---|---|---|
--prompt |
required | Video description |
--model |
— | Model name |
--duration |
— | Duration in seconds |
--aspect-ratio |
— | 16:9, 9:16, 1:1 |
--resolution |
— | 1080p, 720p |
--type |
text2video |
text2video or img2video |
--image |
— | Reference image URL (for img2video) |
# Text to video
node scripts/video-generate.js --prompt "ocean waves crashing on rocks" --duration 5 --aspect-ratio 16:9
# Image to video
node scripts/video-generate.js --prompt "camera slowly zooms in" --type img2video --image https://example.com/photo.jpgBoth skills return a taskId. Poll until complete:
node scripts/task-status.js --task-id 19399 --pollOutput on completion:
- Image:
data.images— array of image URLs - Video:
data.videoUrl— video URL,data.coverUrl— cover image URL
Compress, resize, and convert local files or remote images:
node skills/pixmind-image-compress/compress.js --file photo.png --preset webMIT
