AI DevKit
Glitch9 Inc.Glitch9 DocsDiscordIssues
  • Introduction
    • AI DevKit 3.0
    • Update Logs
    • Troubleshooting
      • ❗Issues After Updating AIDevKit?
      • ❗The type or namespace name 'Newtonsoft' could not be found
      • ❗Build Error: The name 'UnityMenu' does not exist in the current context
      • ❗Model 'modelName' not found
      • ❗The model `model name` does not exist or you do not have access to it
      • ❗The type or namespace name 'AndroidJavaObject' could not be found
      • ❗The type or namaspace name 'Plastic' does not exist
      • ❗Build Error: The name 'Asset Database' does not exist in the current context
      • ❗'ModelData.Create(Provider, string, UnixTime?, string)': not all code paths return a value
      • ⚠️ Timeout Issues
      • ⚠️ Receiving a “HTTP/1.1 400 Bad Request” Error?
    • FAQ
      • My OpenAI API free trial has ended or is inactive.
  • Quick Start
    • Get API Keys
      • OpenAI API Key Guide
      • Google API Key Guide
      • ElevenLabs API Key Guide
    • Text Generation
    • C# Object Generation
    • Image Generation
    • Sound Effect Generation
    • Text to Speech (TTS)
    • Speech to Text (STT)
    • Voice Changer
    • Audio Isolation
  • Pro Features
    • Generation Menu
      • Code Generators
        • C# Script Generator
        • Unity Component Generator
    • Editor Chat
    • Editor Vision (TTI, ITI)
    • Editor Speech (TTS)
    • Management Tools
      • Prompt History Viewer
      • AI Model Manager
      • TTS Voice Manager
      • OpenAI File Manager
      • OpenAI Assistant Manager
      • ElevenLabs Voice Library
  • Assistants API (OpenAI)
    • How it works
    • Creating custom functions
    • Creating assistants API
  • Advanced API Supports
    • OpenAI API
      • 💬Chat completions
      • 🖼️Image operations
      • 🗣️Text to speech
      • 🎙️Speech to text
        • Recording real-time in Unity
      • 💾Files
      • 🔎Embeddings
      • 🛡️Moderations
      • ⚙️Fine-tuning
    • Google API
      • 📝System instructions
      • 💬Text generation
      • ⚙️Fine-tuning
      • ▶️Fucntion calling
      • 🔎Embeddings
      • 🛡️Safety
      • 💻Code execution
    • ElevenLabs API
  • Legacy Documents
    • AI DevKit 1.0 - 2.0
      • AI DevKit 2.0
      • AI DevKit 1.0
      • Preperation
      • Event Handlers
      • Scriptable Toolkits
        • Chat Streamer
        • Image Generator
        • Voice Transcriber
        • Voice Generator
      • Editor Tools
Powered by GitBook
On this page
  • 1. Obtaining your Gemini API Key
  • 2. Configuring your API key in Unity
  1. Quick Start
  2. Get API Keys

Google API Key Guide

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.

PreviousOpenAI API Key GuideNextElevenLabs API Key Guide

Last updated 10 months ago

1. Obtaining your Gemini API Key

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:

  1. Generate a new API key: Click on the "Create API key" button. You might be prompted to verify your account or provide additional information.

  2. 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.

2. Configuring your API key in Unity

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:

  1. 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.

  2. 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.

  3. 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.

Create a Google account: If you haven't done so already, sign up for an account on the

Log in to Google AI Studio: Log in to

Navigate to API Keys: Once logged in, click on the top left.

Google platform.
Google AI studio.
Get API key
https://makersuite.google.com/app/apikeymakersuite.google.com
Get API key here