ComfyUI API Liberation - Use your own API keys directly with vendors. Features: - Direct API routing for 20+ providers (Google, OpenAI, Stability, etc.) - No ComfyUI account required - Local asset vault - images/videos stored locally - API key management UI in ComfyUI settings - Environment variable and config file support - Auto-detection of unmapped proxy endpoints - Graceful fallback when keys not configured
ComfyUI API Liberation
Use your own API keys. No ComfyUI account required.
ComfyUI's built-in API nodes route through api.comfy.org which requires an account and uses a credit system. This extension bypasses that entirely - your API calls go directly to the vendors (Google, OpenAI, Stability, etc.) using your own API keys.
Features
- Direct API routing - Calls go straight to vendor APIs, not through ComfyUI's proxy
- No account needed - Works without a ComfyUI/Comfy.org account
- Local asset storage - Images/videos stored locally instead of uploaded to Comfy servers
- 20+ providers supported - All major AI APIs covered
- Simple UI - Configure keys through ComfyUI's interface
- Graceful fallback - If no key is set, falls back to default ComfyUI behavior
Installation
cd ComfyUI/custom_nodes
git clone https://github.com/oxysoft/comfy-api-liberation.git
Restart ComfyUI after installation.
Supported Providers
| Provider | Get API Key |
|---|---|
| Google (Gemini, Veo, Imagen) | Google AI Studio |
| OpenAI (GPT, DALL-E, Sora) | OpenAI Platform |
| Stability AI | Stability Platform |
| BFL (Flux) | BFL API |
| Ideogram | Ideogram API |
| Recraft | Recraft Docs |
| Luma Labs | Luma API Keys |
| Runway | Runway Dev |
| Kling AI | Kling API |
| MiniMax | MiniMax Platform |
| Pika | Pika API |
| Tripo3D | Tripo Platform |
| Rodin (Hyper Human) | Rodin Dashboard |
| Topaz Labs | Topaz API |
| BytePlus | BytePlus Console |
| PixVerse | PixVerse Platform |
| Vidu | Vidu Platform |
| Moonvalley | Moonvalley |
| LTX Studio | LTX API |
| Wan (Alibaba) | Alibaba Model Studio |
Configuration
Option 1: UI (Recommended)
- In ComfyUI, go to Settings (gear icon)
- Find API Liberation section
- Enter your API keys for each provider
- Keys are saved locally to
api_keys.json
Option 2: Environment Variables
Set environment variables before starting ComfyUI:
export GOOGLE_API_KEY="your-key-here"
export OPENAI_API_KEY="your-key-here"
export STABILITY_API_KEY="your-key-here"
# ... etc
Option 3: Config File
Create api_keys.json in the extension directory:
{
"google": "your-google-key",
"openai": "your-openai-key",
"stability": "your-stability-key"
}
Priority: Environment variables > Config file > UI settings
How It Works
ComfyUI's API nodes make requests to /proxy/* endpoints on api.comfy.org. This extension:
- Intercepts outgoing API requests before they leave ComfyUI
- Rewrites
/proxy/vendor/...URLs to direct vendor API URLs - Injects your API key as the appropriate auth header
- Virtualizes the file upload system so assets stay local
All of this happens transparently - existing workflows work without modification.
Debugging
Enable debug logging:
LIBERATION_DEBUG=1 python main.py
Security Notes
- API keys are stored locally in
api_keys.json(gitignored by default) - Keys are never sent to ComfyUI/Comfy.org servers
- Each provider only receives its own API key
License
MIT License - see LICENSE file.
Contributing
Issues and PRs welcome. Please ensure api_keys.json is never committed.