ComfyUI-IF_AI_tools is a set of custom nodes for ComfyUI that allows you to generate prompts using a local Large Language Model (LLM) via Ollama. This tool enables you to enhance your image generation workflow by leveraging the power of language models.
Last updated Jul 9, 2026
701
Stars
56
Forks
2
Issues
0
Stars/day
Attention Score
61
Topics
Language breakdown
Python 82.5%
JavaScript 17.5%
Batchfile 0.0%
โธ Files
click to expand
README
This Repo is now Archived.
Thank you for the support you gave to my nodes. A similar repo with many of the same functionalities can be found here https://github.com/comfy-deploy/comfyui-llm-toolkit
ComfyUI-IFAItools
ComfyUI-IFAItools is a set of custom nodes to Run Local and API LLMs and LMMs, features OCR-RAG (Bialdy), nanoGraphRAG, Supervision Object Detection, supports Ollama, LlamaCPP LMstudio, Koboldcpp, TextGen, Transformers or via APIs Anthropic, Groq, OpenAI, Google Gemini, Mistral, xAI and create your own charcters assistants (SystemPrompts) with custom presets and much more ################# ATENTION #################### ** I am moving the prompt generation to this new node PromptImaGen https://github.com/if-ai/ComfyUI-IFAIPromptImaGen/tree/main You will need to uninstall or disable this repo to use the PromptImaGen ** ###############################################Prerequisite Installation (Poppler)
To ensure compatibility and functionality with all tools, you may needpoppler for PDF-related operations. Use scoop to install poppler on Windows:
Step 1: Install scoop (if not already installed)
If you haven't installed scoop yet, run the following command in PowerShell:
iwr -useb get.scoop.sh | iex
Step 2: Install poppler with scoop
Once scoop is installed, you can install poppler by running:
windows 10+ istall scoop and then
scoop install poppler
Debian/Ubuntu
sudo apt-get install poppler-utils
MacOS
brew install poppler
check is working
pdftotext -v
Install Ollama
You can technically use any LLM API that you want, but for the best expirience install Ollama and set it up.- Visit ollama.com for more information.
ollama run llama3.2-vision
If you want to use omost
ollama run impactframes/dolphinllama3omost
if you need a good smol model
ollama run ollama run llama3.2
Optionally Set enviromnet variables for any of your favourite LLM API keys "XAIAPIKEY", "GOOGLEAPIKEY", "ANTHROPICAPIKEY", "MISTRALAPIKEY", "OPENAIAPIKEY" or "GROQAPIKEY" with those names or otherwise
it won't pick it up you can also use .env file to store your keys
Features
[NEW] nanoGraphRAG, [NEW] OCR-RAG ColPali & ColQwen (Bialdy), [NEW] Supervision Object Detection Florence2 [NEW] Endpoints xAI, Transformers, [NEW] IF_Assistants System Prompts with Reasoning/Reflection/Reward Templates and custom presets- Gemini, Groq, Mistral, OpenAI, Anthropic, Google, xAI, Transformers, Koboldcpp, TextGen, LlamaCPP, LMstudio, Ollama
- Omost_tool the first tool
- Vision Models Haiku, Florence2
- [Ollama-Omost]https://ollama.com/impactframes/dolphinllama3omost can be 2x to 3x faster than other Omost Models
ollama run impactframes/llama3ifaisdpromptmkr_q4km:latest
ollama run impactframes/ifaipromptmkrdolphin_phi3:latest
https://huggingface.co/impactframes/llama3ifaisdpromptmkrq4km
https://huggingface.co/impactframes/ifaipromptmkrdolphinphi3gguf
Installation
- Open the manager search for IFAItools and install
Install ComfyUI-IFAItools -hardest way
- Navigate to your ComfyUI
custom_nodesfolder, typeCMDon the address bar to open a command prompt,
git clone https://github.com/if-ai/ComfyUI-IFAItools.git
OR
- In ComfyUI protable version just dounle click
embeddedinstall.bator typeCMDon the address bar on the newly createdcustomnodes\ComfyUI-IFAItoolsfolder type
H:\ComfyUIwindowsportable\python_embeded\python.exe -m pip install -r requirements.txt
replace C:\ for your Drive letter where you have the ComfyUIwindowsportable directory
- On custom environment activate the environment and move to the newly created ComfyUI-IFAItools
cd ComfyUI-IFAItools
python -m pip install -r requirements.txt
Related Tools
- A similar tool available for Stable Diffusion WebUI
Videos
AIFuzz made a great video usining ollama and IF_AI tools
Also Future thinker @ Benji Thankyou both for putting out this awesome videos
Example using normal Model
ancient Megastructure, small lone figure 'A dwarfed figure standing atop an ancient megastructure, worn stone towering overhead. Underneath the dim moonlight, intricate engravings adorn the crumbling walls. Overwhelmed by the sheer size and age of the structure, the small figure appears lost amidst the weathered stone behemoth. The background reveals a dark landscape, dotted with faint twinkles from other ancient structures, scattered across the horizon. The silent air is only filled with the soft echoes of distant whispers, carrying secrets of times long past. ethereal-fantasy-concept-art, magical-ambiance, magnificent, celestial, ethereal-lighting, painterly, epic, majestic, dreamy-atmosphere, otherworldly, mystic-elements, surreal, immersive-detail'TODO
- [ ] Fix Bugs and make it work on latest ComfyUI
- [ ] Fix Graph Visualizer Node
- [ ] Tweak IF_Assistants and Templates
- [ ] FrontEnd for IF_Assistants and Chat
- [ ] Node and workflow creator
- [ ] two additional Endpoints one API and one Local
- [ ] Add New workflows
- [ ] Image Generation, Text 2 Image, Image to Image, Video Generation
Support
If you find this tool useful, please consider supporting my work by:- Starring the repository on GitHub: ComfyUI-IFAI_tools
- Subscribing to my YouTube channel: Impact Frames
- Follow me on X: Impact Frames X
- Supporting me on Ko-fi: Impact Frames Ko-fi
- Becoming a patron on Patreon: Impact Frames Patreon
๐ More in this category