BuouNext
  • Features
  • DocumentsNew
  • BrutalUINew
  • ShowcaseHot
  • Pricing
  • Blog

    Getting Started

    Introduction

    BuouNext Instruction

    InstallationRun BuouNextProject StructureComponentsAuthenticationEmailAPI CallsDatabasePaymentSEO OptimizationHeadless CMSContact

    AI Instruction

    AI ImageNewAI ChatbotNewAI SearchNewAI NotionNew

    Components

    Super ClockNewFloating DockNewAI Image CompareNewAvatar ListNewClockNewDarkModeNewStepperNewRotation AvatarNewButton with TrailNewDotNewGridNewCounter CardNewMarquee CardNewProfile CardNewBento gridNewBorder Trail CardNewBuouNext FeaturesNewColor CardNewMouse FollowingNewColor GridNewAnimotion In View CardNewLevitate CardNewReorder CardNewGenerate TextNewSmooth Fliping NumberNewSmooth Fliping TextNewSmooth Typing TextNewTyping TextNewWindow Typing TextNewFade In OutNewText DropNewScalingNew
    Docs
    How to Apply for Gemini API Key and Use AI Image

    How to Apply for Gemini API Key and Use AI Image

    Learn how to apply for a Gemini API key, and explore the usage of AI Image for generating and editing images with Google Gemini 2.0 Flash.

    Gemini is Google’s cutting-edge generative language model. In this guide, you'll learn how to apply for a Gemini API key and integrate its powerful features into your projects. We’ll walk you through using AI Image for dynamic image generation and editing via Google Gemini 2.0 Flash.


    How to Apply for a Gemini API Key

    1. Visit the Google AI Platform:
      Go to Google AI Studio and sign in with your Google account.

    2. Create a New Project:
      If you don’t have an existing project, create a new one via the Google Cloud Console.

    3. Enable the Gemini API:
      Navigate to the API Library and search for the Gemini API. Click "Enable" to add it to your project.

    4. Generate an API Key:
      In the Cloud Console, go to the "Credentials" section and click "Create Credentials". Choose "API Key" and copy the generated key.

      Note: Keep your API key secure and restrict its usage via application restrictions and API restrictions.

    5. Set Up Environment Variables:
      Store your API key in a secure place (e.g., in a .env.local file):

      GOOGLE_GENERATIVE_AI_API_KEY=your_generated_api_key_here

    How to use AI Image

    You can test it in AI Image

    and if you set up GOOGLE_GENERATIVE_AI_API_KEY,you can use it directly before you run BuouNext success

    ContactAI Chatbot