ChinaText to video5B parametersDiffusion transformer

Explore CogVideoX-5B

Turn natural-language scene descriptions into coherent short videos with Zhipu AI and Tsinghua's open diffusion transformer. Use the playground to give CogVideoX-5B a representative input and review its output. Adjust the available settings to shape the result for your task.

Model

THUDM/CogVideoX-5b

Input

Configure your request

Documentation

CogVideoX-5B field reference

Use this reference to understand how every field in the playground changes the request sent to THUDM/CogVideoX-5b.

Video prompt

Required

Type: Text

Provides the main natural-language instruction for the model. Include the subject, action, style, composition, and constraints that matter; clearer concrete details give the model more guidance about the intended result.

Negative prompt

Optional

Type: Text

Default: None

Describes unwanted subjects, styles, defects, or artifacts such as blur or watermarks. It steers generation away from those concepts but is not a guaranteed content filter.

Height

Optional

Type: Number

Default: 480

Range: 128–Unbounded

Sets the vertical resolution of generated images or video frames in pixels. Larger values create more detail but require more memory and processing time; keep the height compatible with the model’s supported dimensions and desired aspect ratio.

Width

Optional

Type: Number

Default: 720

Range: 128–Unbounded

Sets the horizontal resolution of generated images or video frames in pixels. Larger values create more detail but require more memory and processing time; combine it with height to choose the aspect ratio.

Number of frames

Optional

Type: Number

Default: 49

Range: 1–Unbounded

Controls the length of the generated video as a frame count. Duration depends on the playback frame rate, and more frames increase generation time and memory use; some pipelines accept only particular frame-count intervals.

Inference steps

Optional

Type: Integer

Default: 50

Range: 1–Unbounded

Controls how many iterative denoising passes produce the final media. More steps can refine detail and consistency but increase generation time, with diminishing quality gains beyond the model’s useful range.

Guidance scale

Optional

Type: Number

Default: 6

Range: 0–Unbounded

Sets the strength of classifier-free guidance toward the text prompt. Higher values usually improve literal prompt adherence but can reduce natural motion or create artifacts; lower values give the model more visual freedom.

Dynamic classifier-free guidance

Optional

Type: Boolean

Default: On

Varies prompt guidance strength across diffusion steps instead of holding it constant. This can balance early scene composition with later visual detail; disable it when you want the guidance-scale value applied uniformly.

Videos per prompt

Optional

Type: Integer

Default: 1

Range: 1–Unbounded

Requests multiple video variations from one prompt in a single run. Each result uses additional computation and memory, and different seeds or random states allow the variations to differ.

Maximum prompt tokens

Optional

Type: Integer

Default: 226

Range: 1–226

Caps the tokenized prompt length accepted by the model’s text encoder. Text beyond the limit is truncated, so increasing it can preserve long descriptions when supported but uses more memory.

Generator seed

Optional

Type: Integer

Default: 42

Range: 0–Unbounded

Initializes the pipeline’s random-number generator. Reusing the same seed, prompt, model, and settings usually reproduces the same output, while changing it creates a new variation.

Output type

Optional

Type: String

Default: pil

Values: PIL frames, NumPy array, Latent tensor

Chooses the data representation returned by the pipeline. Image frames are convenient for viewing, NumPy arrays suit numerical processing, and latent tensors are compact intermediate data that still require decoding.

Return pipeline output

Optional

Type: Boolean

Default: On

Chooses the structure of the pipeline result. Enabled returns an object with named properties that is easier to read; disabled returns a positional tuple that may suit older or lower-level integrations.