The models you were testing are retired models (gemini-1.0-pro, gemini-1.5-pro-latest, gemini-1.5-flash-latest), meaning Google no longer hosts/serves those models. You should migrate to the current active models such as Gemini 2.0, Gemini 2.5 and later. Please reference this migration guide and with details of which models are retired.