Google's $300 credit broke Gemini nodes in ComfyUI, so one dev built a Vertex AI workaround
Cute-Appointment6874 · reddit · 2026-09-02
A developer found that none of the existing ComfyUI Gemini nodes worked with Google's $300 free trial — Google stopped letting that credit pay for the Gemini API via AI Studio back in March, and every node he tried goes through AI Studio, throwing 429 prepayment credits depleted.
The workaround: Vertex AI. Same models, different endpoint, and the credit does work there — with gcloud login instead of a pasted API key. He built a custom node (comfyui-gemini-ownkey) that:
- Supports Nano Banana Pro and 2.5 Flash Image, text-to-image with up to 14 reference images, 1K/2K/4K output
- Offers a reference-mode setting: by default Gemini copies the face from reference photos even when the prompt describes someone else; you can toggle it off or find a middle ground
- Switches between AI Studio and Vertex in-node, keeps your key in a config file so it doesn't leak into shared workflows
- Ships two small scripts to diagnose whether an issue is login, billing, or Google being down
Tested on Windows portable with ComfyUI 0.34.2; install via git clone for now. The author notes it's vibe coded — review carefully.
More from coding & agent
- Agentic Engineering Is Constraint Engineering: The Case for a 'Constraint Engineer' Role — burny_tech · 2026-09-02
- Day-one review: Fable 5.1 a big step up for serious codebases, coordination shines — xeophon · 2026-09-02
- Codex draws on tldraw canvas via web-mcp in WebMCP Hackathon entry — HankYeomans · 2026-09-02
- WebMCP + agent-browser: agent-native web with tool discovery and browser fallback — HankYeomans · 2026-09-02
- Updating a skill is editing a file; updating agent memory is the real engineering problem — _jaydeepkarale · 2026-09-02
- Best vibe coding books for 2026: from quick prototypes to real software — Mahmoud_Zalt · 2026-09-02