Use this skill when user express "You need generate a image".
You need putAccess Key and Secret Key via either environment variable: Jimeng_Secret_Key and Jimeng_Access_Key=..., or ~/.openclaw/.env line: Jimeng_Secret_Key=... and Jimeng_Access_Key=... on your environment variable.
You need to execute scripts/main.py
When the response is arrive, the script will save the png file on ~/.openclaw/workspace/images. (The script will create images dir if the images dir is not exist)
Finally, you need send the new image to user by same channel,such as qqbot etc. from ~/.openclaw/workspace/images
If not exits ,you need pip it.
user:
i need a image by prompt:"A girl in an anime style"
You:
Run from the OpenClaw workspace:
sh
python3 {baseDir}/scripts/main.py --prompt "A girl in an anime style"
user:
i need a image by prompt:"A girl in an anime style and width is 512 and height is 512"
You:
Run from the OpenClaw workspace:
text
python3 {baseDir}/scripts/main.py --prompt "A girl in an anime style" --width "512" --height "512"
参数类型默认值说明--prompt``str``'none'Path of the prompt file--output_path``str``'~/.openclaw/workspace/images'The saving path of the output file--use_pre_llm``bool``FalseWhether to use a pre-trained language model--seed``int``-1Random seed ( -1 indicates random )--scale``float``1.0The scaling ratio of the output image--width``int``1920The width (in pixels) of the output image--height``int``1080The height (in pixels) of the output image