🤖

# AI Configuration

Setup OpenAI, DeepSeek, Gemini for AI-powered features

Need Help?

For additional support, visit our Support Center

## OpenAI Integration

### 🔑 How to Create OpenAI API Key

Official Guide: https://platform.openai.com/docs/quickstart
1

#### Visit OpenAI Platform

Go to https://platform.openai.com and sign up or log in to your account.

2

#### Navigate to API Keys

Click on your profile icon → "View API keys" or go directly to API Keys page.

3

#### Create New API Key

Click "Create new secret key" button. Give it a name like "V5 Trading Platform".

4

#### Copy Your API Key

Important: Copy the API key immediately - it starts with "sk-" and you won't be able to see it again.

5

#### Add Billing Information

Go to "Billing" → "Payment methods" and add a payment method. You'll need credits to use the API.

Cost Information

OpenAI charges per token usage. GPT-4 costs more than GPT-3.5. Set usage limits in your account to control costs.

### OpenAI API Setup

#### API Configuration

`OPENAI_API_KEY="sk-your_openai_api_key"`

Configure OpenAI for chatbot and content generation.

## DeepSeek AI

### 🔑 How to Create DeepSeek API Key

Official Guide: https://platform.deepseek.com/docs
1

#### Visit DeepSeek Platform

Go to https://platform.deepseek.com and create an account or log in.

2

#### Access API Management

Navigate to "API Keys" section in your dashboard or go to API Keys page.

3

#### Create New API Key

Click "Create API Key" button and provide a name like "V5 Trading Platform".

4

#### Copy Your API Key

Important: Copy the API key immediately after creation - you won't be able to view it again.

5

#### Add Credits

Go to "Billing" section and add credits to your account to start using the API.

Cost Advantage

DeepSeek offers competitive pricing and often provides free credits for new users. Check their pricing page for current rates.

### DeepSeek API

#### DeepSeek Settings

`DEEPSEEK_API_KEY="your_deepseek_api_key"`

## Google Gemini AI

### 🔑 How to Create Google Gemini API Key

Official Guide: https://ai.google.dev/gemini-api/docs/get-started
1

#### Visit Google AI Studio

Go to https://aistudio.google.com and sign in with your Google account.

2

#### Accept Terms of Service

Read and accept the terms of service for Google AI Studio and Gemini API usage.

3

#### Get API Key

Click on "Get API key" button in the left sidebar or go to API Keys page.

4

#### Create API Key

Click "Create API key" → "Create API key in new project" or select an existing Google Cloud project.

5

#### Copy Your API Key

Copy the generated API key. Unlike other services, you can view this key again in Google AI Studio.

6

#### Configure Rate Limits (Optional)

Set up rate limits and usage restrictions in the API key settings to control usage.

Free Tier Available

Gemini API offers a generous free tier with rate limits. Check the current pricing and limits at Google AI pricing page.

### Gemini Configuration

#### Google AI Studio

`GOOGLE_GEMINI_API_KEY="your_gemini_api_key"`

Advanced AI for analysis and content generation.

## Restart Development Server

### Apply AI Configuration

After configuring AI services, restart the development server:

Important

AI configuration changes require a server restart to take effect.

#### 1. Stop the current server

Press `Ctrl + C` in your terminal

#### 2. Start the development server

`pnpm dev`

This will restart the server with your new AI configuration.