---
title: CogVideoX API | Text to Video | ModelsLab
description: Generates coherent text-to-video content at 720x480 resolution, 8 FPS, with up to 6-second clips, leveraging diffusion transformers and efficient 3D.
url: https://modelslab.com/models/modelslab/cogvideox.md
canonical: https://modelslab.com/models/modelslab/cogvideox
type: product
component: Playground/Endpoint/Index
generated_at: 2026-10-08T23:20:31.283793Z
---

[![CogVideoX thumbnail](https://assets.modelslab.ai/api-logos/01KPMZY676ZM0Z7YJWBM9C78QP.png)](https://modelslab.com/models/modelslab)CogVideoX
---

[by ModelsLab](https://modelslab.com/models/modelslab)Generates coherent text-to-video content at 720x480 resolution, 8 FPS, with up to 6-second clips, leveraging diffusion transformers and efficient 3D variational autoencoding for smooth motion and semantic alignment.

`cogvideox`

Open Source Model [Unlimited Usage](https://modelslab.com/pricing) [LLMs.txt](https://modelslab.com/models/modelslab/cogvideox/llms.txt) [Learn more](https://modelslab.com/cogvideox)

[API Playground](/models/modelslab/cogvideox)API DocumentationVibe CodeRelated ModelsDeveloper SupportModel Specs

Input
---

Prompt 

A suited astronaut, with the red dust of Mars clinging to their boots, reaches out to shake hands with an alien being, their skin a shimmering blue, under the pink-tinged sky of the fourth planet. In the background, a sleek silver rocket, a beacon of human ingenuity, stands tall, its engines powered down, as the two representatives of different worlds exchange a historic greeting amidst the desolate beauty of the Martian landscape.

Output Type 

Advanced Settings Customize your input with more control.

**$0.0047** per video generation

Login to Generate

Output
---

Idle

Unknown content type

Looking for something different?
---

Models that trade off differently against the one you are viewing

### Better quality

Newer flagship models that generally produce stronger results.

[BytePlus](https://modelslab.com/models/byteplus)

 [Seedance 1.5 Pro](/models/byteplus/seedance-1-5-pro?config=seedance-15-pro-text-to-video)

[xAI](https://modelslab.com/models/xai)

 [Grok Imagine Text To Video](https://modelslab.com/models/xai/grok-imagine-video-t2v)

[Google](https://modelslab.com/models/google)

 [Veo 3.1 Fast](/models/google/veo-3.1-fast?config=Veo-3.1-fast)

[LTX](https://modelslab.com/models/ltx)

 [LTX 2 PRO Text To Video](https://modelslab.com/models/ltx/ltx-2-pro-t2v)

[BytePlus](https://modelslab.com/models/byteplus)

 [Seedance 2.5 Text To Video](https://modelslab.com/models/byteplus/seedance-2-5-text-to-video)

[Alibaba Cloud](https://modelslab.com/models/alibaba_cloud)

 [happyhorse-1.0-t2v](https://modelslab.com/models/alibaba_cloud/happyhorse-1.0-t2v)

### Faster Generation

Built for speed when you are iterating on a prompt.

[ModelsLab](https://modelslab.com/models/modelslab) Popular

 [LTX 2.3](/models/modelslab/ltx-2.3?config=ltx-2.3-t2v)Open Source Model

[Alibaba Cloud](https://modelslab.com/models/alibaba_cloud)

 [Happyhorse 1.1 Text To Video](https://modelslab.com/models/alibaba_cloud/happyhorse-1.1-t2v)Closed Source Model

Related Models
---

Discover similar models you might be interested in

 [View all Video Models](https://modelslab.com/models?feature=videogen)

[Google](https://modelslab.com/models/google)

 [Gemini Omni — Text To Video](https://modelslab.com/models/google/gemini-omni-text-to-video)

[Alibaba Cloud](https://modelslab.com/models/alibaba_cloud)

 [Qwen Image 3.0 Image Edit](https://modelslab.com/models/alibaba_cloud/qwen-image-3.0-pro-i2i)

[MiniMax](https://modelslab.com/models/minimax)

 [MiniMax-H3 Reference To Video](https://modelslab.com/models/minimax/Minimax-h3-r2v)

[Vidu](https://modelslab.com/models/tencent)

 [Vidu Q3 Turbo Text to Video](https://modelslab.com/models/vidu/vidu-q3-turbo-t2v)

[BytePlus](https://modelslab.com/models/byteplus)

 [Seedance 2.0 Mini — Multireference to Video](https://modelslab.com/models/byteplus/seedance-2.0-mini-multi-reference-video)

[xAI](https://modelslab.com/models/xai)

 [Grok Imagine Image To Video](https://modelslab.com/models/x-ai/grok-imagine-video-i2v)

View all 18 related models

About CogVideoX
---

Generates coherent text-to-video content at 720x480 resolution, 8 FPS, with up to 6-second clips, leveraging diffusion transformers and efficient 3D variational autoencoding for smooth motion and semantic alignment.

### Technical Specifications

Model IDcogvideox

ProviderModelsLab

CategoryVideo Models

TaskVideo Generation

Price$0.05 per generation

AddedAugust 31, 2024

### Key Features

- AI video generation from text or image input
- Motion control and camera movement parameters
- Adjustable frame rate and video duration
- High-quality cinematic output up to 1080p
- Native audio generation support

### Quick Start

Integrate CogVideoX into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v6/video/text2video"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "cogvideox",
        "prompt": "your prompt here",
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

### Pricing

CogVideoX API costs $0.05 per generation. Plans start at $21/month, and open-source models are unlimited on the $149/month plan. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- Marketing and promotional video creation
- Social media short-form video content
- Product demos and explainer videos
- Creative storytelling and animation

[Learn more about CogVideoX](https://modelslab.com/cogvideox) [Browse Video Models](https://modelslab.com/models?feature=videogen) [More from ModelsLab](https://modelslab.com/models/modelslab) [View Pricing](https://modelslab.com/pricing)

CogVideoX FAQ
---

### What is CogVideoX?

Generates coherent text-to-video content at 720x480 resolution, 8 FPS, with up to 6-second clips, leveraging diffusion transformers and efficient 3D variational autoencoding for smooth motion and semantic alignment.

### How do I use the CogVideoX API?

You can integrate CogVideoX into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "cogvideox" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does CogVideoX cost?

CogVideoX costs $0.05 per generation. ModelsLab plans start at $21/month (Basic), and the $149/month Open Source plan includes unlimited generation on open-source models.

### What is the CogVideoX model ID?

The model ID for CogVideoX is "cogvideox". Use this ID in your API requests to specify this model.

### Do I need a paid plan to use CogVideoX?

Yes. ModelsLab is subscription-based with no free tier — plans start at $21/month (Basic, 3,250 API calls). The $149/month Open Source Unlimited plan includes unlimited generation across open-source models; premium third-party models are billed per call from your wallet.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-10-09*