一个 ComfyUI 扩展,通过 API 集成实现图像生成及相关功能。
- 集成 OpenRouter API 进行图像生成
- 支持多参考图片输入
- 种子控制(随机、固定、递增、递减)
- 灵活的 API 密钥管理
- 支持常见图像格式(JPEG、PNG)
-
将仓库克隆到你的 ComfyUI 的
custom_nodes目录git clone https://github.com/yourusername/comfyui-ayang.node.git
-
安装所需依赖
cd comfyui-ayang_node pip install -r requirements.txt -
重启 ComfyUI
- 在工作流中添加 "OpenRouterImageGenerator" 节点
- 配置 API 密钥和首选模型
- 提供输入图像和文本提示
- 根据需要调整种子设置
- 运行工作流生成新图像
- gradio
- Pillow
- openpyxl
- openai
- requests
本项目采用 Apache-2.0 license 许可证 - 详见 LICENSE 文件。
致谢:感谢 OpenRouter 提供的 API 服务,以及 ComfyUI 提供的优秀平台。
注意:本扩展需要有效的 OpenRouter API 密钥才能正常工作。
https://openrouter.ai/settings/keys (访问该链接可进入 OpenRouter 平台的 API 密钥设置页面,按照页面指引完成账号注册与 API 密钥创建) (Visit this link to access the API key settings page of the OpenRouter platform, and follow the on-page instructions to complete account registration and API key creation)

