Unlimited Open Source Models

Get Plan
Skip to main content
CogVideoX thumbnail

CogVideoX

by 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 ModelUnlimited UsageLLMs.txt
API Playground

Input

$0.0047 per video generation

Output

Sample

CogVideoX

Text Sparks Video

Generate Videos Fast

  • Fast EndpointText to VideoCogVideoX model turns prompts into 10-second videos at 16 fps and 768x1360 resolution.
  • High FidelityExpert TransformerCogVideoX video generation uses diffusion transformer for coherent motion and text alignment.
  • API ReadySimple IntegrationCogVideoX API supports fast text-to-video with diffusers pipeline in one call.

CogVideoX questions

What is CogVideoX model?
CogVideoX is an open-source text-to-video diffusion model from THUDM. It generates 10-second videos at 768x1360 resolution and 16 fps. Fast endpoint available via API.
How does CogVideoX video generation work?
It uses 3D causal VAE for compression and expert transformer for text-video alignment. Supports text prompts for coherent clips. Cogvideox model excels in motion and fidelity.
What is cogvideox API for?
CogVideoX API provides text-to-video endpoint for fast generation. Integrates with diffusers pipeline. Ideal for apps needing quick video output.
Differences in cogvideox model sizes?
Cogvideox-2B offers speed on 12 GB VRAM; 5B prioritizes quality on 20 GB VRAM. Both generate 6-10 second clips. Fast version uses optimized pipeline.
Is CogVideoX alternative to other models?
CogVideoX provides open weights under Apache 2.0 for 2B variant. Superior text alignment and duration over prior models. CogVideoX API simplifies access.
Cogvideox video generation limits?
Standard output is 5-10 seconds at 8-16 fps. Resolutions up to 1360x768. Fast endpoint focuses on text-to-video speed.

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.

Faster Generation

Built for speed when you are iterating on a prompt.

LTX 2.3 API
ModelsLabPopular

LTX 2.3

Open Source Model

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.

CogVideoX facts

Provider
ModelsLab
Price
$0.05 per generation
Added to ModelsLab
August 31, 2024
Model ID
cogvideox

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 to get started.

import requests
import json
url = "https://modelslab.com/api/v6/video/text2video"
headers = {
"Content-Type": "application/json"
}
data = {
"model_id": "cogvideox",
"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.",
"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}")

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

Use Cases

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

CogVideoX FAQ

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.

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.

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.

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

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.