Google Gemini Setup
Google Gemini is the recommended AI provider for AI Scene Organizer due to its rapid response times (often under 0.8 seconds) and a highly generous Free Tier accessible via Google AI Studio.
1. Getting an API Key
- Navigate to Google AI Studio.
- Log in using any personal or corporate Google account.
- Click the Get API key button in the top-left sidebar.
- Click Create API key (you can create a key in a new project or select an existing one).
- Copy the generated key. It will start with
AIzaSy.
2. Configuring Unity
Once you have your key:
- Open your Unity Project.
- Open Project Settings:
Edit ➔ Project Settings... - Click on the AI Scene Organizer tab in the sidebar.
- Set the Active Provider dropdown to
Gemini. - Paste your copied key into the Gemini API Key field.
- Click Apply & Save Settings.
3. Recommended Models
In the settings, you can configure the specific Gemini model:
| Model ID | Cost | Performance | Recommendation |
|---|---|---|---|
gemini-1.5-flash | Free (Up to 15 RPM) | Blazing Fast (~0.5s), very good layout parsing. | Recommended for daily use. |
gemini-1.5-pro | Free (Up to 2 RPM) | High Reasoning, handles extremely deep trees. | Best for complex, nested levels. |
4. Troubleshooting Gemini Connection
- Error
403 Forbidden/API_KEY_INVALID: Make sure there are no leading or trailing spaces in the API Key input. - Error
429 Too Many Requests(Quota Exceeded): The Gemini Free Tier has a limit of 15 requests per minute (RPM). If you hit this limit, wait 60 seconds before executing another prompt, or upgrade to a pay-as-you-go plan inside AI Studio. - Geographic Restrictions: Google AI Studio is unavailable in a small number of countries. If you reside in a restricted region, please use the OpenRouter Guide to route Gemini requests through a gateway.