OptionalapiThe API key to use for the Gemini API. If not provided, it will look for the GOOGLE_GENAI_API_KEY or GEMINI_API_KEY environment variable.
OptionalheadersHeaders to merge with internally crafted headers.
OptionallocationThe Vertex AI location. Required if vertexai is true.
OptionalmodelThe name of the model to use. Defaults to 'gemini-2.5-flash'.
OptionalprojectThe Vertex AI project ID. Required if vertexai is true.
OptionaluseWhether to use the Interactions API for stateful conversations.
OptionalvertexaiWhether to use Vertex AI. If true, project, location
should be provided.
The parameters for creating a Gemini instance.