πGetting the API key
Easily configure your OpenAI API key and settings in Unity to unlock advanced AI features for your projects with the AI Developement Kit integration page.
Last updated
Easily configure your OpenAI API key and settings in Unity to unlock advanced AI features for your projects with the AI Developement Kit integration page.
Last updated
An API key is a bridge between your applications and Google's new AI technologies, allowing you to seamlessly integrate advanced AI functionalities into your projects. Here's how to securely acquire your Gemini API key:
Create a Google account: If you haven't done so already, sign up for an account on the Google platform.
Log in to Google AI Studio: Log in to Google AI studio.
Navigate to API Keys: Once logged in, click Get API key on the top left.
Generate a new API key: Click on the "Create API key" button. You might be prompted to verify your account or provide additional information.
Copy your API key: After generating the key, make sure to copy it. Keep it secure as it provides access to all Google's AI services.
After obtaining your API key from Google AI studio, you're ready to configure it within your Unity project. Here's a step-by-step guide to help you set it up:
Open the Settings Provider: In Unity, go to Edit > Preferences (or Unity > Preferences on macOS), then navigate to Glitch9 > AI Development Kit to access the settings.
Enter your API key: In the "GenerativeAI Settings" section, you'll find a field labeled "API Key (Required)". Enter your copied API key here.
If API Key Encryption (AES) is available and you prefer to encrypt your key for added security, you can check this option. If your key is already encrypted, you'll see a message indicating its status, with an option to delete the encrypted key if needed.
Verifying API Key Encryption: If you opted for API key encryption, the process encrypts your key, and the plain text field should now be empty, indicating that the key is stored securely.