Full access is free during Beta. A paid subscription will be offered after Beta.

Google AI Studio — User Guide

Gemini in AI Studio.

Visit website
Freemium
Strengths
  • Gemini 1.5 Pro free quota is generous (2 requests per minute)
  • Supports ultra-long context (1 million tokens)
  • Multi-modality: comprehensive processing of text, pictures, videos, and audio
  • Apply for API Key directly without waiting for review
  • Prompt debugging interface is friendly and suitable for quick testing
Best for
  • Test Gemini model capabilities for free
  • Apply for Gemini API Key for development
  • Multimodal tasks: image understanding, video analysis
  • Very long document processing (1 million token context)
  • Build Gemini-based applications

Get started quickly and apply for API

Google AI Studio is the official channel to obtain Gemini API Key, and registration is completely free.

Scenario

Apply for API Key and call Gemini

Prompt example
Steps:
1. Visit aistudio.google.com and log in with your Google account
2. Click "Get API key" in the upper left corner
3. Click "Create API key" and select the project
4. Copy the generated API Key

Python call example:
```python
import google.generativeai as genai

genai.configure(api_key="your-api-key")
model = genai.GenerativeModel("gemini-1.5-pro")

response = model.generate_content("Explain what quantum entanglement is")
print(response.text)
```
Output / what to expect
Get an API Key in minutes, The free version can be called 2 times per minute. 50 requests per day, Sufficient for personal projects and learning.
Tips

The free version has lower rate limits, and production applications need to be upgraded to the paid version.

Scenario

Multimodal image understanding

Prompt example
```python
import google.generativeai as genai
from PIL import Image

genai.configure(api_key="your-api-key")
model = genai.GenerativeModel("gemini-1.5-pro")

#Load images
image = Image.open("chart.png")

# Mixed image and text input
response = model.generate_content([
    "Please analyze this chart, extract key data, and provide business insights",
    image
])
print(response.text)
```
Output / what to expect
Gemini analyzes chart content, Extract data trends and key indicators, Provide a business-level interpretation, Strong multi-modal understanding ability.
Tips

Gemini has strong image understanding capabilities and supports JPG, PNG, GIF, WebP and other formats.

Starter & above

The rest of this guide

Additional scenarios and the full comparison table are included with Starter and above. Sign in with an eligible account to load them.

You're on the Free plan. Upgrade to Starter or higher to unlock the rest of this guide—additional scenarios and the full comparison table.

Loading full guide…