Back to Lobehub

Using Google Gemini API Key in LobeHub

docs/usage/providers/google.mdx

2.1.561.9 KB
Original Source

Using Google Gemini in LobeHub

<Image alt={'Using Google Gemini in LobeHub'} cover src={'/blog/assets34400653/9a8dc1d4-152b-415f-a7cd-8f0c8fbb9913.webp'} />

Gemini AI is a suite of large language models (LLMs) developed by Google AI, renowned for its cutting-edge capabilities in multimodal understanding and processing. It is a powerful AI tool designed to handle a wide range of tasks involving various types of data—not just text.

This guide will show you how to use Google Gemini in LobeHub:

<Steps> ### Step 1: Obtain a Google API Key
  • Visit and sign in to Google AI Studio
  • In the "Get API Key" menu, click on "Create API Key"

<Image alt={'Generate Google Gemini API Key'} inStep src={'/blog/assets34400653/ba3595e3-d9cb-4d0d-b414-8306b16df186.webp'} />

  • Choose an existing project or create a new one to generate your API key

<Image alt={'Enter API Key Name'} inStep src={'/blog/assets34400653/fa725e49-4c17-4055-82bc-98a31e73fa54.webp'} />

  • Copy the API key from the pop-up dialog

<Image alt={'Copy API Key'} inStep src={'/blog/assets34400653/28d89add-cb18-4b86-9807-f2a5ed65ceba.webp'} />

Step 2: Configure Google Gemini in LobeHub

  • Go to the Settings page in LobeHub
  • Under "AI Providers", locate the "Google Gemini" section

<Image alt={'Enter Google Gemini API Key in LobeHub'} inStep src={'/blog/assets34400653/11442ce4-a615-49c4-937a-ca2ae93dd27c.webp'} />

  • Enable Google Gemini and paste in your API key
  • Choose a Gemini model for your assistant to start chatting

<Image alt={'Select and Use Gemini Model'} inStep src={'/blog/assets34400653/ef9ed1b8-6828-4dd6-b86b-bb0b4fa40619.webp'} />

<Callout type={'warning'}> You may incur charges from the API provider while using the service. Please refer to Google Gemini’s pricing policy for details. </Callout> </Steps>

And that’s it — you’re now ready to use Google Gemini in LobeHub!