Sorry if I missed something obvious but is there way to set api key (e.g. for Gemini) programmatically?