apikey-image-gen
Skill này làm gì
Skill này tạo hoặc chỉnh sửa ảnh qua Ekko Studio, dùng nhà cung cấp hình ảnh được thiết lập trong file cấu hình hồ sơ. Dành cho người muốn có ảnh được tạo mà không nhập khóa API trong chat.
Khi nào nên dùng
- ✓Khi bạn muốn tạo một ảnh từ mô tả bằng văn bản.
- ✓Khi bạn muốn chỉnh sửa hoặc vẽ lại một ảnh có sẵn.
- ✓Khi bạn đã thiết lập một nhà cung cấp hình ảnh tùy chỉnh và muốn agent dùng nó.
Liên kết skill
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/skills/apikey-image-gen/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một bản phác thảo logo đơn giản cho quán cà phê của tôi bằng nhà cung cấp hình ảnh đã cấu hình.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent gửi yêu cầu qua endpoint media của Studio, endpoint này đọc nhà cung cấp hình ảnh từ cài đặt hồ sơ và xử lý khóa. Nó trả về đường dẫn các file ảnh đã lưu.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Tôi có cần dán khóa API không?
Không. Máy chủ đọc khóa từ cấu hình hồ sơ, và agent sẽ không hỏi bạn khóa nào.
Nó có thể dùng công cụ ảnh tích hợp sẵn khi lỗi không?
Không. Nếu Studio báo lỗi, agent báo lỗi đó thay vì dùng một trình tạo khác.
Tôi có thể dùng nhà cung cấp khác mặc định không?
Có. Một nhà cung cấp đã cấu hình khác có thể được yêu cầu theo tên.
Chi tiết
Mô tả gốc của tác giả
Generate or edit images through Ekko Studio using the selected/requested profile's configured Studio image provider from config.yaml.
repo: EKKOLearnAI/ekko-studio
Độ phổ biến
- Sao GitHub
- 12k
- Vị trí xếp hạng
- #11582
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
1password
12kGiúp agent của bạn dùng 1Password CLI để lấy bí mật cho lệnh và file cấu hình mà không hiển thị chúng trong chat, nhật ký hay file đã lưu.
apple-notes
12kGiúp agent của bạn tạo, tìm, đọc, sửa, di chuyển hoặc xóa Apple Notes trên Mac, bằng công cụ dòng lệnh memo.
apple-reminders
12kGiúp agent của bạn liệt kê, tạo, sửa, đánh dấu hoàn thành hoặc xóa Apple Reminders và danh sách nhắc việc trên Mac, bằng công cụ remindctl.
document-to-action-items
12kGiúp agent của bạn biến tài liệu, bản ghi cuộc họp hoặc các ghi chú thành bảng việc cần làm rõ ràng gồm người phụ trách, thời hạn và quyết định.
Skill tương tự
gifgrep
394kCho phép agent của bạn tìm thư viện GIF, xem trước kết quả, tải một GIF, và lấy một khung hình tĩnh hoặc bảng ghép nhiều khung hình.
meme-maker
394kCho phép agent của bạn chọn một mẫu meme, thêm chú thích của riêng bạn và tạo meme dưới dạng ảnh SVG hoặc PNG.
ios-icon-gen
280kGiúp agent tạo biểu tượng cho ứng dụng iOS. Dùng biểu tượng của Apple hoặc từ các nguồn khác để tạo đúng định dạng tệp.