The Gemini OpenAI model provides access to Google’s Gemini models that are OpenAI Like.

ParameterTypeDefaultDescription
idstr"gemini-1.5-flash"The ID of the Gemini model to use
namestr"Gemini"The name of this chat model instance
providerstr"Google"The provider of the model
api_keyOptional[str]NoneThe API key for authenticating with Google (defaults to environment variable GOOGLE_API_KEY)
base_urlstr"https://generativelanguage.googleapis.com/v1beta/"The base URL for API requests