Skip to main content
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

The following video API parameters are not supported:
  • negative_prompt
  • image_tail
  • resolution
  • aspect_ratio
  • duration
See the official CogVideoX API documentation.

Text to video

The JSON response contains the generated media URL:
The image-to-video examples below use the same response format.

Image to video

cogvideox and cogvideox-2 work like cogvideox-flash above. Base64-encoded image data is also supported.