THUDM/CogVideo

Space

CogVideoX HF Space

460

128 commits

1 linked in READMEs

updated Jun 27, 2025

See the code

README

CogVideoX HF Space

How to run this space

CogVideoX does not rely on any external API models. However, during the training of CogVideoX, we used relatively long prompts. To enable users to achieve rendering with shorter prompts, we integrated an LLM to refine the prompts for better results. This step is not mandatory, but we recommend using an LLM to enhance the prompts.

Using with GLM-4 Model

OPENAI_BASE_URL=https://open.bigmodel.cn/api/paas/v4/ OPENAI_API_KEY="ZHIPUAI_API_KEY" python gradio_demo.py

Using with OpenAI GPT-4 Model

OPENAI_API_KEY="OPENAI_API_KEY" python gradio_demo.py

and change app.py here:

model="glm-4-0520"  # change to GPT-4o

Not using LLM to refine prompts.

python app.py
cogvideox
gradio
thudm
video-generation

Contributors

ZR
zR

38 commits

yufengzhu

37 commits

akhaliq

33 commits

hysts

11 commits

THUDM/CogVideo

Space

CogVideoX HF Space

460

128 commits

1 linked in READMEs

updated Jun 27, 2025

See the code

README

CogVideoX HF Space

How to run this space

CogVideoX does not rely on any external API models. However, during the training of CogVideoX, we used relatively long prompts. To enable users to achieve rendering with shorter prompts, we integrated an LLM to refine the prompts for better results. This step is not mandatory, but we recommend using an LLM to enhance the prompts.

Using with GLM-4 Model

OPENAI_BASE_URL=https://open.bigmodel.cn/api/paas/v4/ OPENAI_API_KEY="ZHIPUAI_API_KEY" python gradio_demo.py

Using with OpenAI GPT-4 Model

OPENAI_API_KEY="OPENAI_API_KEY" python gradio_demo.py

and change app.py here:

model="glm-4-0520"  # change to GPT-4o

Not using LLM to refine prompts.

python app.py
cogvideox
gradio
thudm
video-generation

Contributors

ZR
zR

38 commits

yufengzhu

37 commits

akhaliq

33 commits

hysts

11 commits