Browse documentation

AI PROVIDER SETUP

Create an OpenAI API Key and Configure Studio GPT Access

Studio keeps the OpenAI provider key on the host. Users connect with a workspace access code; they do not paste an OpenAI secret into the browser field.

3 min readPractical guide
In this guide

1. Create a project API key

  1. Sign in to the OpenAI API keys dashboard.
  2. Select the intended organization/project.
  3. Create a project API key with permissions appropriate for the application.
  4. Copy the secret privately and review model access and API usage settings.

Use official OpenAI key guidance for current account and credential options. A project service account is appropriate when a deployed application needs its own identity.

Do not put the provider secret in a public frontend, repository, screenshot or generated mobile application. See OpenAI authentication guidance.

2. If you own the Studio hosting

Configure the optional PHP relay with your own provider key in private hosting settings. It requires PHP 8.1 or later with cURL. Keep credentials outside the public upload directory.

  1. Set FLUTTERFEVER_OPENAI_KEY in the host environment.
  2. Create a private random workspace access code of at least 24 characters and set FLUTTERFEVER_AI_ACCESS.
  3. Alternatively, use the repository configuration example outside public_html.
  4. Limit allowed models to those your provider account may use.
  5. Verify the host rejects unauthorized requests before distributing access.

The detailed protected GPT host setup explains the deployment boundary. A static-only web server cannot execute this relay. Do not change WordPress or publish a provider secret to make a disabled connection appear active.

3. If you are using a hosted Studio

Ask its owner for an authorized workspace access code. Open AI assistant, choose Connection settings, select OpenAI GPT and enter that code in Workspace access code. Select an allowed model, choose Done and send a small task after granting consent.

The current OpenAI field does not accept your personal raw OpenAI API key. Creating a personal provider key does not turn it into a workspace access code. To use your own OpenAI budget with this connection architecture, configure your own private Studio host, or ask the host owner about an approved integration.

Gemini and Groq have a different connection flow: they accept your own session key in the browser. Their credential instructions do not apply to the protected OpenAI field.

4. Test access and understand the failure

Start with a bounded request such as improving one heading while preserving routes. Review the proposal before applying it, then retest Preview. A configured host can still fail if its provider key lacks model access or quota.

Studio resultNext step
Access code rejectedObtain a current authorized code from the host owner.
OpenAI not connectedThe owner must configure the relay and PHP environment.
Request limit reachedWait for the host's limit reset; do not publish the code or bypass it.
Provider/model failureThe owner should check the server credential, model permissions and account usage.

5. Keep API keys and access codes separate

The provider key authorizes the server to call OpenAI. The access code authorizes a browser user to use that configured server connection. Studio excludes the entered access code from project JSON and source exports. The host retains its provider key in private configuration.

Clearing browser state does not revoke the host's provider key. Rotate exposed credentials in the relevant account and restrict access to people allowed to consume its budget. The free visual editor, templates and exports remain available without AI. Continue with connection privacy or proposal review.

TRY WHAT YOU LEARNED

Make one useful change.

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

Open the example