To use AI to prototype a one-page web app, write down one job the page must do, give that brief to Google AI Studio's Build mode, and test the result before asking for a revision. If you have an app idea but have never built one, this gives you a working question to answer: does the page behave as you intended?
This article uses a small meeting-cost calculator as an example. A person enters the number of attendees, the meeting length in minutes, and an hourly cost per attendee; the page calculates an estimated total. The example is deliberately narrow. It needs no account, database, payment flow, or AI feature inside the finished app. Those would make it harder to tell whether the first prototype works.
The linked sources were checked in 2026-11. Google's Build mode documentation, pricing page, and billing guide describe separate rules for working in AI Studio, using the Gemini API, and publishing an app. Check them again before adding paid services or giving other people access.
How do you start building a web app with AI?
Check access and choose Build mode
Open Google AI Studio and select Build mode. Google's documentation says the mode accepts a plain-language description, generates app files, and shows a live preview. Use the platform picker to choose a web app rather than a native Android app. The web option is the one needed for a page someone could later open in a browser. Google's Build mode documentation identifies React as the default web frontend and describes a Node.js server-side runtime, though this calculator does not need a server feature.
You need an eligible Google Account in a supported region. Google's access guidance says users must be at least 18 and that some accounts or projects may require verification. A managed Workspace account may have access restrictions. Resolve an access error before planning around the tool; a prompt cannot fix an account or regional restriction.
Write a brief with a visible result
Start with a sentence about the user action, then specify the inputs, calculation, output, and behavior when an input is invalid. For this example, the brief could read: "Build a single-page meeting-cost calculator. Ask for attendees, duration in minutes, and hourly cost per attendee. Show estimated cost as attendees multiplied by duration divided by 60, multiplied by hourly cost. Recalculate when the user presses Calculate. Keep the entered values visible. Reject blank fields, negative numbers, zero attendees, and zero or negative duration with a clear message beside the relevant field. Do not add sign-in, storage, external APIs, or extra pages."
The brief says what must happen rather than prescribing colors or a framework. It also draws a boundary around the build. If the generated app adds a history panel or asks users to create an account, you can identify that as outside the brief. Without that boundary, a polished interface can distract from an incorrect calculation.
Before generating anything, write down an expected result you can calculate independently. For a meeting with 4 attendees, 30 minutes, and an hourly cost of $20 per attendee, the expected total is $40. Use that as a check, not as proof that every possible input works. Keep the test numbers beside your brief so you are comparing the app against your own requirement rather than accepting whatever the preview displays.
How do you generate the first prototype in Google AI Studio?
Run the brief and inspect the preview
Paste the brief into Build mode and run it. Google's Build mode guide says the generated files appear alongside a live preview, and the Code tab lets you inspect what was produced. First look for the three requested inputs, a Calculate control, an output, and a place for errors. Then enter the known example. If the total is wrong, record the observed result and the input values. That gives the next request something precise to fix.
Check the page at a narrow browser width as well as a wide one. You are looking for practical defects: a field hidden off screen, a label that no longer identifies its input, or a result that appears far from the action that produced it. This is a prototype review, so note these issues without turning the first pass into a long styling exercise.
Open the Code tab if the preview does something surprising. You do not need to understand every line to notice whether the calculation uses minutes or hours, whether there is a second page you did not request, or whether the app sends information somewhere. If you cannot tell what a generated dependency or network request is for, make that a review item. A preview shows behavior, but it does not explain everything the code might do.
How do you ask AI for one useful revision?
Change one behavior, then retest it
Suppose the first version accepts a blank hourly cost and displays $0. Ask for one focused change: "When hourly cost is blank, show 'Enter an hourly cost' beside that field and do not display a calculated total. Keep the existing calculation and layout unchanged." Google's Build mode documentation says you can request changes through its chat panel. It also describes an annotation mode for pointing at a specific part of the interface, which may help when the problem is visual.
The revision request names the input, the expected response, and what should stay intact. Compare the new preview with your earlier working case. A fix for blank input is incomplete if the $40 example now produces a different result. Generated changes can affect neighboring behavior, so repeat at least one passing test after every revision.
Resist combining unrelated requests such as changing colors, adding charts, and improving validation in the same message. If the result breaks, you will have a harder time identifying which change caused it. Keep a short record of the original brief, the issue you observed, the revision you requested, and what the preview did afterward. That record is more useful to a future developer than a claim that the app "mostly works."
How do you test a one-page AI-generated app?
Check ordinary inputs and boundaries
Run the known example first. Then try a shorter meeting, a longer one, and a fractional hourly cost if the form permits it. Decide how the result should be rounded before judging the display. If the page shows currency, check whether the number is readable and whether its label makes clear that it is an estimate. A calculator that returns a plausible number with no units leaves the user to guess what was calculated.
Try boundary inputs deliberately: one attendee, a one-minute meeting, an empty duration, zero attendees, a negative hourly cost, and letters in a numeric field. The brief specifies what should happen for several of these. For anything it leaves open, decide on a rule rather than letting the generated interface decide for you. For example, you might allow an hourly cost of zero for a volunteer meeting, even though the draft brief treats it as valid while rejecting negative values.
Test what happens after an error
An error message is only part of the test. Enter an invalid value, confirm that the page does not show a misleading total, correct the value, and calculate again. The message should clear when the input is fixed. Watch for a previous valid result that stays on screen after a failed calculation; without context, someone could mistake it for the result of the invalid entry.
Refresh the preview and see what happens to the entered values. The brief did not ask for saved data, so losing values on refresh may be acceptable. What matters is that you make the decision explicitly. Similarly, test the form with a keyboard: can you reach each input and the Calculate control, and can you understand the error without relying on color alone? Record any problem rather than assuming a visually tidy page is accessible.
What should you check before sharing or publishing?
Understand the free tier and usage limits
Google's pricing page, checked in November 2026, says Google AI Studio usage is free of charge in available regions. Its billing guide says new accounts begin on a free tier with access to certain models, subject to their limits. That is enough reason to try a small prototype, but it is not an unlimited-use promise. Model access and rate limits vary; the rate limits page points users to their active limits in AI Studio. Check your account's project and billing status before using paid API features.
This calculator does not need to call a model after the page has been generated. If you later add an AI feature inside the app, treat its API usage as a separate cost and capacity decision. Google's Build mode documentation says calls made by people using a shared app count toward the owner's usage limits and that paid models may incur costs. Do not assume that free access to the editing workspace means free operation for every shared or published app.
Treat a share link and a live app differently
Google says an AI Studio app is private by default and can be shared with other users. Its Build mode documentation says people you share it with may see its code and fork it. Before sharing, remove private examples, credentials, and anything you would not want a reviewer to copy. Use invented meeting figures for feedback rather than real employee pay information.
Publishing is a separate step. Google's deployment guide describes a Cloud Run publishing route. It says eligible accounts can publish up to two full-stack apps through the Google Cloud Starter Tier without setting up a billing account; eligibility and resource limits apply. Standard deployment requires a linked Google Cloud project with billing enabled. Cloud Run charges may apply depending on usage. Neither route is needed to complete this prototype, so leave publishing until the app has been reviewed.
If the team wants to work on the code outside AI Studio, Google's Build mode guide describes downloading a ZIP file and connecting a GitHub repository. For an app that uses the Gemini API, the guide says an externally hosted ZIP needs its `GEMINI_API_KEY` set in the hosting environment. That is a later development task, not a reason to add a key to the page itself. Decide who will own the code, hosting account, and ongoing usage before taking that route.
How do you choose what to use after the prototype?
Google AI Studio for the first build
Google AI Studio lets people build full-stack web apps from prompts and iterate through chat or visual annotations, as well as create native Android app projects. Apps can use serv
Freemium · Development
Choose Google AI Studio when your immediate goal is to turn a written requirement into a browser preview and revise it in the same place. It runs in the browser, and the free access described on Google's pricing page is suitable for exploring eligible features within their limits. It is a poor stopping point if you need proof that the generated code is secure, accessible, maintainable, and ready for real user data. The preview cannot make those judgments for you.
Visual Studio Code for hands-on code review
Visual Studio Code is the world's most popular code editor featuring AI-powered IntelliSense, GitHub Copilot integration, and intelligent debugging tools that enhance developer pro
Freemium · Development
Choose Visual Studio Code if someone on the team can inspect and change the exported project locally. Microsoft's installation guide lists Windows, macOS, and Linux and says the core editor needs no account; the download page offers it free. AI features are optional and have separate account and usage rules. Its drawback for a beginner working alone is that opening an exported project does not explain the code or provide the same prompt-to-preview starting point. It is useful when a developer is ready to review the calculation, add tests, and take responsibility for the next version.
Let the next choice follow the risk. If the budget is zero and the goal is private feedback on a simple page, check the active limits and terms before inviting anyone. Google says AI Studio and the Gemini API are for professional or business development, not consumer use. If sharing makes the app an API client, making it available to users in the EEA, Switzerland, or the UK requires Paid Services. If a team needs to maintain code, plan a developer review and an export path. If the app will handle personal data, start with a>Sources
Google AI Studio: official source · listing on Browse AI Tools
