The Gemini model provides access to Google’s Gemini models.

ParameterTypeDefaultDescription
idstr"gemini-2.0-flash-exp"The specific Gemini model ID to use.
namestr"Gemini"The name of this Gemini model instance.
providerstr"Google"The provider of the model.
function_declarationsOptional[List[FunctionDeclaration]]NoneList of function declarations for the model.
generation_configOptional[Any]NoneConfiguration for text generation.
safety_settingsOptional[Any]NoneSafety settings for the model.
generative_model_kwargsOptional[Dict[str, Any]]NoneAdditional keyword arguments for the generative model.
api_keyOptional[str]NoneAPI key for authentication.
client_paramsOptional[Dict[str, Any]]NoneAdditional parameters for the client.
clientOptional[GenerativeModel]NoneThe underlying generative model client.