google_api_key: SecretStr | None = Field( alias='api_key', default_factory=(secret_from_env(['GOOGLE_API_KEY', 'GEMINI_API_KEY'], API key for authentication.
If not specified, will check the env vars GOOGLE_API_KEY and GEMINI_API_KEY with precedence given to GOOGLE_API_KEY.
project is set)vertexai=True or provide project) credentials parameterYou can now use Vertex AI with API key authentication instead of service account credentials. Set GOOGLE_GENAI_USE_VERTEXAI=true or vertexai=True along with your API key and project.