A comprehensive collection of AI-powered nodes for ComfyUI, enabling seamless integration of large language models, image generation, data analysis, financial data, visualization, and cloud storage within your workflows.
- AI Agents: Support for multiple LLM providers (OpenAI‑compatible, DeepSeek, Qwen, ModelScope, OpenRouter) with tool‑calling capabilities.
- Text‑to‑Image: Generate images from prompts using ModelScope and Hugging Face Inference Providers.
- Image‑to‑Image: Edit or transform images with OpenRouter (Gemini/ GPT‑5‑image), ModelScope Qwen, Seedream, and Hugging Face models.
- Data Processing: Load CSV data, pick dates, read/write text files.
- Financial Data: Fetch stock history, China CPI/PPI via AKShare, and Yahoo Finance data.
- Visualization: Create charts (Matplotlib, Plotly, Bokeh) and Mermaid diagrams through AI‑driven code generation.
- Display & Preview: Preview HTML, code, and Markdown directly in ComfyUI.
- Cloud Storage: Upload images to Cloudflare R2 with public URL generation.
- Utilities: JSON parsing, Markdown‑to‑HTML conversion, prompt templating, and more.
- Python 3.11 or later (recommended; see
.python-version) - ComfyUI installed and running
-
Clone the repository into your ComfyUI
custom_nodesfolder:cd /path/to/ComfyUI/custom_nodes git clone https://github.com/twn39/ComfyUI-AI-Toolkits.git -
Install Python dependencies (recommended to use a virtual environment):
cd ComfyUI-AI-Toolkits pip install -r requirements.txt -
Restart ComfyUI. The nodes will appear under the
AIToolkitscategory.
| Node | Description |
|---|---|
OpenAILikeModel |
Generic OpenAI‑compatible model client |
DeepSeekModel |
DeepSeek chat/reasoner models |
QwenModel |
Qwen models via DashScope |
ModelScopeModel |
ModelScope hosted models |
OpenRouterModel |
OpenRouter models (Gemini, GPT‑5, Claude, etc.) |
SimpleAgent |
Run an agent with a prompt and optional image/tools |
ChatAgent |
Create a conversational agent with memory |
AgentChain |
Chain multiple agent steps |
AgentMathTools |
Provides math expression evaluation tool |
AgentJinaReaderTools |
Jina AI reader tool for web/content extraction |
AgentMergeTools |
Merge multiple agent tools into a single list |
| Node | Description |
|---|---|
OpenAiNative |
Generic OpenAI client |
OpenAiModelScope |
Client for ModelScope API |
OpenAiOpenRouter |
Client for OpenRouter API |
OpenAiHuggingFace |
Client for Hugging Face Inference Providers |
OpenAiDeepSeek |
Client for DeepSeek API |
OpenAiDashScope |
Client for Alibaba DashScope (Qwen) |
OpenAiJinaAI |
Client for Jina AI API |
OpenAiNativeChat |
Chat completion with vision support |
| Node | Description |
|---|---|
ModelScopeTextToImage |
Generate images via ModelScope (FLUX, Qwen‑Image, etc.) |
HFTextToImage |
Generate images via Hugging Face Inference Providers |
| Node | Description |
|---|---|
OpenRouterImage |
Generate/edit images with OpenRouter (Gemini, GPT‑5‑image) |
ModelScopeQwenImageEdit |
Edit images with Qwen‑Image‑Edit via ModelScope |
SeedreamImage |
Generate/edit images with ByteDance Seedream |
HFImageToImage |
Edit images via Hugging Face Inference Providers |
| Node | Description |
|---|---|
DataFrameLoader |
Load CSV data into a pandas DataFrame |
DatePicker |
Select a date (string) |
TextFileLoader |
Load text file from ComfyUI input directory |
TextSaver |
Save text to a file in output directory |
| Node | Description |
|---|---|
AKShareStockHistory |
Fetch Chinese stock history via AKShare |
AKShareMacroChinaCPI |
Fetch China CPI data (yearly/monthly) |
AKShareMacroChinaPPI |
Fetch China PPI data (yearly) |
YfinanceTicker |
Fetch stock data from Yahoo Finance |
| Node | Description |
|---|---|
MatplotlibVisualization |
Generate static charts via AI‑generated Matplotlib code |
PlotlyVisualization |
Generate interactive Plotly HTML charts via AI |
BokehVisualization |
Generate interactive Bokeh HTML charts via AI |
MermaidChart |
Generate Mermaid diagram HTML via AI |
| Node | Description |
|---|---|
HTMLPreviewer |
Preview HTML string in ComfyUI |
HtmlIFramePreviewer |
Preview HTML/URL in an iframe |
CodeViewer |
View code with syntax highlighting |
MarkDownViewer |
Preview Markdown content |
| Node | Description |
|---|---|
CloudflareR2 |
Upload image to Cloudflare R2 and get public URL |
| Node | Description |
|---|---|
JSONParse |
Parse JSON string into a dictionary |
EmptyChatMessages |
Initialize chat messages with system/user prompt |
PromptMerge |
Merge prompts using a template string |
MDConvert |
Convert Markdown text to HTML |
Most nodes require API keys from respective services. Obtain keys from:
- ModelScope: https://modelscope.cn
- Hugging Face Inference Providers: https://huggingface.co/settings/tokens
- OpenRouter: https://openrouter.ai/keys
- DeepSeek: https://platform.deepseek.com/api‑keys
- DashScope (Qwen): https://dashscope.aliyun.com
- Jina AI: https://jina.ai/reader
- Cloudflare R2: https://dash.cloudflare.com
Store keys securely; you can input them directly in the node parameters or use ComfyUI’s secret management if available.
This project is released under the CC BY‑NC‑SA 4.0 License.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
For bugs, feature requests, or questions, please use the GitHub Issues page.
This plugin is not affiliated with any of the mentioned API providers. Use of third‑party services is subject to their respective terms and policies.
