> ## 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.

# CogVideoX

Zhipu's CogVideoX learns from visual sequences to generate video from text or images, with immersive AI sound effects, HD quality, extended duration, and high-frame-rate output.

### Model parameters

* Model IDs: `cogvideox-2` / `cogvideox-flash` / `cogvideox`
* Pricing: see the [model catalog](https://geekai.co/models?platform=bigmodel\&type=video) for current rates.
* Endpoint: `https://geekai.co/api/v1/videos/generations`
* Parameters: [Video API reference](https://docs.geekai.co/en/api/video/generations.md)
* Authentication: [Get an API key](https://docs.geekai.co/en/docs/quick_start.md)

> [!NOTE]
>
> The following video API parameters are not supported:
>
> * `negative_prompt`
> * `image_tail`
> * `resolution`
> * `aspect_ratio`
> * `duration`
>
> See the [official CogVideoX API documentation](https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E8%A7%86%E9%A2%91%E7%94%9F%E6%88%90%E5%BC%82%E6%AD%A5#cogvideox).

### Text to video

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "cogvideox-flash",
    "prompt": "Peter Rabbit drives a little car down the road with a look of pure joy",
    "size": "1280x960",
    "quality": "quality",
    "with_audio": true,
    "fps": 30
}'
```

The JSON response contains the generated media URL:

```json theme={null}
{
    "model": "cogvideox-flash",
    "task_id": "a83d58e1-a590-4d58-a1a1-0378ae7efaa8",
    "task_status": "succeed",
    "video_result": [
        {
            "id": "f87f9c36-2856-4c5c-89a6-cc6833a85ddc",
            "url": "https://static.geekai.co/video/2026/02/10/f536064e4248e8137b252472f61cea42.mp4"
        }
    ]
}
```

The image-to-video examples below use the same response format.

### Image to video

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "cogvideox-flash",
    "prompt": "Bring the scene to life",
    "image": "https://img.iplaysoft.com/wp-content/uploads/2019/free-images/free_stock_photo.jpg",
    "size": "3840x2160",
    "quality": "quality",
    "with_audio": true,
    "wartermark": true
}'
```

> [!NOTE]
>
> `cogvideox` and `cogvideox-2` work like `cogvideox-flash` above. Base64-encoded image data is also supported.


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