apikey-image-gen
它能做什么
这项技能通过 Ekko Studio 制作或编辑图片,使用你在配置文件中设置的图片服务提供商。适合想在聊天中生成图片,又不想输入 API 密钥的人。
适用场景
- ✓当你想根据文字描述生成一张图片时。
- ✓当你想编辑或重绘已有的图片时。
- ✓当你已设置自定义图片服务提供商,并希望智能体使用它的时候。
技能链接
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/skills/apikey-image-gen/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请使用我配置好的图片服务提供商,帮我画一张咖啡店的简单标志草图。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会通过 Studio 的媒体接口发送你的请求。该接口会从你的配置文件中读取图片服务提供商并处理密钥,然后返回保存图片文件的路径。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Studio Image Generation
Use this skill when the user wants to generate an image or edit an existing image.
Always call Ekko Studio's media endpoint. Do not call an upstream image API directly, and do not ask the user for an API key. The server reads the selected/requested profile's config.yaml and uses a configured custom provider. By default it uses the provider named fun-codex, but callers may request another configured provider by sending provider, provider_name, or custom_provider.
This skill is separate from Hermes Agent's native image_generate tool. The
native tool reads image_gen from config.yaml; this Studio-managed endpoint
reads the auxiliary.image_generation and auxiliary.image_edit routes below.
Changing one does not change the other.
Do not use any built-in image generation tool as a fallback. If the Hermes Web UI endpoint returns 401, 403, connection failure, or any other error, stop and report the Hermes Web UI error to the user.
custom_providers:
- name: fun-codex
base_url: https://api.apikey.fan/v1
api_key: ...
model: gpt-5.5
api_mode: codex_responses
Example with another configured provider:
custom_providers:
- name: agnes
base_url: https://agnes.example/v1
api_key_env: AGNES_API_KEY
model: agnes-image-2.1-flash
auxiliary:
image_generation:
provider: agnes
model: gpt-image-2
timeout: 600
image_edit:
provider: agnes
model: gpt-5.4-mini
timeout: 600
image_generation supplies the route for text-to-image and multipart image
edits. image_edit supplies the route and primary model for image-to-image
through the Responses API. If the active route has no provider, the
server falls back to the other image route and then to fun-codex.
Endpoint:
POST <Hermes Web UI base URL>/api/studio/media/apikey-image-generate
Resolve the Hermes Web UI base URL in this order:
HERMES_WEB_UI_URLenvironment variable, if set.http://127.0.0.1:${PORT}, ifPORTis set.http://127.0.0.1:8648for the Web UI single-server default.
Common local ports:
- Development API backend:
http://127.0.0.1:8647. Use this withnpm run dev; do not target the Vite frontend port. - Web UI single-server default:
http://127.0.0.1:8648. - Desktop app default:
http://127.0.0.1:8748. - Custom port: set
HERMES_WEB_UI_URLto the full base URL, or setPORTto usehttp://127.0.0.1:${PORT}.
When Hermes Web UI is running from Docker Compose, the default external URL is http://127.0.0.1:6060.
Authentication:
Send the Hermes Web UI server bearer token. This token is accepted only by Hermes Web UI media generation endpoints for agent skills; it is not a general Web UI login token.
Resolve the token in this order:
AUTH_TOKENenvironment variable, if set.${HERMES_WEB_UI_HOME}/.token, ifHERMES_WEB_UI_HOMEis set.${HERMES_WEBUI_STATE_DIR}/.token, ifHERMES_WEBUI_STATE_DIRis set.~/.hermes-web-ui/.token.
Profile selection:
Use the current Hermes profile from the run instructions by sending X-Hermes-Profile.
If the run instructions include [Current Hermes profile: <name>], include:
-H "X-Hermes-Profile: <name>"
Replace <name> with the exact profile name from the run instructions. Never send a placeholder value such as <name> or <current-hermes-profile>.
If no current profile is provided, omit the header and let the server fall back to the current Hermes active profile.
Modes
Text To Image
Use when there is no input image.
{
"mode": "text",
"prompt": "A high quality product image of a matte black mechanical keyboard on a clean desk",
"size": "1024x1024",
"output_path": "/absolute/path/to/output.png"
}
The server calls POST /v1/images/generations against the configured
auxiliary.image_generation provider, then falls back to fun-codex.
If provider, provider_name, or custom_provider is present, the server calls the requested provider's base URL instead.
Image To Image
Use when the user provides an existing image and wants the model to modify or redraw it.
{
"mode": "image",
"prompt": "Use this reference composition and generate a refined technology brand poster",
"image_path": "/absolute/path/to/reference.png",
"size": "1024x1024",
"output_path": "/absolute/path/to/output.png"
}
The server calls POST /v1/responses against the configured
auxiliary.image_edit provid
常见问题
我需要粘贴 API 密钥吗?
不需要。服务器会从配置文件中读取密钥,智能体也不会向你索要。
它能改用内置的图片工具吗?
不能。如果 Studio 报错,智能体会报告该错误,而不会改用其他生成器。
我可以使用默认以外的服务提供商吗?
可以。你可以按名称请求使用另一个已配置的服务提供商。
详情
作者的原始描述
Generate or edit images through Ekko Studio using the selected/requested profile's configured Studio image provider from config.yaml.
repo: EKKOLearnAI/ekko-studio
热度
- GitHub 星标
- 12k
- 排名
- #11582
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
1password
12k帮你的智能体使用 1Password CLI 为命令和配置文件获取机密信息,同时不在聊天、日志或已保存的文件中显示这些信息。
apple-notes
12k帮你的智能体在 Mac 上使用 memo 命令行工具创建、搜索、阅读、编辑、移动或删除 Apple 备忘录。
apple-reminders
12k帮你的智能体在 Mac 上使用 remindctl 工具列出、创建、编辑、完成或删除 Apple 提醒事项及提醒列表。
document-to-action-items
12k帮你的智能体把文档、会议记录或一组笔记,整理成一张清晰的任务、负责人、截止日期和决定的表格。