Browse documentation

AI PROVIDER SETUP

Get a Gemini API Key and Connect FlutterFever Studio

Create your own Google AI Studio credential, then connect the AI app agent for the current workspace session.

3 min readPractical guide
In this guide

1. Create a key in Google AI Studio

  1. Open Google AI Studio API keys and sign in to your Google account.
  2. Choose an existing project or create/import a project you are allowed to use.
  3. Choose Create API key and select the intended project.
  4. Give the key a recognizable name and copy it privately.
  5. Review the project's verification, permissions and current API limits before generating.

The Gemini developer key belongs to a Google Cloud project. Use a Gemini API credential, not a Firebase browser configuration or a key for another Google service. If your organization prevents project/key creation, ask its administrator instead of removing security policies.

Follow Google's current key instructions if the console changes. This guide never requires you to paste a real credential into a public document.

2. Connect the key in App Studio

  1. Open AI assistant on the right, then choose Connect AI or Connection settings.
  2. Choose Google Gemini.
  3. Review Model ID. The current Studio default is gemini-3.8-flash; model access depends on your project.
  4. Paste the complete credential into Your API key without quotes or line breaks.
  5. Choose Done, enter a small task and allow the relevant prompt/design to be sent.
  6. Choose Generate a proposal, then review it before applying.

Start with a request such as: Improve the heading on this screen; preserve every route, input binding and action. The AI app agent should propose a focused change rather than replace a working application without your review.

Choose Done to save the connection in this browser tab, including refreshes. Remember on this device optionally retains it for up to 30 days. Credentials stay separate from saved projects and exports. Use only a trusted device because site scripts can access browser storage. See session and data handling for details.

3. Check model access, not only the key

A successful model-list lookup does not prove that generation is enabled for every listed model. A project can authenticate successfully and still receive an error when generating with a retired or restricted model.

For example, the previous Studio default gemini-2.5-flash can return HTTP 404 for new users. Use an accessible current text/JSON model in Connection settings and confirm it in the model reference. Studio does not silently switch providers or start paid retries.

If a request takes too long, wait before retrying: the provider may continue processing after a client timeout. Ask for one smaller change. Never assume that a new key in the same project creates new quota.

4. Understand the error shown by Studio

ErrorWhat to check
400 / invalid keyRecopy an active complete key and verify the chosen provider.
403 / permissionCheck API restrictions, project verification, allowed origins, region and model access.
404 / model unavailableChoose a current model available to your project; this is not automatically a bad key.
429 / quotaCheck active limits and reset information; a zero generation quota may need an eligibility or billing review.
Timeout / empty outputWait before retrying and request a smaller proposal.

Check your active Gemini rate limits. Free visual editing does not guarantee free or unlimited provider access.

5. Keep the credential private

Do not put a key in an app text widget, public URL, screenshot, exported example or shared chat. If it has been exposed, revoke it in the provider console and create a replacement. Removing a field or closing a tab does not revoke a key at Google.

After an AI update, use Preview to check the actual interaction, then save a JSON checkpoint. Continue with prompt and proposal review or try the first-app AI exercise.

TRY WHAT YOU LEARNED

Make one useful change.

Open the example, test a flow, and keep an editable source ZIP.

Open the example