This is a Google Gemini Pro API integration node for ComfyUI, supporting text, image, video, and audio inputs.
这是一个用于 ComfyUI 的 Google Gemini Pro API 全功能集合节点支持文本、图像、视频和音频输入。
支持最新的图像生成和编辑能力\剧本生成
cd custom_nodes
git clone https://github.com/penposs/ComfyUI_Gemini_Pro.git
# 先卸载现有的可能冲突的库
pip uninstall -y google-api-python-client google-generativeai
# 安装最新版本
pip install google-generativeai --upgrade
获取 Google Gemini Pro API Key:
https://aistudio.google.com/
在节点中配置:
This is a comprehensive Google Gemini Pro API node collection for ComfyUI that supports text, image, video, and audio inputs.
Supports the latest image generation and editing capabilities.
cd custom_nodes
git clone https://github.com/penposs/ComfyUI_Gemini_Pro.git
pip install google-generativeai pillow numpy torch
Get a Google Gemini Pro API Key:
Configure in the node:
MIT License
Copyright (c) 2024 Your Name
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
感谢 / Thanks to: