Google AI Studio is a free, browser-based workspace for trying Gemini models, refining prompts, and turning them into working code. It is the quickest way to find out what the Gemini API can do without writing a line of Python, and it is where many developers get their first API key. This guide explains what AI Studio is, what each part of the interface does, how to move a prompt from experiment to code, how Build mode creates apps from a description, and what to know about limits, privacy, and cost.
What Google AI Studio Is
AI Studio is a developer playground for the Gemini API. It gives you direct access to the same models and settings you would use in your own code, which makes it different from the consumer Gemini app, where the interface hides most controls. In AI Studio you choose the model, write a system instruction, adjust output length and reasoning effort, switch tools on and off, and see exactly how many tokens a request used. Because the settings map directly onto API parameters, a prompt that works in the browser can be exported and reproduced in code with little change. It is a prototyping tool rather than a production host: you test and design here, then run your application elsewhere.
Getting Started
Go to aistudio.google.com and sign in with a Google account. You land on a home screen with quick-start cards and a sidebar. Choose to create a new prompt, pick a model, type a message, and run it. No billing is needed to begin, since Google offers free usage with rate limits on supported models. Availability of the free tier, the specific models included, and the limits all vary by region and change over time, so treat any figure you read, including in this article, as a snapshot and check the current pricing and limits page.
Figure 1 — The main areas of Google AI Studio
The layout and names change as Google updates the product, so use this as a map rather than an exact description of what you will see.
Creating an API Key
When you are ready to call Gemini from your own code, create a key from the get API key option or from the dashboard. Give it a name, attach it to a project, and copy it into an environment variable, since it is shown to you as a credential that anyone could use. Treat it like a password: do not commit it to a repository, do not paste it into client-side JavaScript, and rotate it if it leaks. Separate keys for development and production make it easier to track usage and revoke access without breaking everything.
The Run Settings Panel
The settings panel beside the chat is the most educational part of AI Studio, because each control matches an API setting. The model selector lets you switch between Gemini variants mid-session, so you can compare a flagship model with a faster, cheaper one on the same prompt. The system instruction sets a persona and rules that apply to the whole conversation, and it is the most underused feature: a few clear sentences about tone, format, and boundaries often improve results more than repeated reminders in every message. Temperature controls randomness, and for newer reasoning-oriented models it is wise to leave it at the default unless testing shows a benefit. Output length caps the response, and a thinking or reasoning level setting trades speed and cost against depth on supported models. Safety settings adjust content filtering thresholds.
Tools You Can Switch On
AI Studio exposes several tools as toggles. Grounding with Google Search lets the model use live search results for questions about current events, and URL context lets it read pages you provide. Code execution lets the model write and run code to calculate answers. Structured output constrains the response to a JSON schema you define, which is essential if another program will read the answer. Function calling lets you declare functions so you can test how the model decides when to call them. Trying each of these in the browser is a fast way to learn what is possible before you implement it in code, and the response panel shows token usage so you can estimate cost at the same time.
Working with Files and Media
You can attach images, audio, video, and documents to a prompt and ask questions about them. This is a convenient way to test whether Gemini handles your material well, such as a scanned invoice, a screen recording, or a long PDF, before you build a pipeline around it. Large files consume many tokens, so check the usage figure. If an experiment works, the same input types are available through the API, with a Files API for larger uploads.
Iterating on a Prompt
Treat the playground like a lab bench. Change one thing at a time, run the same input several times because outputs vary, and note what improves. Use compare mode, where available, to run the same prompt against two models side by side. Use temporary chats when you do not want an experiment saved. Keep a small set of realistic test inputs, including awkward ones, and re-run them whenever you change the system instruction. When a prompt consistently produces what you want, save it with a clear name so that you can find it later, and record why you made each change.
From Prompt to Code with Get Code
The Get Code button converts your current prompt, model, system instruction, and settings into code for Python, JavaScript, or other languages. That removes the guesswork of translating a working experiment into an API call. For Python, the generated code uses the google-genai SDK, and you run it after installing the package and setting your key as an environment variable.
from google import genai
from google.genai import types
client = genai.Client()
response = client.models.generate_content(
model="gemini-3.8-flash",
contents="Summarise this support ticket in one sentence.",
config=types.GenerateContentConfig(
system_instruction="You are a concise support analyst.",
),
)
print(response.text)
The model ID is an example, so use the one your experiment used. Review the exported code before deploying it, move the key into your secrets manager, and add error handling and logging, which the exported snippet leaves out.
Build Mode
Build mode turns a plain-language description into a working application. You describe the app, such as a recipe generator, a flashcard tool, or a simple dashboard, and AI Studio generates the code, runs it in a preview, and lets you refine it by chatting. You can usually export the result, for example to a code repository or as a downloadable archive. It is excellent for prototypes and demos, and for learning how an AI feature might look inside an interface. Treat the output as a starting point, not a finished product. Read the generated code, check how it handles your API key, and never ship a key inside browser code, because anyone can extract it. Add authentication, input validation, rate limiting, and tests before real users touch it.
Stream Mode
Stream mode lets you hold live voice or video conversations with Gemini, which showcases the real-time capabilities of the Live API. It is useful for judging latency and conversational quality before you commit to building a voice feature. Real-time models have different pricing and limits from text models, so review them before planning a production service.
Free Tier, Privacy, and Cost
Free usage is perfect for learning, but it has rate limits that can interrupt a longer session, and the data terms differ between free and paid use. Historically, Google’s terms have allowed content submitted on free usage to be used to improve its products, while paid usage is treated differently, so read the current terms before pasting confidential, personal, or customer data into AI Studio. If privacy matters, use a paid configuration with the appropriate settings, or use Vertex AI, which offers enterprise data controls. The dashboard shows your usage and, if you have linked billing, your costs, so check it regularly during experiments with large files or long contexts.
AI Studio, the Gemini App, and Vertex AI
People often confuse three products. The Gemini app is the consumer assistant. AI Studio is the developer playground and key management tool for the Gemini API, aimed at individuals and small teams. Vertex AI is Google Cloud’s enterprise platform, which serves Gemini with Google Cloud identity, networking, and governance. They use related models, but you choose between them based on audience and requirements: AI Studio for fast experimentation, Vertex AI for managed enterprise deployment.
Common Mistakes
- Pasting sensitive data into free usage. Check the data terms first.
- Exposing the API key. Keep it server-side and out of repositories.
- Trusting generated apps blindly. Review, secure, and test Build mode output.
- Changing many settings at once. Change one variable per experiment.
- Ignoring token usage. Large media and long contexts add up quickly.
- Copying exported code unchanged. Add error handling, logging, and secrets management.
Frequently Asked Questions
- Is Google AI Studio free?
- Google offers free usage with rate limits on supported models, and paid usage through billing for higher limits. Availability varies by region and model, so check the current pricing page.
- How do I get a Gemini API key?
- Open AI Studio, choose the get API key option or open the dashboard, create a key for a project, and store it as an environment variable in your code.
- Can I build an app in AI Studio without coding?
- Build mode generates working apps from a description, which is great for prototypes. Review and harden the code before any real deployment.
- Is AI Studio the same as Vertex AI?
- No. AI Studio is a lightweight developer playground for the Gemini API. Vertex AI is Google Cloud’s enterprise platform with additional governance and networking options.
Last updated: November 2026. Interface names, limits, and terms change often, so confirm details in Google’s AI Studio and Gemini API documentation.