Install
openclaw skills install zhipu-cogview-imageGenerate images using Zhipu AI's CogView model
openclaw skills install zhipu-cogview-imageGenerate images using Zhipu AI's CogView model.
This skill requires ZHIPU_API_KEY environment variable to be set before use.
export ZHIPU_API_KEY="your_api_key"
Get your API key from: https://www.bigmodel.cn/usercenter/proj-mgmt/apikeys
export ZHIPU_API_KEY="your_key"
curl -s -X POST "https://open.bigmodel.cn/api/paas/v4/images/generations" \
-H "Authorization: Bearer $ZHIPU_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "cogview-4", "prompt": "your description"}'
export ZHIPU_API_KEY="your_key"
./generate.sh "A beautiful Chinese girl in white dress"
ps aux| Feature | Implementation |
|---|---|
| JSON escaping | jq prevents injection |
| Input validation | Prompt length ≤1000 chars |
| TLS | Force TLS 1.2+ |
| Timeout | 60 second curl timeout |
| Error handling | Generic messages only |
Uses CogView-4 model from Zhipu AI.
Official: https://open.bigmodel.cn/api/paas/v4/images/generations