1. Create a project API key
- Sign in to the OpenAI API keys dashboard.
- Select the intended organization/project.
- Create a project API key with permissions appropriate for the application.
- 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.
- Set
FLUTTERFEVER_OPENAI_KEYin the host environment. - Create a private random workspace access code of at least 24 characters and set
FLUTTERFEVER_AI_ACCESS. - Alternatively, use the repository configuration example outside
public_html. - Limit allowed models to those your provider account may use.
- 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 result | Next step |
|---|---|
| Access code rejected | Obtain a current authorized code from the host owner. |
| OpenAI not connected | The owner must configure the relay and PHP environment. |
| Request limit reached | Wait for the host's limit reset; do not publish the code or bypass it. |
| Provider/model failure | The 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.