ComfyUI-YCYY-API
Freely call APIs in ComfyUI
Nodes (4)
Run Google's Gemini image model without downloading anything
Transcribe audio inside ComfyUI without installing Whisper
Gemini TTS in a node — direct your voice in plain English
Two voices at once — multi-speaker TTS in a single generation
ComfyUI-YCYY-API
Freely call APIs in ComfyUI
Instructions for use
- In ComfyUI, go to your custom_nodes folder, open a terminal and run the following command:
git clone https://github.com/ycyy/ComfyUI-YCYY-API.git
-
Copy the
config.json.examplefile and rename it toconfig.json. Then modify the correspondingbase_urlandapi_key. -
Start
ComfyUIand find theYCYY/APInode directory to start your experience.
Configuration file description
gemini-image
base_url supports both official and third-party compatible interfaces, which can be configured according to actual conditions. The path ends with v1beta/models. models supports gemini-2.5-flash-image and gemini-3-pro-image-preview models. If using a third-party interface, modify the model name according to actual conditions.
ollama-vlm and ollama-llm
base_url supports both local and ollama cloud service interfaces, which can be configured according to actual conditions. The interface is in OpenAI compatible format. The models in the configuration file are those supported by the official cloud service and can be modified as needed. If calling a local interface without configuring api_key, this option can be left blank.
modelscope-image
The ModelScope image generation interface only requires you to fill in the corresponding api_key. Other parameters remain unchanged.
openai-text
openai-text is an array of OpenAI or compatible API configurations. Each item contains api-name, base_url, api_key, timeout, api_protocol, and models. Supported protocols are openai-completions and openai-responses.
base_url may be a root URL such as https://api.openai.com/v1; the node appends /chat/completions or /responses according to the protocol. It may also be a complete matching endpoint. A complete endpoint that does not match the selected protocol is rejected. When connected, Config Options always overrides base_url, api_key, timeout, and api_protocol, including its default protocol value.
The node supports text, image, and video inputs. Video is sent directly using the current protocol's content format; if the target API or protocol does not support video, its error is surfaced as an explicit video-unsupported message. File input is not implemented in this version. The OpenAI Text Advanced Options node accepts a JSON object for protocol/API-specific parameters, for example {"temperature":0.7,"max_output_tokens":4096}. JSON options cannot override request fields such as model, messages, input, instructions, stream, api_key, base_url, or timeout.
Advanced usage instructions
API nodes support Config Options and Proxy Options. Both can be used to override configuration file parameters by configuring parameters through the front-end node.