← 返回 Skills 市场
yuanweiphone

Spark Image

作者 yuanweiphone · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
53
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install spark-image
功能描述
提供图片生成能力:输入文本描述生成图片,可附加风格提示词。支持 1-4 张图片生成,按图片尺寸对应点数计费。Authorization 使用本系统发放的 Bearer Token。
使用说明 (SKILL.md)

Spark Image Skill 图片生成技能

文本生成图片服务,基于火山引擎图片生成 API。Base URL: https://image.open-idea.net/api/v1Authorization: Bearer \x3CKey>

Install

openclaw skills install spark-image

Setup

Privacy

图片生成时,提示词文本将发送至第三方服务 image.open-idea.net(火山引擎 API)。请勿上传敏感或保密内容。

Output

成功响应后对用户展示:业务正文(图片或生成结果)+ 计费行。

图片以 \x3Cimg src="data:image/png;base64,..."> 渲染给用户,或提供下载链接。若返回多张图,则逐张渲染。贴长 base64 原文。

计费行:

本次扣费: {charged} CNY, 余额: {balance} CNY

HTTP 头字段:X-Mengguyu-Billing-Charged · X-Mengguyu-Billing-Balance · X-Mengguyu-Billing-Currency

禁止对用户输出:完整 JSON、路由说明、模型名、token、Key 等内部信息。

Usage

生成图片

POST /image
Body: { "prompt": "描述文字", "width": 2048, "height": 2048, "style": "油画风格,厚涂笔触", "image_count": 1 }

响应:data.images[](1-4 张 base64 PNG)+ data.points_used

说明:

  • 当前公开接口仅支持 2K 及以上推荐尺寸组合。
  • image_count 支持 1-4
  • 多图请求会逐张生成并聚合返回,通常比单图耗时更长。

可用尺寸与点数

尺寸 点数
2048x2048 56
2304x1728 54
1728x2304 54
2848x1600 61
1600x2848 61
2496x1664 56
1664x2496 56
3136x1344 57

详见 IMAGE-GENERATION.mdHTTP-REQUESTS.md

references/

文件 用途
HTTP-REQUESTS.md 全接口 curl、计费头
IMAGE-GENERATION.md 图片生成详细说明
BEHAVIOR-RULES.md 行为规范、重试、确认
API-KEY.md Key 配置
安全使用建议
Install only if you are comfortable sending image prompts to image.open-idea.net and paying for generated images. Keep IMAGE_GATEWAY_API_KEY out of chat logs, screenshots, shell history, and version control, and confirm the estimated cost before generation.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The artifact consistently describes text-to-image generation through image.open-idea.net, including prompt submission, supported image counts and sizes, billing, and returned image handling.
Instruction Scope
Triggers include broad image and style phrases, but the runtime instructions require user confirmation and estimated cost disclosure before any billed API request.
Install Mechanism
Installation is a normal OpenClaw skill install and the artifact contains only markdown documentation, with no executable scripts or package dependencies.
Credentials
The required IMAGE_GATEWAY_API_KEY environment variable is proportionate for a third-party image API that uses bearer-token authentication.
Persistence & Privilege
No persistence, background execution, local indexing, destructive behavior, or privilege escalation is shown; the credential guidance is basic and users should store the key carefully.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install spark-image
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /spark-image 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial ClawHub publish.
元数据
Slug spark-image
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Spark Image 是什么?

提供图片生成能力:输入文本描述生成图片,可附加风格提示词。支持 1-4 张图片生成,按图片尺寸对应点数计费。Authorization 使用本系统发放的 Bearer Token。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 53 次。

如何安装 Spark Image?

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

Spark Image 是免费的吗?

是的,Spark Image 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Spark Image 支持哪些平台?

Spark Image 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Spark Image?

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

💬 留言讨论