initialize static method
Sets the API key used by googleAI when none is passed.
This replaces Firebase.initializeApp(). Ephemeral tokens
(auth_tokens/...) are accepted and default to the v1alpha API.
Implementation
static void initialize({required String apiKey, String? apiVersion}) {
_defaultApiKey = apiKey;
_defaultApiVersion = apiVersion;
}