Your issue is straightforward — the model gemini-1.5-flash has been fully retired by Google. All requests to Gemini 1.5 models now return a 404, which is exactly what you’re seeing.
The fix is just updating the model name in your flow. In your file:
src/ai/flows/reconocer-objeto-almacenado-flow.ts (around line 118)
Replace gemini-1.5-flash with one of these:
• gemini-2.0-flash — closest replacement, solid balance of speed and cost
• gemini-2.5-flash-lite — newer, cheaper, great for high-volume tasks
• gemini-3-flash-preview — latest generation if you want cutting-edge performance
Also heads up: gemini-2.0-flash is scheduled for retirement on June 1, 2026, so if you’re starting fresh, I’d go straight to 2.5-flash-lite or 3-flash-preview to avoid migrating again soon.
One more thing — your Next.js version (15.5.9) is also flagged as obsolete, so you might want to update that too while you’re at it.