Gemini 1.0 (pro) models has retired, that's why you are getting 404. You need to migrate to Gemini 2.0/2.5 and later. See this discussion.