Getting Started with Google AI Studio
Access the platform, understand the interface, create your first prompt, and generate your Gemini API key in minutes.
Accessing Google AI Studio
Getting started is straightforward:
- Navigate to aistudio.google.com
- Sign in with your Google account (any Gmail or Google Workspace account works)
- Accept the terms of service if prompted
- You'll land on the main dashboard with options to create new prompts
Interface Overview
The Google AI Studio interface is organized into several key areas:
Left Panel — Navigation
- Create New: Start a new freeform, structured, or chat prompt
- My Library: Access your saved prompts and tuned models
- Prompt Gallery: Browse pre-built prompt examples from Google
Center — Workspace
- Prompt input area: Where you write your prompts and system instructions
- Response area: Where the model's output appears
- Examples table: (Structured prompts only) Define input/output pairs
Right Panel — Settings
- Model selector: Choose between Gemini Pro, Flash, and other available models
- Temperature: Controls randomness (0 = deterministic, 2 = very creative)
- Top-K / Top-P: Fine-tune response diversity
- Max output tokens: Limit response length
- Safety settings: Configure content filtering thresholds
Creating Your First Freeform Prompt
Let's create a simple freeform prompt to see AI Studio in action:
- Click "Create new prompt" or the "+" button
- Select "Freeform prompt"
- In the prompt area, type a request like:
Write a brief explanation of how neural networks work,
suitable for a complete beginner. Use an analogy to
make it easy to understand.
- Click the "Run" button (or press Ctrl+Enter)
- Watch the model generate a response in real-time
Exploring Chat Mode
Chat prompts let you build multi-turn conversations:
- Create a new "Chat prompt"
- Add a system instruction at the top (e.g., "You are a helpful coding tutor")
- Type your first message in the user input
- After receiving a response, continue the conversation with follow-up messages
- The model maintains context across the entire conversation
Structured Prompts
Structured prompts use example tables to teach the model patterns:
- Create a new "Structured prompt"
- Define your input and output columns (e.g., "Product Review" and "Sentiment")
- Add a few examples in the table:
- "Great product, love it!" → "Positive"
- "Terrible quality, broke immediately" → "Negative"
- "It's okay, nothing special" → "Neutral"
- Add a test input and run to see the model apply the pattern
Getting Your API Key
When you're ready to use Gemini in your own applications:
- Click "Get API key" in the left navigation panel
- Click "Create API key"
- Select an existing Google Cloud project or create a new one
- Copy the generated API key and store it securely
Running Your First API Call
With your API key, you can test a quick call using curl:
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{
"parts": [{"text": "Explain AI in one sentence."}]
}]
}'
💡 Try It: Create All Three Prompt Types
Create one of each prompt type in Google AI Studio: a freeform prompt asking for creative content, a structured prompt for classification, and a chat prompt with a system instruction. Notice how each type guides you toward different use cases.
Lilly Tech Systems