← Back to Skills Marketplace
wanxing0724

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

by wanxing0724 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
703
Downloads
0
Stars
7
Active Installs
2
Versions
Install in OpenClaw
/install doubao-image
Description
使用火山引擎豆包模型生成图片。通过火山引擎豆包图片生成 API 创建图片。支持自定义提示词、尺寸、模型等参数。使用方式:生图:一只可爱的小猫。
README (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 返回错误,会显示具体错误信息
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install doubao-image
  3. After installation, invoke the skill by name or use /doubao-image
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug doubao-image
Version 1.0.1
License MIT-0
All-time Installs 7
Active Installs 7
Total Versions 2
Frequently Asked Questions

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

使用火山引擎豆包模型生成图片。通过火山引擎豆包图片生成 API 创建图片。支持自定义提示词、尺寸、模型等参数。使用方式:生图:一只可爱的小猫。 It is an AI Agent Skill for Claude Code / OpenClaw, with 703 downloads so far.

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

Run "/install doubao-image" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

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

Yes, 使用火山引擎豆包模型生成图片。 通过火山引擎豆包图片生成 API 创建图片。支持自定义提示词、尺寸、模型等参数。 ## 环境变量 - VOLCENGINE_IMAGE_API_KEY - 豆包 API Key(必填) ## 使用方式 生图:一只可爱的小猫 ## 支持的尺寸 1024x1024, 1280x720, 720x1280, 1024x768, 768x1024 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

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

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

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

It is built and maintained by wanxing0724 (@wanxing0724); the current version is v1.0.1.

💬 Comments