Skip to main content
In this guide, you’ll learn how to:
  • Get your API key from Google AI Studio.
  • Connect it to Rocket using chat or project settings.
  • Start building Gemini-powered features in your app.
What is Gemini?
Gemini is Google’s multimodal AI model that can process text, images, and other data types.
Use it for content generation, visual analysis, and intelligent applications that understand multiple input formats.
Your API key stays safe with Rocket.
It is encrypted at rest and never exposed, so you can connect with confidence.

Before you begin

You’ll need:
  • A Rocket account - rocket.new.
  • A Google account with access to Gemini.

Connect Gemini to Rocket

1

Get your API key

Visit Google AI Studio to create or copy your API key.
Your API key gives you access to Gemini, Google’s multimodal AI model.
Keep it private and rotate it if you believe it has been exposed.
2

Add your Gemini API key to Rocket

You can connect Gemini in two ways:Method 1: Use Rocket Chat (fastest)
  • In any project, open the chat panel and type something like:
    Connect Gemini AI to:
    • Generate text summaries or titles.
    • Add a multimodal input field that accepts image + text.
    • Respond to user questions with Gemini-powered answers.
  • A popup will appear where you can paste and save your API key instantly.
    Gemini integration popup in chatGemini integration popup in chat

    Gemini integration popup in chat

This is perfect if you’re already chatting with Rocket while building. No extra clicks needed - just tell Rocket what you want!
Method 2: From your project settings
  • Open any project and go to Integrations.
    Integrations tabIntegrations tab

    Integrations tab

  • Scroll to Gemini and click it.
    Gemini integration cardGemini integration card

    Gemini integration card in Rocket

When you connect Gemini this way, Rocket won’t automatically create Gemini features.
After you save your API key, just tell Rocket in chat what you’d like to build, and it will set it up for you!
3

Save your API key

  • In Rocket’s Gemini integration screen, paste your API key into the input field.
  • Click Save to complete setup.
Success check: You’ll see a green dot next to Gemini in your integrations list.
Important Security Notice
Never paste your API key directly into Rocket chat.
Always use the secure integration flow or the API key input provided in settings to connect your account safely.
4

Change or remove your Gemini API key

  • Go back to the Gemini integration in project settings.
  • You can update your API key anytime or click Remove to disconnect.
    Remove Gemini integrationRemove Gemini integration

    Remove Gemini integration

You did it!

Gemini is now connected to your Rocket project. You can now build rich, multimodal AI experiences using Google’s latest models.
Need help?
Email us at [email protected] or join our Discord community to get help, share ideas, and connect with other creators.