ComfyUI Extension: ComfyUI-Ideogram-Character
Custom ComfyUI node for generating consistent character images using Ideogram API v3's character reference feature. (Description by CC)
Custom Nodes (0)
README
ComfyUI Ideogram Character Node
A custom ComfyUI node for generating consistent character images using Ideogram API v3's character reference feature. Part of the Desert Pixel (DP) node collection.
<img width="1254" height="580" alt="dxrthgft" src="https://github.com/user-attachments/assets/421e13e8-97a6-4b3b-ad17-a1b81c3dbd65" />š Features
- šØ Character Consistency: Generate multiple images with the same character
- š¼ļø Character Reference: Use any portrait/face image as reference
- š Flexible Aspect Ratios: 15+ preset dimensions for any use case
- šØ Five Style Types: Auto, General, Realistic, Design, Fiction
- š Three Speed Modes: Turbo, Default, and Quality
- š² Seed Control: Reproducible results with seed management
- ⨠Magic Prompt: AI-enhanced prompt generation
- š¦ Batch Generation: Generate 1-4 images at once
š Requirements
- ComfyUI (latest version)
- Python 3.8+
- Ideogram API key
š§ Installation
Method 1: Git Clone
-
Navigate to your ComfyUI custom nodes directory:
cd ComfyUI/custom_nodes -
Clone this repository:
git clone https://github.com/DesertPixelAI/ComfyUI-DP-Ideogram-Character cd ComfyUI-DP-Ideogram-Character -
Install required dependencies:
pip install -r requirements.txt -
Restart ComfyUI
Method 2: Manual Installation
- Download the repository as ZIP
- Extract to
ComfyUI/custom_nodes/ComfyUI-DP-Ideogram-Character - Install dependencies:
pip install -r requirements.txt - Restart ComfyUI
š Getting an API Key
- Visit Ideogram Developer Portal
- Sign up or log in to your account
- Navigate to API section
- Create a new API key
- Copy the key (it will only be shown once)
š Usage
Basic Workflow
- Add the "DP Ideogram Character" node to your workflow
- Connect an image source to the
character_imageinput:- Load Image node
- VAE Decode output
- Any node outputting IMAGE type
- Enter your API key
- Write a descriptive prompt
- Configure settings (aspect ratio, speed, etc.)
- Click "Queue Prompt" to generate
Node Inputs
Required Inputs
- API Key: Your Ideogram API key (keep it secret!)
- Prompt: Detailed description of the scene/pose
- Character Image: Reference image (portrait/headshot works best)
- Aspect Ratio: Output dimensions (15+ presets: 1:1, 16:9, 9:16, etc.)
- Style Type: Visual style (Auto, General, Realistic, Design, Fiction)
- Image Count: Number of images to generate (1-4)
- Render Speed: Quality/speed trade-off
Optional Inputs
- Seed: For reproducible results (-1 for random)
- Magic Prompt: AI enhancement (AUTO/ON/OFF)
Node Outputs
- images: Generated images as tensor batch
- info: Generation details (seed, image count, dimensions)
š” Tips for Best Results
Character Reference Image
- Use clear, well-lit portraits
- Face should be clearly visible
- Slight angle often works better than straight-on
- Avoid heavily cropped or obscured faces
š§ Troubleshooting
Node Not Appearing in ComfyUI
If the "DP Ideogram Character" node doesn't appear in your ComfyUI node menu:
-
Check dependencies:
pip install -r requirements.txt -
Verify file structure:
ComfyUI-DP-Ideogram-Character/ āāā __init__.py āāā nodes/ ā āāā __init__.py ā āāā ideogram_character.py āāā utils/ ā āāā __init__.py ā āāā image_utils.py ā āāā api_client.py āāā requirements.txt āāā README.md -
Restart ComfyUI completely
Common Error Messages
- "Invalid API key": Check your API key at https://developer.ideogram.ai
- "No images returned": Check your API quota/credits
- "Image too large": The reference image exceeds 10MB limit
- "Import error": Check ComfyUI console for detailed error messages
Getting Help
- Check ComfyUI console for error messages
- Verify your API key has sufficient credits
- Ensure all dependencies are installed correctly
- Resolution: at least 512x512px recommended
Prompts
- Be descriptive about pose, setting, and action
- Include details about clothing and environment
- Specify camera angles and lighting
- The AI will preserve facial features from reference
š° Pricing
Prices per image with character reference:
- Turbo: $0.04 (fastest, lower quality)
- Default: $0.07 (balanced)
- Quality: $0.10 (slowest, best quality)
ā ļø API Limitations
When using character reference with Ideogram API:
- Custom color palettes are not supported
- Style reference images cannot be combined with character reference
- Character masks are not supported in Generate mode (use Edit mode for selective editing)
- Image URLs from Ideogram expire after a limited time (download to keep)
šļø Project Structure
ComfyUI-DP-Ideogram-Character/
āāā __init__.py # Main package file
āāā nodes/ # Node implementations
ā āāā __init__.py
ā āāā ideogram_character.py
āāā utils/ # Utility functions
ā āāā __init__.py
ā āāā image_utils.py # Image processing
ā āāā api_client.py # API communication
āāā requirements.txt # Python dependencies
āāā README.md # Documentation
š Troubleshooting
Common Issues
-
"Invalid API key"
- Check your API key is correct
- Ensure no extra spaces or characters
- Verify API key is active on Ideogram dashboard
-
"No images returned"
- Check your API quota/credits
- Verify internet connection
- Try reducing image count or quality
-
"Image too large"
- Node automatically resizes, but very large images may fail
- Try using smaller reference images
- Recommended max: 2048x2048px
-
Connection errors
- Check firewall/proxy settings
- Verify Ideogram API is accessible
- Try increasing timeout in advanced settings
Debug Mode
Enable logging to see detailed information:
import logging
logging.basicConfig(level=logging.INFO)
š License
MIT License - see LICENSE file for details
š¤ Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
š Credits
- Ideogram for their amazing API
- ComfyUI community for the framework
- Contributors and testers
š Support
- Issues: Open an issue on GitHub
- Discussions: Use GitHub Discussions for questions
- API Support: Contact Ideogram support for API issues
š Version History
v1.0.1 (Current Release)
- Fixed character mask input (removed - not needed for Generate API)
- Character reference support with Ideogram API v3
- 15 preset aspect ratios for flexible output sizes
- 5 style types: Auto, General, Realistic, Design, Fiction
- 3 render speeds: Turbo, Default, Quality
- Batch generation (1-4 images)
- Comprehensive security features
- Production-ready with error handling
š Links
Made with ā¤ļø for the ComfyUI community