← 返回 Skills 市场
wanxing0724

使用火山引擎豆包模型生成图片。 通过火山引擎豆包图片生成 API 创建图片。支持自定义提示词、尺寸、模型等参数。 ## 环境变量 - VOLCENGINE_IMAGE_API_KEY - 豆包 API Key(必填) ## 使用方式 生图:一只可爱的小猫 ## 支持的尺寸 1024x1024, 1280x720, 720x1280, 1024x768, 768x1024

作者 wanxing0724 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
703
总下载
0
收藏
7
当前安装
2
版本数
在 OpenClaw 中安装
/install doubao-image
功能描述
使用火山引擎豆包模型生成图片。通过火山引擎豆包图片生成 API 创建图片。支持自定义提示词、尺寸、模型等参数。使用方式:生图:一只可爱的小猫。
使用说明 (SKILL.md)

doubao-image - 豆包图片生成

使用火山引擎豆包模型生成图片。

简介

通过火山引擎豆包图片生成 API 创建图片。支持自定义提示词、尺寸、模型等参数。

环境变量

  • VOLCENGINE_IMAGE_API_KEY - 豆包 API Key(必填)

获取方式

  1. 登录火山引擎控制台 https://console.volces.com/
  2. 进入「应用与插件」或「API Key 管理」
  3. 创建或复制 API Key

使用方式

生图:一只可爱的小猫

可选参数

参数 说明 默认值
尺寸 图片尺寸 1024x1024
模型 使用的模型 doubao-seedream-4-0-250828
数量 生成数量 1

支持的尺寸

  • 1024x1024 (默认)
  • 1280x720
  • 720x1280
  • 1024x768
  • 768x1024

输出

图片自动保存到 downloads/images/ 目录。

重要说明

  • 每个用户需要自己的 API Key:使用时从环境变量 VOLCENGINE_IMAGE_API_KEY 读取
  • 环境变量需要在系统或终端中预先配置

错误处理

  • 如果环境变量未设置,会提示用户设置
  • 如果 API 返回错误,会显示具体错误信息
安全使用建议
The code itself matches the stated purpose (calling Volcengine's Doubao image API) and only needs your VOLCENGINE_IMAGE_API_KEY. Before installing, note three issues: (1) the package metadata incorrectly says no env var is required while the script requires VOLCENGINE_IMAGE_API_KEY — ensure you are comfortable providing that key and that the skill metadata is corrected; (2) the script writes images to a hardcoded Windows path (C:/Users/zcf/...), including a specific username — change this to a safe, configurable output directory (or confirm it will work on your system) to avoid unexpected file writes or failures; (3) there's a minor bug in the Authorization header format (uses 'Bearer; <key>') which may break requests — you may want to inspect or fix the header to 'Bearer <key>'. Recommended actions: run the script with a non-production or limited API key first, review and update the save path to a directory you control, and confirm the metadata is updated so required credentials are declared. These inconsistencies look like sloppy configuration rather than malicious intent, but fix them before trusting it with production credentials.
功能分析
Type: OpenClaw Skill Name: doubao-image Version: 1.0.1 The skill is a functional tool for generating images using the Volcengine (Doubao) API. It correctly manages sensitive information by retrieving the API key from an environment variable and communicates with the legitimate endpoint (ark.cn-beijing.volces.com). While scripts/generate.py contains a hardcoded absolute path (C:/Users/zcf/...) which is likely a developer oversight and may cause execution issues on other systems, there is no evidence of malicious intent, data exfiltration, or unauthorized command execution.
能力评估
Purpose & Capability
The skill name, SKILL.md, and scripts/generate.py all target Volcengine (豆包) image generation and require an API key — that is coherent. However, the registry metadata/requirements section claims no required env vars while SKILL.md and the script require VOLCENGINE_IMAGE_API_KEY; the package also does not declare a primary credential even though one is used. This mismatch between declared requirements and actual code is an inconsistency.
Instruction Scope
SKILL.md and scripts/generate.py limit behavior to calling the Doubao image generation API, handling responses, and saving images locally. The instructions do not attempt to read unrelated system files or other environment variables. Error handling is local and reports API responses to the user.
Install Mechanism
This is an instruction-plus-script skill with no install spec; nothing is downloaded or installed at runtime by the skill bundle itself. That keeps install risk low.
Credentials
The script requires a single API key (VOLCENGINE_IMAGE_API_KEY), which is appropriate for the stated purpose. However, the skill metadata incorrectly lists no required env vars/primary credential—this inconsistency could mislead users about what credentials are needed. No other credentials are requested.
Persistence & Privilege
The skill is not always-enabled and is user-invocable (normal). It does write files locally into a hardcoded path (C:/Users/zcf/.openclaw/workspace/downloads/images) which is user-specific and potentially inappropriate on other systems; this is a scope/design issue rather than an elevated privilege request.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install doubao-image
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /doubao-image 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Added .clawhub/origin.json file for project configuration or metadata. - No changes to core functionality or usage.
v1.0.0
doubao-image 1.0.0 - Initial release enabling image generation via Volcano Engine Doubao API. - Supports customizable prompts, image size, model, and quantity. - Requires user-provided API Key via VOLCENGINE_IMAGE_API_KEY environment variable. - Generated images are saved to downloads/images/. - Comprehensive error handling for missing environment variables and API errors.
元数据
Slug doubao-image
版本 1.0.1
许可证 MIT-0
累计安装 7
当前安装数 7
历史版本数 2
常见问题

使用火山引擎豆包模型生成图片。 通过火山引擎豆包图片生成 API 创建图片。支持自定义提示词、尺寸、模型等参数。 ## 环境变量 - VOLCENGINE_IMAGE_API_KEY - 豆包 API Key(必填) ## 使用方式 生图:一只可爱的小猫 ## 支持的尺寸 1024x1024, 1280x720, 720x1280, 1024x768, 768x1024 是什么?

使用火山引擎豆包模型生成图片。通过火山引擎豆包图片生成 API 创建图片。支持自定义提示词、尺寸、模型等参数。使用方式:生图:一只可爱的小猫。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 703 次。

如何安装 使用火山引擎豆包模型生成图片。 通过火山引擎豆包图片生成 API 创建图片。支持自定义提示词、尺寸、模型等参数。 ## 环境变量 - VOLCENGINE_IMAGE_API_KEY - 豆包 API Key(必填) ## 使用方式 生图:一只可爱的小猫 ## 支持的尺寸 1024x1024, 1280x720, 720x1280, 1024x768, 768x1024?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install doubao-image」即可一键安装,无需额外配置。

使用火山引擎豆包模型生成图片。 通过火山引擎豆包图片生成 API 创建图片。支持自定义提示词、尺寸、模型等参数。 ## 环境变量 - VOLCENGINE_IMAGE_API_KEY - 豆包 API Key(必填) ## 使用方式 生图:一只可爱的小猫 ## 支持的尺寸 1024x1024, 1280x720, 720x1280, 1024x768, 768x1024 是免费的吗?

是的,使用火山引擎豆包模型生成图片。 通过火山引擎豆包图片生成 API 创建图片。支持自定义提示词、尺寸、模型等参数。 ## 环境变量 - VOLCENGINE_IMAGE_API_KEY - 豆包 API Key(必填) ## 使用方式 生图:一只可爱的小猫 ## 支持的尺寸 1024x1024, 1280x720, 720x1280, 1024x768, 768x1024 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

使用火山引擎豆包模型生成图片。 通过火山引擎豆包图片生成 API 创建图片。支持自定义提示词、尺寸、模型等参数。 ## 环境变量 - VOLCENGINE_IMAGE_API_KEY - 豆包 API Key(必填) ## 使用方式 生图:一只可爱的小猫 ## 支持的尺寸 1024x1024, 1280x720, 720x1280, 1024x768, 768x1024 支持哪些平台?

使用火山引擎豆包模型生成图片。 通过火山引擎豆包图片生成 API 创建图片。支持自定义提示词、尺寸、模型等参数。 ## 环境变量 - VOLCENGINE_IMAGE_API_KEY - 豆包 API Key(必填) ## 使用方式 生图:一只可爱的小猫 ## 支持的尺寸 1024x1024, 1280x720, 720x1280, 1024x768, 768x1024 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 使用火山引擎豆包模型生成图片。 通过火山引擎豆包图片生成 API 创建图片。支持自定义提示词、尺寸、模型等参数。 ## 环境变量 - VOLCENGINE_IMAGE_API_KEY - 豆包 API Key(必填) ## 使用方式 生图:一只可爱的小猫 ## 支持的尺寸 1024x1024, 1280x720, 720x1280, 1024x768, 768x1024?

由 wanxing0724(@wanxing0724)开发并维护,当前版本 v1.0.1。

💬 留言讨论