How to Use AI Search in BuouNext
Learn how to enable and use AI Search powered by Google Gemini 2.0 Flash in BuouNext, providing a Perplexity-like search experience.
Gemini is Google’s cutting-edge generative language model.
In BuouNext, we integrate Gemini 2.0 Flash to power AI Search, offering users an intelligent, fast, and context-aware search experience similar to Perplexity.ai. This feature allows you to ask complex questions and receive synthesized answers from across the web with citation and real-time knowledge.
🔧 Prerequisites
Before using AI Search, ensure the following:
- You have a Google Developer account.
- You’ve applied for and received access to the Gemini API key.
- You are using BuouNext v1.2.0 or later.
- Your project has internet access and appropriate serverless functions or API routes enabled.
How to Apply for a Gemini API Key
-
Visit the Google AI Platform:
Go to Google AI Studio and sign in with your Google account. -
Create a New Project:
If you don’t have an existing project, create a new one via the Google Cloud Console. -
Enable the Gemini API:
Navigate to the API Library and search for the Gemini API. Click "Enable" to add it to your project. -
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.
-
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 search
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