---
updatedAt: 2026-04-23T08:54:27.000Z
agentTools:
  projectIndex: https://docs.akeyless.io/llms.txt
---

# Gemini Target

You can define a [Gemini](https://ai.google.dev/gemini-api/docs) target to be used for [AI Insights](https://docs.akeyless.io/docs/akeyless-ai-insight) in your account.

## Create a Gemini Target with the CLI

To create a Gemini target with the CLI, run the following command:

```shell
akeyless target create gemini \
--name <target name> \
--api-key <Gemini API key> \
--gemini-url <Gemini API base URL> \
--key <protection key>
```

Where:

* `name`: A unique name of the target. The name can include the path to the virtual folder where you want to create the new target, using slash `/` separators. If the folder does not exist, it will be created together with the target.

* `api-key`: The Gemini API Key.

* `gemini-url`: The Gemini API base URL. Default: `https://generativelanguage.googleapis.com`

  For AI Insights, you can also use the OpenAI-compatible Gemini endpoint: `https://generativelanguage.googleapis.com/v1beta/openai`

* `key`: The protection key used to encrypt the target secret value. If not specified, the account default protection key is used.

## Create a Gemini Target in the Console

1. Log in to the Akeyless Console, and go to **Targets > New > AI (Gemini)**.

2. Define a **Name** of the target, and specify the **Location** as a path to the virtual folder where you want to create the new target, using slash `/` separators. If the folder does not exist, it will be created together with the target.

3. Select a **Protection key** with a Customer Fragment to enable Zero-Knowledge and click **Next**.
   For more information, [read here](https://docs.akeyless.io/docs/gateway-zero-knowledge).

4. Define the remaining parameters as follows:

   * **API Key:** The Gemini API Key.

   * **Gemini URL:** The endpoint for the Gemini API. Default: `https://generativelanguage.googleapis.com`

     For AI Insights, you can also use the OpenAI-compatible Gemini endpoint: `https://generativelanguage.googleapis.com/v1beta/openai`