Skip to content

Integrate with Gemini

1 Adding a Model

Before adding a Gemini large model, you need to create an API Key in Google AI Studio.

Gemini API Key

Select the model provider as Gemini and enter the following necessary information in the model addition dialog:

  • Model Name: Custom model name in MaxKB.
  • Permission: Divided into private and public permissions. Private models are only available to the current user, while public models can be used by all users within the system, but other users cannot edit or delete them.
  • Model Type: Large language model/Vector model/Speech recognition/Image understanding.
  • Base Model: The name of the base model under different types, with a drop-down option for some commonly used base model names, and supports custom input.
  • API Key: Obtain the API Key.

Note: To use the Gemini API, ensure that the server where the program is located is in a region supported by Gemini API, otherwise you cannot call the API and access Google AI Studio.

2 Configuration Example

Example of Gemini - Large Language Model configuration:

Gemini Large Language Model