> ## Documentation Index
> Fetch the complete documentation index at: https://sambanova-systems.mintlify.site/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# TwelveLabs integration guide

TwelveLabs provides state-of-the-art video understanding technology that makes video content instantly searchable and intelligently analyzable. Combined with SambaNova's high-performance AI models, you can transform educational videos into interactive games and learning experiences.

## Prerequisites

Before you begin, ensure you have:

* A [SambaCloud](http://cloud.sambanova.ai?utm_source=twelvelabs\&utm_medium=external\&utm_campaign=cloud_signup) account with an API key
* A [TwelveLabs](https://playground.twelvelabs.io/dashboard/api-key) account with an API key
* Python 3.9 or higher installed
* The [Video2Game repository](https://github.com/Hrishikesh332/Video2Game) cloned to your local machine

## Setup

This integration uses TwelveLabs for video understanding and SambaNova for game code generation, enabling you to convert educational videos into interactive learning experiences.

1. Configure environment variables

Create a `.env` file in your project's root directory with the following configuration:

```bash theme={null}
TWELVELABS_API_KEY=your_twelvelabs_api_key_here
SAMBANOVA_API_KEY=your_sambanova_api_key_here
BASE_URL=http://127.0.0.1:8000
SAMBANOVA_BASE_URL=your_sambanova_base_url_here
```

2. Install dependencies

Install the required Python packages

```shellscript theme={null}
pip install -r requirements.txt
```

3. Start the application

```shellscript theme={null}
python app.py
```

The API will be available at [http://127.0.0.1:8000](http://127.0.0.1:8000/).

## Additional resources

For more information about TwelveLabs capabilities and features, visit the [official TwelveLabs documentation](https://docs.twelvelabs.io/docs/get-started/introduction).
