> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Gan.ai in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/ganai
Last updated: 2026-11-24

Share Gan.ai with your team in Claude, ChatGPT and Cursor through Metorial: studio login or playground API key sign-in, 22 tools (11 read-only).

---

To give your team Gan.ai in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Gan.ai integration in a Metorial portal, and each person connects with a studio login. Agents can generate personalized videos, text-to-speech audio, AI avatars, lip-synced videos, and sound effects. The integration has 22 tools, 11 read-only, 9 write and 2 destructive, plus 2 triggers.

**What you will learn**

- How an admin shares Gan.ai in a portal and how each person connects
- What Gan.ai asks for when you connect, and where to find it
- How to keep the 11 read-only tools and reject the other 11

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- A studio login from Gan.ai for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **Studio Login** (default) | Custom credentials | `email` and `password` |
| **Playground API Key** | API token | `apiKey` |

The portal and `metorial setup` use **Studio Login** unless someone picks another method.

### Studio Login

To connect, a person enters these values:

- `email`: Email address for Gan.AI Studio
- `password`: Password for Gan.AI Studio

### Playground API Key

To connect, a person enters:

- `apiKey`: API key from playground.gan.ai

### Setup settings

Whichever method you pick, setup also asks for:

- `apiSurface` (optional): Which Gan.AI API surface to use. "playground" uses os.gan.ai for TTS, avatars, lip-sync, and sound effects. "studio" uses api.gan.ai for personalized video campaigns. One of "playground", "studio".

## Admin: share Gan.ai in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Gan.ai. Under **Auth Method**, keep **Studio Login** or pick another. For how members connect, choose **Each person connects** so everyone enters their own studio login, or **Shared connection** to enter one studio login for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Gan.ai.

4. **Choose who gets it**

   Add the access groups that should see Gan.ai. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Gan.ai integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search gan.ai
```

## Employee: connect Gan.ai

### In the portal

1. **Open Gan.ai in the catalog**

   Sign in to your portal and open Gan.ai. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your studio login (email and password).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search gan.ai
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **Studio Login**. To connect with **Playground API Key** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Gan.ai connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list gan.ai
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 11 read-only tools, such as `list_voices` and `list_avatars`, and lose the 9 write tools, such as `create_avatar` or `create_lipsync`, and the 2 destructive tools, such as `delete_avatars` or `delete_lipsyncs`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list gan.ai
metorial tools <integration-id>
metorial call <integration-id> list_voices -d '{}'
```

`metorial tools` lists the 22 tools, minus any you rejected. `list_voices` takes no input. It retrieves all available voices for text-to-speech and avatar video generation.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (11)

- `list_avatars`: List AI avatars with optional filters for title, status, and date range.
- `get_photo_avatar_inferences`: Retrieve photo avatar video inference details.
- `get_sfx_history`: Retrieve the history of previously generated sound effects, or fetch audio for a specific sound effect by inference ID.
- `list_projects`: List all video projects within a workspace (Studio API). Needs `workspaceId`.
- `get_tts_history`: Retrieve the history of previously generated text-to-speech audio.
- `list_lipsyncs`: List lip-sync video inferences with optional filters, or get details for a specific lip-sync inference by ID.
- `list_photo_avatars`: List photo avatars with optional filters, or get details for a specific photo avatar by ID.
- `list_workspaces`: Retrieve all workspaces the authenticated user belongs to (Studio API).
- `list_voices`: Retrieve all available voices for text-to-speech and avatar video generation.
- `get_avatar_inferences`: Retrieve avatar video inference details.
- `get_video_status`: Check the generation status of a personalized video (Studio API). Needs `workspaceId`, `projectId` and `inferenceId`.

### Write tools (9)

- `create_avatar`: Create a new AI avatar from a video recording. Needs `baseVideoUrl`.
- `create_personalized_videos`: Generate personalized videos in bulk for a project (Studio API). Needs `workspaceId`, `projectId` and `videos`.
- `create_lipsync`: Create a lip-synchronized video by combining a source video with an audio file. Needs `inputVideoUrl`.
- `generate_speech`: Convert text into natural-sounding speech using a specified voice. Needs `voiceId` and `text`.
- `create_photo_avatar`: Create an AI avatar from a still photo image. Needs `baseImageUrl`.
- `generate_avatar_video`: Generate an HD video from a published AI avatar. Needs `avatarId`.
- `generate_photo_avatar_video`: Generate a video from a published photo avatar. Needs `photoAvatarId`.
- `generate_sound_effect`: Generate audio sound effects from a text description. Needs `prompt`.
- `manage_avatar_consent`: Manage the consent verification process for an avatar. Needs `avatarId` and `action`.

### Destructive tools (2)

- `delete_lipsyncs`: Bulk delete lip-sync video inferences by their inference IDs. Needs `inferenceIds`.
- `delete_avatars`: Bulk delete avatars and/or avatar video inferences.

## Triggers

Gan.ai has 2 triggers, which fire on events in Gan.ai:

- `studio_video_events`: Receives webhook events from the Studio API when personalized video generation completes or fails.
- `playground_events`: Receives webhook events from the Playground API for avatar status changes, avatar video generation completions, and lip-sync video completions.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Gan.ai there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Gan.ai on metorial.com](https://metorial.com/integrations/ganai): the integration overview