Set Up a Gemini API Key for Practice
Practice uses your Gemini API key for the AI features you choose. Google bills API usage to the Google account and project connected to the key.
Create and store the key
- Sign in to Google AI Studio.
- Create or select the project used with Practice.
- Create an API key and choose the permissions needed by Practice.
- Save the key in a server environment variable or managed secret store.
Set billing controls
Open the project billing and usage settings. Connect a billing account, choose a spending limit that matches your expected use, and enable usage alerts.
Connect and verify Practice
- Open Practice settings and enter the project key.
- Save the setting.
- Run one guided reflection.
- Confirm that Practice displays the result.
Replace a key
Create a new project key, update Practice and server secret storage, verify one guided reflection, then revoke the earlier key in the provider account.