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

# Video Analysis

### Supported models

The following models support video analysis in chat. They mainly include Gemini models, GLM vision models, and recent Qwen and Doubao models:

* `gemini-4-carbon`
* `gemini-4-argon`
* `gemini-3.8-flash`
* `gemini-3.6-flash`
* `gemini-3.5-flash-lite`
* `gemini-3.5-flash`
* `gemini-3.1-pro-preview`
* `gemini-3.1-pro-preview:fast-thinking`
* `gemini-3.1-flash-lite-preview`
* `gemini-3-flash-preview`
* `gemini-3-flash-preview:no-thinking`
* `gemini-2.5-pro`
* `gemini-2.5-pro:fast-thinking`
* `gemini-2.5-flash`
* `gemini-2.5-flash:no-thinking`
* `gemini-2.5-flash-lite`
* `gemini-2.0-flash`
* `gemini-2.0-flash-lite`
* `gemini-2.5-flash-lite:no-thinking`
* `glm-5.3-flashx`
* `glm-5.3-flash`
* `qwen3.5-flash`
* `qwen3.5-plus`
* `qwen3.5-397b-a17b`
* `qwen3.5-35b-a3b`
* `qwen3.5-27b`
* `qwen3.5-122b-a10b`
* `qwen3.5-omni-flash`
* `qwen3.5-omni-plus`
* `qwen3.6-plus`
* `qwen3.6-flash`
* `qwen3.6-35b-a3b`
* `qwen3.6-27b`
* `qwen3.7-max`
* `qwen3.7-flash`
* `qwen3.7-plus`
* `qwen3.8-max`
* `qwen3.8-flash`
* `qwen3.8-omni-flash`
* `qwen4-max`
* `muse-spark-1.3-contributor`
* `muse-spark-1.3`
* `muse-spark-1.2-contributor`
* `muse-spark-1.2`
* `doubao-seed-evolving`
* `doubao-seed-2.1-turbo`
* `doubao-seed-2.1-pro`
* `doubao-seed-2.0-mini`
* `doubao-seed-2.0-lite`
* `doubao-seed-2.0-pro`
* `doubao-seed-2.0-code`
* `minimax-m3.1-flash`
* `minimax-m3`
* `kimi-k2.6`
* `kimi-k2.7-code`
* `kimi-k3`
* `kimi-k3.1-pro`
* `mimo-v2.6-flash`
* `mimo-v2.6-pro`

In the [model catalog](https://geekai.co/models), filter by the video understanding capability to see all supported chat models.

These models can:

* Describe and segment videos and extract information
* Answer questions about video content
* Refer to specific timestamps in a video

The examples and limits below use Gemini. Other models work similarly.

### Video formats and sizes

Gemini supports the following video MIME types:

* `video/mp4`
* `video/mpeg`
* `video/mov`
* `video/avi`
* `video/x-flv`
* `video/mpg`
* `video/webm`
* `video/wmv`
* `video/3gpp`

The video URL must be publicly accessible.

Gemini supports files up to 2 GB. The Gemini video models listed above with a 1M-token context window can process up to one hour of video.

### Video chat examples

**Basic example**

Gemini versions before 2.5 accept only one video per request:

```bash curl theme={null}
curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gemini-3.8-flash",
    "messages": [
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "Analyze the content of this video."
                },
                {
                    "type": "video_url",
                    "video_url": {
                        "url": "https://static.geekai.co/video/2025/10/14/8f64bf9bcf1b21fb3d7f55d6ae8c1552.mp4"
                    }
                }
            ]
        }
    ]
}'
```

**Timestamps**

Ask about specific points in a video using timestamps in `MM:SS` format:

```bash curl theme={null}
curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gemini-3.8-flash",
    "messages": [
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "What are the examples at 00:05 and 00:10 meant to show?"
                },
                {
                    "type": "video_url",
                    "video_url": {
                        "url": "https://static.geekai.co/video/2025/10/14/8f64bf9bcf1b21fb3d7f55d6ae8c1552.mp4"
                    }
                }
            ]
        }
    ]
}'
```

**Transcription and visual description**

Gemini can process both the audio track and the video frames to produce a transcript and visual descriptions:

```bash curl theme={null}
curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gemini-3.8-flash",
    "messages": [
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "Transcribe the audio, timestamp important events, and describe what is happening on screen."
                },
                {
                    "type": "video_url",
                    "video_url": {
                        "url": "https://static.geekai.co/video/website.mp4"
                    }
                }
            ]
        }
    ]
}'
```

> [!NOTE]
>
> For visual descriptions, the model samples one frame per second. This can limit detail, especially in fast-changing scenes.

**Multiple videos**

Gemini 2.5 and later support up to 10 videos in a single request:

```bash curl theme={null}
curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gemini-3.8-flash",
    "messages": [
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "How do these two videos differ?"
                },
                {
                    "type": "video_url",
                    "video_url": {
                        "url": "https://static.geekai.co/video/2025/10/14/8f64bf9bcf1b21fb3d7f55d6ae8c1552.mp4"
                    }
                },
                {
                    "type": "video_url",
                    "video_url": {
                        "url": "https://static.geekai.co/video/2025/10/14/dba448a408a2dbe394adc889e13b43ce.mp4"
                    }
                }
            ]
        }
    ]
}'
```

For best results on complex tasks, use only one video per prompt.

Video chat returns the same response format as text chat:

```json theme={null}
{
    "id": "a74bf0c3-1a7e-4ad4-b233-6ee9b850ae66",
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "The videos differ in three ways:\n\n1. **Car color:** The first car is light blue or white; the second is dark blue.\n2. **Camera angle:**\n    * The first camera appears to circle the car from the front quarter, showing its side as it travels left to right.\n    * The second camera faces the rear of the car as it drives straight away into the distance.\n3. **Relative motion:** The first car passes the camera laterally; the second moves away from it.\n\n**Similarities:**\n* **Model:** Both appear to show the same model (a 2022 or newer Toyota GR86 or Subaru BRZ).\n* **Setting:** Both show a sunny desert road with mountains and double yellow lines.\n* **Camera technique:** Both appear to use a 360-degree camera with smooth reframing in postproduction. The shadow under the car rotates with the viewpoint, a typical effect of an invisible selfie stick.\n* **Sound:** Both include engine and exhaust noise."
            },
            "finish_reason": "stop"
        }
    ],
    "model": "gemini-3.8-flash",
    "object": "chat.completion",
    "usage": {
        "prompt_tokens": 6441,
        "completion_tokens": 357,
        "total_tokens": 8665,
        "completion_tokens_details": {
            "reasoning_tokens": 1867
        }
    }
}
```

**Additional costs**

Each second of video is tokenized as follows:

* Video: 258 tokens per frame by default
* Audio: 32 tokens per second
* Metadata also counts toward the total.

This works out to about 300 tokens per second of video, billed as `prompt_tokens`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.