Vibe Coding6 min read

    Google AI Studio Vibe Coding: Build Your First App

    How to vibe code an app in Google AI Studio's Build mode, step by step. What it sets up for you, and the one cost trap to check before you share.

    James Killick

    Google AI Studio vibe coding means using Build mode. You describe an app in plain English. Gemini writes the code. A live preview appears on the right. When it works, you deploy it to Google Cloud Run or sync it to GitHub.

    Here's how to build your first app, and what to check before you share it.

    What is Build mode in Google AI Studio?

    Google describes Build mode as a way to vibe code and deploy apps that use the latest Gemini features, like image generation and the Live API. By default you get a web app with a React front end and a Node.js back end. You can also choose a native Android app (Google AI Studio docs).

    If vibe coding is new to you, start with what is vibe coding.

    How to build an app in Google AI Studio

    Step 1: Open Build mode

    Go to Google AI Studio and open Build mode. Pick web app (the default) or Android.

    Step 2: Describe the app

    Write what you want in the prompt box. Be plain and specific. Say who uses it and the one thing it does.

    You have other ways to start too:

    • AI Chips add features like image generation or Google Maps data to your prompt.
    • I'm Feeling Lucky has Gemini suggest an idea.
    • App Gallery lets you copy someone else's app and change it.
    • Import from GitHub brings in code you already have.

    Step 3: Check the preview and the code

    Run the prompt. Files get written and the preview shows up on the right. Open the Code tab to see what was made. You don't have to read it all. But look at it once, so it isn't a black box.

    Step 4: Change things by chat or by pointing

    Ask Gemini for changes in the chat panel. Or use annotation mode: highlight a part of the app and say what you want changed. Pointing beats describing when you're fixing how something looks.

    Step 5: Keep your keys safe

    For web apps that use the Gemini API, AI Studio sets up your Gemini API key as a secret on the server side. It's never put in the front-end code. Store any other keys in the Secrets panel in Settings, not in your prompt.

    Step 6: Save a copy outside Google

    Connect GitHub for two-way sync, or download a ZIP. Do this before you build anything you care about. Then your code isn't stuck in one tool.

    Step 7: Deploy

    When it works, deploy to Cloud Run. Google notes that Cloud Run pricing may apply based on usage (Google AI Studio docs). Our full guide to choosing a platform covers other places to host.

    What AI Studio sets up for you

    This is where AI Studio stands out from simpler builders. The docs say it can:

    • Add a Node.js server for secure API calls and extra npm packages.
    • Set up Firebase, with a Firestore database and "Sign in with Google".
    • Connect to Google Workspace apps like Gmail, Sheets and Calendar, and handle the sign-in setup.

    So you can go beyond a pretty front end to an app that saves data and knows who's using it.

    The cost trap to check before you share

    Read this part before you send a link to anyone.

    Google's docs say that when you share an app, its API calls count toward your usage limits. If you use paid models, costs may apply. They also say a deployed Cloud Run app uses your API key for all users' Gemini calls.

    In plain words: every person who uses your app spends your Gemini allowance. A popular app can cost you real money, or hit your limits.

    So before you share a link, decide how many calls each person may make. Then check your usage limits and keep an eye on your balance.

    Check the Gemini API pricing page first. It says you can start free with limits, then move to paid plans. Prices change, so we don't quote them here. Then decide who may use the app, and how many calls each person gets.

    Where it fits, and where it doesn't

    AI Studio is a strong pick when your app leans on Gemini itself: images, voice, maps, or chat. It's a weaker pick if you want a simple marketing site, or you don't want to depend on Google's tools.

    Not sure it's the right one? Compare it with the others in best vibe coding platforms, or read Lovable vs Bolt if you want a standard app builder.

    FAQ

    Is Google AI Studio good for vibe coding?

    Yes, for apps built around Gemini. Build mode writes the code, shows a preview and can deploy for you. Check the sharing and cost notes above before you let others use it.

    Can I export my AI Studio app?

    Yes. You can sync to GitHub or download a ZIP. If you run the ZIP somewhere else, you need to set the GEMINI_API_KEY environment variable in your new host.

    Do I need to code?

    No, to get started. You'll still make the decisions: what the app does and who can use it. New to AI tools overall? What to learn first sets a sensible order.

    Your next step

    Open Build mode and write one sentence: "An app for [who] that [does one thing]." Run it. Then open the Code tab and look at what it made.