All Guides
Google Gemini API Setup
Set up Google Gemini (formerly Bard) API and use it in your projects.
Intermediate20 min
Setup Steps
1. Go to https://aistudio.google.com
2. Sign in with your Google account and create an API key
3. Install the Python SDK:
pip install google-generativeai4. Set the API key as an environment variable:
export GOOGLE_API_KEY="AIza..."5. Send your first request with Python:
python
import google.generativeai as genai
genai.configure(api_key=os.environ["GOOGLE_API_KEY"])
model = genai.GenerativeModel('gemini-2.0-flash')
response = model.generate_content("Hello!")
print(response.text)6. For Node.js:
npm install @google/generative-ai7. JavaScript example:
javascript
import { GoogleGenerativeAI } from "@google/generative-ai";
const genAI = new GoogleGenerativeAI(process.env.GOOGLE_API_KEY);
const model = genAI.getGenerativeModel({ model: "gemini-2.0-flash" });
const result = await model.generateContent("Hello!");
console.log(result.response.text());Related Guides
Claude Code Setup
Install Anthropic Claude Code CLI on your server or PC. API key configuration and basic commands.
ChatGPT API Setup
Integrate OpenAI ChatGPT API into your project. Getting API keys and sending your first request.
Midjourney Usage Guide
Create AI-powered images with Midjourney. Step-by-step guide for Discord usage.
Stable Diffusion Local Setup
Install Stable Diffusion on your computer. Usage with AUTOMATIC1111 WebUI.