| name | peinture |
| description | Generate AI images via multiple providers (Hugging Face, Gitee AI). Free quota available on HF. |
| homepage | https://github.com/992939504/peinture |
| metadata | {"openclaw":{"emoji":"🎨","requires":{"bins":["python3"]}}} |
Peinture Image Generator
Generate AI images via multiple providers. Hugging Face offers free public quota.
Providers
| Provider | Token Required | Models |
|---|
huggingface (default) | Optional (free quota) | z-image-turbo, qwen-image-fast, ovis-image |
gitee | Required (GITEE_TOKEN) | Qwen-Image, Z-Image-Turbo |
Run
Note: Image generation can take longer than common exec timeouts (30s). Set a higher timeout when invoking via exec tool (e.g., exec timeout=120).
python3 {baseDir}/scripts/gen.py --prompt "a beautiful sunset"
python3 {baseDir}/scripts/gen.py --provider gitee --model Qwen-Image --prompt "a cute cat"
Options
--provider huggingface
--provider gitee
--model z-image-turbo
--model qwen-image-fast
--model ovis-image
--model Qwen-Image
--model Z-Image-Turbo
--ratio 1:1
--ratio 16:9
--ratio 9:16
--ratio 4:3
--ratio 3:4
--hd
--seed 12345
--steps 12
--out-dir ./output
--json
Environment Variables
| Variable | Provider | Description |
|---|
HUGGING_FACE_TOKEN or HF_TOKEN | huggingface | Optional, for higher rate limits |
GITEE_TOKEN | gitee | Required |
Getting Tokens
Output
- Returns image URL (HF) or base64 data URL (Gitee)
- JSON output includes: prompt, provider, model, url, seed, dimensions
Notes
- HF images hosted on Hugging Face may expire after 24 hours
- Gitee returns base64 images (embedded in response)
- Download images you want to keep