# How to create a Gemini connection

To use [AI Text generation in Channable](https://helpcenter.channable.com/manage-improve-product-data/optimize-attributes-with-ai/how-to-use-ai-generated-text), you need to connect your Gemini account that will be responsible for the tokens you spend on AI text generation.

### Step 1: Create an API key in Google AI Studio

{% hint style="info" %}
**Note:** Google AI Studio is available for all Google accounts without additional actions (except for some ages and corporate or regional restrictions).

* **You may need access permissions** if you use a corporate account: Please contact your company’ IT Support (or the team that owns AI Google Studio access) to request the key or if you see an error while creating a project.
  {% endhint %}

1. Go to [Google AI Studio > API Keys](https://aistudio.google.com/api-keys) and choose the account from which you can spend tokens. It can be a company’s, agency’s or a personal account.
2. Click **Create API Key**.

<figure><img src="https://501928696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu8whzIfip72Kvn3M1bsc%2Fuploads%2FvkfpQpXVLJxTiLVqOm6i%2Funknown.png?alt=media&#x26;token=7420fe72-c7dd-41c3-8518-358fc4df130c" alt=""><figcaption></figcaption></figure>

3. Select an exciting project if you have one, or click **Create project** and enter a name for it.
4. Click **Create key**.<br>

<figure><img src="https://501928696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu8whzIfip72Kvn3M1bsc%2Fuploads%2FmDLG2G5xEGKnfqUDgT8k%2Funknown.png?alt=media&#x26;token=0a3dd17b-3755-4871-9c59-3ce90ba91e06" alt=""><figcaption></figcaption></figure>

5. Click on the key title in the table and copy the API key. You will need this when creating a connection in Channable. You can also copy it from the list in **Dashboard > API Keys** later when you need it.

### Step 2: Set up billing (if needed)

1. Check the ‘Quota tier’ for the key you created.

{% hint style="warning" %}
Important: If it is a “Free tier”, you need to set up billing information. The “Free tier” is not suitable for content generation because its limitations are too strict and there is a lack of data confidentiality.
{% endhint %}

{% hint style="info" %}
**Note:** You may already have another tier if it is used for other tools in your organization. In this case, no additional action is needed.
{% endhint %}

<figure><img src="https://501928696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu8whzIfip72Kvn3M1bsc%2Fuploads%2FRr8fLOuEhh3D9I8Ro4N2%2Funknown.png?alt=media&#x26;token=5006d24b-2de2-4695-b7f0-49fe99bb3bd3" alt=""><figcaption></figcaption></figure>

2. Click **Set up billing** and follow the instructions. After adding a credit card, you need the Quota tier column to be set to a Tier 1 or another bidding. If so, continue to Step 3.
3. If you see an **Activate bidding** button there, click it and finish the setting process. For the majority of the accounts that use Gemini API for the first time, you can choose a [free trial credit](https://support.google.com/cloud/answer/7006543?hl=en) of $300 for 3 months (as of March 2026). Click **Activate bidding** to activate it.

{% hint style="warning" %}
Important: Google Billing works on a post-paid, pay-as-you-go model:

* Spending on AI text generation depends on the amount of input data, prompt length, length of output data and a number of products in the list for generation.
* You can check the expected tokens needed for generation in Channable while using the feature. The token costs are available [here](https://ai.google.dev/gemini-api/docs/pricing) - Gemini 3.1 Flash-Lite Preview model.<br>
  {% endhint %}

### Step 3: Create a connection in Channable

1. Go to **\[your company] > \[your project] > Optimize**.
2. Click **+Generate text with AI** to start the setup.
   1. Choose the type of content.
   2. At **AI connection**, click **Gemini** and **Connect**.
   3. Add a new connection and paste your API key you copied Step 1.

3\. Finish the setup according to the instructions in the tab above.
