PHP Fatal error: Uncaught RuntimeException: Gemini API operation failed: operation=models/gemini-pro:generateContent, status_code=400, response={ "error": { "code": 400, "message": "User location is not supported for the API use without a billing account linked.", "status": "FAILED_PRECONDITION" } }
However, when I deploy to Live server, it all works fine.
When testing locally I get this error:
PHP Fatal error: Uncaught RuntimeException: Gemini API operation failed: operation=models/gemini-pro:generateContent, status_code=400, response={ "error": { "code": 400, "message": "User location is not supported for the API use without a billing account linked.", "status": "FAILED_PRECONDITION" } }
However, when I deploy to Live server, it all works fine.
How can I test this locally? Thank you