How to Set Up Google AI Studio and Use the Gemini API (2026 Guide)
Most people use AI through a chat window. But if you want to build AI into your own tools, apps, automations, or workflows, you need to go one level deeper, to the API. Google AI Studio is the friendliest on-ramp to doing exactly that. It is a free, browser-based playground where you can experiment with Google’s Gemini models, design and test prompts, and then get an API key to plug Gemini into your own projects.

This guide takes you from never having touched an AI Studio to understanding how to test prompts and use the Gemini API in your projects, explained in plain language for beginners. You do not need to be a developer to understand the concepts, though using the API in real applications does involve some coding (or a no-code tool that handles it for you).
—
What Google AI Studio and the Gemini API Are
Let us clear up the terms first:
- **Google AI Studio** is a free web tool where you can experiment with Gemini, Google’s family of AI models. You type prompts, adjust settings, and see how the model responds, all in your browser, no coding needed to experiment.
- **The Gemini API** is the way to access those same models programmatically, from your own software, website, automation, or app. An API (Application Programming Interface) is simply a way for one piece of software to talk to another.
- **An API key** is your personal access pass. It identifies you to Google so you can use the API, and tracks your usage.
In short: AI Studio is where you experiment and design; the API is how you put Gemini to work in real projects.
—
Why This Matters
Using AI through a chat window is great for personal tasks. But the real power comes when you embed AI into things:
- A chatbot on your website that uses Gemini to answer questions
- An automation that uses Gemini to categorise or summarise incoming emails
- A custom tool that processes data with AI
- An app feature powered by AI
All of these need the API, not the chat window. Google AI Studio is where you learn, test, and get the key to make it happen, and Google offers a generous free tier to start.
—
Step 1: Access Google AI Studio
- Go to **aistudio.google.com**
- Sign in with your Google account
- Accept the terms when prompted
- You will land in the AI Studio interface
That is it, no payment or complex setup required to begin experimenting. The free tier is enough to learn and build small projects.
—
Step 2: Explore the Interface
AI Studio’s main areas:
- **Prompt area:** Where you type prompts and see responses
- **Prompt types:** Options for different kinds of prompts (chat, structured, etc.)
- **Model selector:** Choose which Gemini model to use (different models balance speed, capability, and cost)
- **Settings panel:** Adjust parameters like temperature (creativity), output length, and safety settings
- **Get API key:** The button to generate your API key when you are ready to build
Take a few minutes to look around. It is designed to be approachable.
—
Step 3: Run Your First Prompt
- In the prompt area, type a request, for example: “Write a short, friendly welcome message for a Singapore cafe’s WhatsApp auto-reply.”
- Click **Run**
- Gemini generates a response
- Experiment, change your prompt, try different requests, and see how the output changes
This is the same kind of interaction as a chatbot, but here you have more control over the settings.
—
Step 4: Understand and Adjust the Settings
The settings panel lets you fine-tune behaviour. The key ones to know:
- **Temperature:** Controls randomness and creativity. Lower (e.g. 0.2) gives focused, consistent answers, good for factual or structured tasks. Higher (e.g. 0.9) gives more creative, varied answers, good for brainstorming and creative writing.
- **Maximum output length:** Caps how long the response can be.
- **Model selection:** Faster, lighter models are cheaper and quicker; more powerful models handle complex tasks better. Choose based on the job.
- **Safety settings:** Control content filtering levels.
Experiment with temperature to feel the difference, this single setting noticeably changes the character of the output.
—
Step 5: Design and Save Your Prompt
AI Studio is ideal for crafting and refining a prompt before you use it in a real project:
- Write a detailed prompt with clear instructions
- Test it with different inputs
- Refine until it consistently produces what you want
- Save the prompt so you can return to it
For example, you might design a prompt that takes a customer enquiry and drafts a polite reply, testing it against various enquiries until it works reliably. This “prompt engineering” in AI Studio is the smart way to get a prompt right before building it into an app.
—
Step 6: Get Your API Key
When you are ready to use Gemini in your own project:
- Click **Get API key** (usually in the top area or menu)
- Create a new API key (you may need to associate it with a Google Cloud project, AI Studio guides you through this)
- Copy the key and store it somewhere safe and private
Critical security note: Your API key is like a password. Anyone with it can use the API on your account, potentially running up charges. Never share it publicly, never put it directly in public code, and never commit it to a public repository. Store it securely.
—
Step 7: Understand How to Use the API
Once you have your key, you use it to call the Gemini API from your project. There are two broad paths:
With code (for developers): Google provides libraries for languages like Python and JavaScript. A basic call sends your prompt and API key to Gemini and receives the response. Google’s documentation includes copy-paste starter examples. Even a beginner can follow a starter snippet to make a first call.
With no-code tools (for non-developers): Tools like Make.com, Zapier, and n8n have Gemini or Google AI integrations. You paste in your API key, and the tool handles the technical calls. This lets non-coders use the Gemini API inside automations without writing code, for example, an automation that sends incoming form submissions to Gemini for categorisation, then files them accordingly.
For most non-technical users, the no-code path is the practical way to put the Gemini API to work.
—
Step 8: Connect Gemini to a No-Code Automation (Example)
Here is the concept of using your Gemini API key in Make.com:
- In Make.com, create a scenario with a trigger (e.g. a new email or form submission)
- Add a **Google Gemini** (or Google AI) module
- Paste your API key to connect it
- Configure the prompt, mapping in data from the trigger (e.g. the email content)
- Add a final action to do something with Gemini’s output (save it, send it, notify you)
Now your automation uses Gemini’s intelligence without you writing any code. This is how non-developers harness the API in practice.
—
Understanding Costs
Google offers a free tier for the Gemini API that is generous enough for learning and small projects. Beyond the free tier, you pay based on usage, typically measured in “tokens” (pieces of text processed). The key points:
- Start on the free tier to learn and prototype, no cost
- More powerful models cost more per use than lighter ones
- Costs scale with how much text you send and receive
- Monitor your usage in Google AI Studio or Google Cloud to avoid surprises
For most small projects and experiments, costs are very low or free. Heavy production use is where costs grow, and at that point you can budget accordingly.
—
Tips for Working with AI Studio and the Gemini API
Prototype in AI Studio first. Always perfect your prompt in the Studio before building it into a project. It saves time and money.
Choose the right model. Do not use the most powerful (and expensive) model for simple tasks. Match the model to the job.
Protect your API key. Treat it like a password. If it is ever exposed, delete it and generate a new one.
Start with the free tier. Learn and experiment for free before committing to any paid usage.
Use no-code tools if you do not code. You do not need to be a developer to use the Gemini API; no-code platforms bridge the gap.
Read Google’s documentation. Google’s quickstart guides are clear and have ready-to-use examples.
—
Getting Started Today
- Go to aistudio.google.com and sign in with your Google account.
- Run a few prompts to get comfortable with the interface.
- Experiment with the temperature setting to see how it changes responses.
- Design and refine a prompt for a real task you have.
- When ready, generate an API key and store it safely.
- Connect it to a no-code tool like Make.com, or follow Google’s starter code if you write code.
Google AI Studio is the most beginner-friendly way to go beyond chatting with AI and start building with it. Whether you want to add AI to your website, power an automation, or simply understand how AI APIs work, it is the perfect place to start, free, in your browser, and designed to make a complex topic approachable.
—
Want help building real AI tools and automations for your Singapore business? The AgentSetupSG playbook series gives you practical, step-by-step setups.



