API Key Generation

To use the AI Toolbox with an OpenAI account, you need to generate an API key:

  1. Sign up or log in to your OpenAI account: https://platform.openai.com/.
  2. Navigate to the “View API Keys” section in your account dashboard.
  3. Click “Create new secret key” and copy the generated key.

API Key on the OpenAI website

Generate an API key on the OpenAI website

API Key Setup in Unity

Once you have generated the API key, you need to set it up within Unity:

  1. Open your Unity project.
  2. Click on “Edit” in the top menu, then select “Project Settings.”
  3. In the Project Settings window, navigate to the “AI Toolbox” tab.
  4. Paste your API key into the “API Key” field.

API Key in Project Settings

Paste the API key in the Project Settings

⚠️ The API key is stored in encrypted form in the following file: UserSettings/AiToolboxSettings.asset. When sharing your project with others, be sure to exclude the “UserSettings” directory to prevent unauthorized use of your API key.

If you’ve got any issues with the setup, please refer to the Frequently Asked Questions section or contact us.

Comments