Gemini API 503 Error Suddenly Occurring — Need Help Fixing It

I’m getting a 503 error with the Gemini API. The same API key and code were working perfectly fine 3 days ago, but suddenly I’ve started getting a 503 error.

I haven’t made any changes to my code. I’m using the Gemini API key in my project, and now the requests are failing with 503 Service Unavailable.

Is this a temporary Gemini API/server-side issue, or is there something I need to change in my API configuration?