2.9 KiB
2.9 KiB
Quick Installation Guide - ComfyUI-Freepik
Prerequisites
- ComfyUI installed and working
- Python 3.9+ (same version as your ComfyUI)
- Freepik API key (Get one here)
Installation Steps
1. Navigate to custom_nodes directory
cd /path/to/ComfyUI/custom_nodes/
2. Clone or copy this repository
Option A: Git Clone
git clone https://github.com/YOUR_USERNAME/ComfyUI-Freepik.git
Option B: Manual Install
- Download this folder
- Copy to
ComfyUI/custom_nodes/ComfyUI-Freepik/
3. Install dependencies
cd ComfyUI-Freepik
pip install -r requirements.txt
Note: torch should already be installed with ComfyUI, so the requirements are minimal.
4. Restart ComfyUI
Completely restart your ComfyUI server.
5. Verify Installation
You should see the following nodes in ComfyUI:
-
Freepik/Generation/
- 🎨 Freepik Mystic (Text-to-Image)
-
Freepik/Editing/
- 🔍 Freepik Upscaler (Creative)
- 🎯 Freepik Upscaler (Precision)
-
Freepik/Utilities/
- ✂️ Freepik Remove Background
First Test
Test 1: Simple Generation
- Add node:
Freepik Mystic - Enter your API key
- Prompt: "modern house, architectural visualization"
- Resolution: 2K
- Queue prompt
- Wait ~30-60 seconds
- You should get a high-quality image!
Test 2: Upscaling
LoadImage → FreepikUpscalerPrecision (2x) → SaveImage
Troubleshooting
Nodes don't appear in ComfyUI
- Check ComfyUI console for errors
- Verify folder structure:
ComfyUI/ └── custom_nodes/ └── ComfyUI-Freepik/ ├── __init__.py ├── nodes/ ├── api/ └── utils/ - Restart ComfyUI completely (not just refresh)
"API key not set" error
- Double-check you entered the key correctly
- Verify key is active at Freepik Dashboard
Import errors
# Use the same Python as ComfyUI
python -m pip install requests pillow
Cache issues
# Clear cache if needed
rm -rf ComfyUI-Freepik/cache/
Getting Your API Key
- Visit Freepik Developers
- Sign in or create account
- Create new application
- Copy your API key
- You get $5 USD free credits!
Configuration
Edit config.json to customize:
- Cache settings
- Default parameters
- API timeouts
Next Steps
- Check the README.md for full documentation
- See example workflows in
/examplesfolder (coming soon) - Join Freepik Discord for support
Support
- Issues: GitHub Issues
- Freepik API: docs.freepik.com
- Discord: Freepik Community
Happy creating! 🎨