koxov/comfyui-ayang_node
๐ Generate images effortlessly with ComfyUI using the OpenRouter API, supporting multiple inputs and flexible seed control for varied outputs.
What's novel
๐ Generate images effortlessly with ComfyUI using the OpenRouter API, supporting multiple inputs and flexible seed control for varied outputs.
Code Analysis
7 files read ยท 5 roundsA ComfyUI custom node plugin that wraps the OpenRouter API (specifically Gemini 2.5 Flash Image) to provide text-to-image and image-to-image generation nodes within ComfyUI's node graph, with multi-API-key rotation and canvas-based size control.
Strengths
Thoughtful error handling that returns placeholder images instead of empty tensors to avoid breaking downstream ComfyUI nodes, and practical multi-API-key rotation for rate-limit avoidance. The canvas-cropping trick to control output dimensions is a creative workaround for API limitations.
Weaknesses
The README is completely dishonest, describing a standalone desktop GUI application when the code is a Python API wrapper for ComfyUI. The entire implementation is a thin HTTP client wrapper with no local ML logic, significant code duplication between the two node classes, zero tests, and a suspicious NOTICE file with placeholder text suggesting uncredited code reuse.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
29
Contributors
2
Files
12
Active weeks
3
Repository
Language
Python
Stars
2
Forks
0
License
Apache-2.0