Browse documentation

AI PROVIDER SETUP

Create a Groq API Key for the Flutter AI App Builder

Use a Groq account credential for optional AI proposals while keeping your visual project and source independent of the connection.

3 min readPractical guide
In this guide

1. Create a key in Groq Console

  1. Open Groq Console API keys and sign in or create an account.
  2. Select the intended project if your account has multiple projects.
  3. Create an API key with a recognizable name.
  4. Copy it privately and review its permissions and account usage limits.

Use the official Groq quickstart if the console layout changes. A key created for Google Gemini or OpenAI will not authenticate to Groq, even when the APIs use similar request formats.

Keep the credential in your own secure account workflow. Studio does not require you to store it inside a source file, upload it as an asset or add it to the project JSON.

2. Enter the key in Studio settings

  1. Open AI assistant and choose Connect AI.
  2. Select Groq in the provider selector.
  3. Set Model ID to a model available to this connection.
  4. Paste the key into Your API key without added quotes.
  5. Choose Done and enter one focused design request.
  6. Allow the relevant prompt/design to be sent and choose Generate a proposal.

The current default is llama-3.3-70b-versatile, also used in Groq's quickstart. Availability can change; inspect the current model list and your project permissions when choosing an alternative. The selected model must support the text/JSON proposal format used by Studio.

A useful first request is: Improve the conversation heading; keep draft, messages and send_message unchanged. This gives the agent a concrete result and clear boundaries.

3. Review the proposal and retest the app

Receiving an AI response does not automatically change the app. Open Review changes, inspect the operations and choose Apply proposal only when they match your intent. A card's label, its action and its destination are separate parts of a useful interaction.

Return to Preview and repeat the relevant journey. For the chat example, type a fictional message, send it locally and check that the list updates and the composer clears. Use Undo if a proposal changed behavior you wanted to preserve.

The agent does not create a production messaging backend just by adding a Send button. Continue service integration in exported Flutter source when you are ready. Read the AI proposal guide before requesting a large replacement.

4. Resolve authentication, model and quota errors

For HTTP 401, check that the complete active key belongs to Groq and is selected under the correct provider. For HTTP 403, review account/project permissions. For an unavailable or retired model, choose an accessible model from the provider console rather than repeatedly replacing a valid key.

HTTP 429 means a request or token limit has been reached. Follow the provider's reset information and reduce the request size. Free app-building tools do not include unlimited provider usage, and Studio does not enable billing or purchase quota on your behalf.

If browser access fails, inspect the network connection, extensions and provider access policy. Avoid publishing credentials in a screenshot of the error. The useful diagnostic is the HTTP status, selected model and sanitized message.

5. Understand saved connection storage

Your connection is saved separately in the current tab session and survives refresh. Remember on this device optionally keeps it for up to 30 days. Credentials are excluded from project JSON and ZIP exports. Switching provider clears the field and resets consent. Remove credential clears saved session/device copies; only the provider can revoke the key itself.

The provider still authenticates the request and applies its own service policies. Clear the field when finished, and revoke the key through Groq if it has been exposed. Read session privacy and keep project backups separate from credentials.

TRY WHAT YOU LEARNED

Make one useful change.

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

Open the example