In this tutorial, you will learn how to create a Gemini API key in Google AI Studio and configure it in Scriptcase AI to use intelligent features in your projects.
Obtaining the Gemini API key
1. Access Google AI Studio with your Google account.
2. After logging in, access the API keys area.
3. On the API Keys screen, click Create API key.
4. Enter a name and click Create key.
Create the API key using the Gemini default project or select an existing project.
5. After generating the key, copy the displayed code and store it in a safe place.
Do not share, publish in repositories, or send the key to third parties.
API key management
On the API Keys screen, the created keys can be managed.
In the highlighted column shown in the image below, you can copy the API key and monitor the usage of that specific key.

Whenever possible, use a dedicated key for Scriptcase AI. This makes it easier to control usage, identify consumption, and replace the key if necessary.
Configure Scriptcase AI
1. After logging in with an administrator account in Scriptcase, access the menu Tools > Scriptcase AI.
2. Copy the generated API key and paste it into the API Key field.
In this step, enable the option to create and translate applications automatically and select the Google provider, as well as the Chat Model and Smart Tasks Model.
3. Project access permissions
In the project list, define the access permissions of Scriptcase AI for each project.
Enable Code View and grant access to the connections so that Scriptcase AI can analyze the code of the open event and access the structure of the database tables and fields.
Scriptcase AI accesses only the database structure, such as tables and fields. It does not access or read the data stored in the database.

4. After entering the information, click save settings.
The chat and smart tasks are now available. See more details about the options on the configuration screen in our documentation.
