ComfyUI Extension: ComfyUI-PromptsO
A comprehensive AI API integration and prompt processing toolkit for ComfyUI, providing powerful text and image generation capabilities with advanced prompt manipulation tools.
Custom Nodes (0)
README
ComfyUI-PromptsO
Version: 1.1.0
A comprehensive AI API integration and prompt processing toolkit for ComfyUI, providing powerful text and image generation capabilities with advanced prompt manipulation tools.
π Features
AI API Integration
- πImage with Gemini - Generate images using Google Gemini API with your own API key
- πImage with Grok - Generate images using Grok AI API with your own API key
- πText with Deepseek - Generate text using Deepseek AI API with your own API key
- πText with Gemini - Generate text using Google Gemini API with your own API key
- πText with OpenAI - Generate text using OpenAI GPT API with your own API key
- πText with Grok - Generate text using Grok AI API with your own API key
Prompt Processing Tools
- πPrompts Combine - Merge multiple prompts with customizable separators
- πPrompts Input - Advanced prompt input with multiline support
- πPrompts Split - Split prompts by delimiters into separate outputs
- πPrompts Replace - Replace text patterns using regex or simple text matching
- πPrompts from Janus Pro - Extract and process prompts from Janus Pro model
π¦ Installation
Method 1: ComfyUI Manager (Recommended)
- Open ComfyUI Manager
- Search for "PromptsO" or "S4MUEL"
- Click Install
- Restart ComfyUI
Method 2: Manual Installation
- Navigate to your ComfyUI custom_nodes directory:
cd ComfyUI/custom_nodes/
- Clone this repository:
git clone https://github.com/S4MUEL-404/ComfyUI-PromptsO.git
- Install dependencies:
pip install -r ComfyUI-PromptsO/requirements.txt
- Restart ComfyUI
π§ Dependencies
The plugin automatically manages its dependencies:
- Pillow (PIL) - Image processing
- NumPy - Numerical operations
- Requests - API communications
- Torch - Deep learning operations
- Transformers - AI model handling
- Additional AI libraries - Advanced API integrations
π Usage
AI API Nodes
Image Generation:
- Find Nodes: All nodes are prefixed with π in the ComfyUI node browser
- Categories: Look under "πS4PromptsO" category
- API Keys: Enter your own API keys for full control and privacy
- Configuration: Each node provides specific parameters for optimal results
Text Generation:
- Add any text generation node to your workflow
- Enter your API key and prompt
- Configure parameters like temperature, max tokens, etc.
- Execute workflow to generate text
Prompt Processing Nodes
Combining Prompts:
- Use πPrompts Combine to merge multiple prompt inputs
- Customize separators and formatting
- Perfect for complex multi-part prompts
Splitting Prompts:
- Use πPrompts Split to divide prompts by delimiters
- Useful for batch processing or multi-output workflows
- Supports custom delimiter patterns
Text Replacement:
- Use πPrompts Replace for pattern matching and replacement
- Supports both regex and simple text matching
- Essential for dynamic prompt modification
π― Key Features
- β Multiple AI APIs - Support for major AI providers with your own keys
- β Privacy Focused - No data stored, direct API communication
- β Advanced Prompting - Comprehensive prompt manipulation tools
- β Production Quality - Enterprise-grade error handling and logging
- β Flexible Integration - Compatible with existing ComfyUI workflows
- β Cost Control - Use your own API keys for transparent billing
π Project Structure
ComfyUI-PromptsO/
βββ py/ # Core node implementations
β βββ imageGemini.py # Gemini image generation
β βββ imageGrok.py # Grok image generation
β βββ textDeepseek.py # Deepseek text generation
β βββ textGemini.py # Gemini text generation
β βββ textOpenAI.py # OpenAI text generation
β βββ textGrok.py # Grok text generation
β βββ promptsCombine.py # Prompt combination
β βββ promptsInput.py # Advanced prompt input
β βββ promptsSplit.py # Prompt splitting
β βββ promptsReplace.py # Text replacement
β βββ promptsFromJanusPro.py # Janus Pro integration
βββ cache/ # API response cache
βββ summary_md/ # Development documentation
βββ __init__.py # Plugin initialization
βββ s4_logger.py # Logging system
βββ requirements.txt # Python dependencies
π€ Contributing
Contributions are welcome! Please feel free to submit pull requests or report issues.
π License
This project is open source. Please respect the licensing terms.
Author: S4MUEL
Website: s4muel.com
GitHub: https://github.com/S4MUEL-404/ComfyUI-PromptsO