Contents
Google AI Studio now builds complete apps from a text description, not just model experiments. When the app is ready it offers to publish it on Cloud Run. If you want it on your own domain and on fixed-cost hosting, the thing to know is that what you built is not a static page.
What does Google AI Studio produce?
According to the Build mode documentation, a web app is a full-stack environment in two parts:
| Part | What it is | Where it runs |
|---|---|---|
| Client side | A web front end, React by default | Served by the server itself |
| Server side | A Node.js runtime for secure calls, databases and npm packages | A long-running Node.js process |
The Gemini key is stored as a server-side secret named GEMINI_API_KEY and never enters browser code. The documentation also says AI Studio can provision Firebase for the app: a Firestore database and sign-in.
How do you take the code out?
- Sync with GitHub: a two-way link, so what you change in AI Studio reaches the repository and what you change locally comes back.
- ZIP file: download the code to work on it in your editor or run it elsewhere.
Which plan do you need?
The AI and developer plans, because the app needs Node.js on the server. The ordinary plans serve static files and PHP, which is not enough.
How it runs on ArabyHost
- Download the code or pull it from GitHub.
- Find the build command and the startup file in the
scriptssection ofpackage.json. If it is not clear, ask AI Studio: “What is the build command, and what is the server’s startup file in production?” - Build on your computer:
npm ci, thennpm run build. - Upload the project without
node_modulesto a folder outsidepublic_html. - Create the app from Software, then Setup Node.js App, in cPanel: Node.js 24, with the built server file as the startup file.
- Add the key under Environment variables:
GEMINI_API_KEY=your-key
NODE_ENV=production
- Click Run NPM Install, then Restart, and try the app.
Make sure the server listens on process.env.PORT, not a fixed port. Details are in the Node.js app guide and the environment variables guide. If you get a 503, see Node.js app returns 503.
What stays at Google?
- Gemini API: the model runs at Google, and your app calls it over HTTPS with your key. Usage is charged to you for every visitor.
- Firebase: if AI Studio provisioned Firestore and sign-in, they are services at Google that the app connects to. Add your new domain to the authorised domains in the sign-in settings.
Limits to know
- Real-time features: the documentation mentions real-time collaborative experiences inside AI Studio. Test them well on your hosting before relying on them; they may need a different environment.
- No GPU: models are called through the API and do not run locally.
- Outgoing connections are HTTPS only.
- No Docker and no root. If your project depends on a container image, it belongs on Cloud Run or a VPS.
- Android apps built by AI Studio are not websites and are not hosted here.
On ArabyHost
Node.js apps run on the AI and developer plans through Passenger, with SSH in an isolated environment, Git and deploys from GitHub, and environment variables kept out of the code. The SSL certificate is free and automatic, backups are daily, and the Araby AI assistant reads the error log and explains it. AI apps in general are covered on this page.
The cost is fixed: prices are shown in your currency on the pricing page, and the renewal price is the price you signed up at. Other tools are covered in vibe coding hosting.
FAQ
Can I run a Google AI Studio app outside Cloud Run?
Yes. Google's documentation says you can download the app as a ZIP file and host it elsewhere, and that you then need to set the GEMINI_API_KEY environment variable in the hosting environment.
Does an AI Studio app run on ordinary shared hosting?
Not as static files, because Gemini calls are made from server code so the key is never shown to visitors. It needs hosting that runs Node.js as a long-running process.
Is the Gemini API free after publishing?
Usage is charged to your own key, and every visitor to the app draws on its quota. Check your key's limits and Gemini API pricing on Google's pages before opening the app to the public.