Gemini Image Generation Silently Fails From Hetzner IPs — Network Origin Was the Culprit
dota2dinall · reddit · 2026-08-19
While building ThumbAPI, a REST API for auto-generating thumbnails via Gemini's image API, a developer hit a production-only bug: identical code and API key worked locally but returned finishReason: IMAGEOTHER from the server.
He systematically ruled out prompt/celebrity safety filters, faces in reference images, and even removed references entirely — no change. The remaining variable was network origin: residential IP worked, Hetzner IPv4/IPv6 both failed, and proxying through a Google Cloud Function fixed it instantly.
Likely an undocumented datacenter-IP reputation or abuse-prevention policy. Lesson: when debugging AI APIs, treat the outbound IP as a variable, not just prompt, model, and inputs.
More from coding & agent
- "Harness to Weights": Folding Agent Scaffolding Into a Base VLM Without Gradients — YangYou1991 · 2026-11-30
- Qiaomu UI Learn ships as Antigravity plugin with 13,500+ real UI references for agent replication — vista8 · 2026-11-30
- DHH cracks Linux deep sleep on Zenbook A16: 0.16W overnight draw — cgarciae88 · 2026-11-30
- Sakana AI open-sources Agentic Scientist, pushing toward self-improving AI researchers — SakanaAILabs · 2026-11-30
- Blogger migrates Ghost blog to self-hosting in hours with Claude — kevinakwok · 2026-11-30
- Dev turns iPhone into an MCP server so local LLMs can read your phone data — Solid-Strawberry-333 · 2026-11-30