← 返回
AI智能 Key 中文

Jimeng Image Skill Openclaw

Generate images from text prompts using the Jimeng API with customizable size, scale, seed, and output path via Python scripts.
使用即梦API通过Python脚本实现文生图,支持自定义尺寸、比例、种子值和输出路径。
gkhcsc
AI智能 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 702
下载
💾 221
安装
1
版本
#latest

概述

Jimeng-Image

When to use this skill

Use this skill when user express "You need generate a image".

How to use this skill

  1. 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.
  1. You need to execute scripts/main.py
  2. 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)
  3. Finally, you need send the new image to user by same channel,such as qqbot etc. from ~/.openclaw/workspace/images

Requirement

  • argparse
  • datetime
  • volcengine-python-sdk
  • base64
  • os

If not exits ,you need pip it.

Tips:

  • the baseDir is your workspace /skills/Jimeng-Image
  • If the user does not specify the output path,the output dir is ~/.openclaw/workspace/images

Command example

user:

​ i need a image by prompt:"A girl in an anime style"

You:

​ Run from the OpenClaw workspace:

 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:

python3 {baseDir}/scripts/main.py --prompt "A girl in an anime style" --width "512" --height "512"

The Script command line parameter

参数类型默认值说明
:--------------:------:-------------------------------:------------------------------------------
--promptstr'none'Path of the prompt file
--output_pathstr'~/.openclaw/workspace/images'The saving path of the output file
--use_pre_llmboolFalseWhether to use a pre-trained language model
--seedint-1Random seed ( -1 indicates random )
--scalefloat1.0The scaling ratio of the output image
--widthint1920The width (in pixels) of the output image
--heightint1080The height (in pixels) of the output image

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-20 06:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 837 📥 213,276
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 714 📥 243,982
ai-intelligence

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 418 📥 115,281