Skip to content

LongCat Video

POST/v1/run

Longcat Video 720p by meituan - generate cinematic videos from text descriptions with AI. Create high-quality video content with natural motion, camera control, and optional audio generation.

Request body

Submit an async generation request. The model field selects the model; other fields are model-specific input parameters.

stringmodelrequired

Model identifier. Set to meituan/longcat-video/text-to-video/720p.

Default: meituan/longcat-video/text-to-video/720p

stringpromptrequired

The prompt to guide the video generation.

Optional<string>aspect_ratio

The aspect ratio of the generated image.

Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16

Optional<number>guidance_scale

The guidance scale to use for the video generation.

Range: 1 to 10

Default: 4

Optional<integer>num_inference_steps

The number of inference steps to use for the video generation.

Range: 8 to 50

Default: 40

Optional<integer>seed

The seed for the random number generator.

Optional<string>video_quality

The quality of the generated video.

Allowed values: low, medium, high, maximum

Default: high

Optional<integer>num_refine_inference_steps

The number of inference steps to use for refinement.

Range: 8 to 50

Default: 40

Optional<integer>fps

The frame rate of the generated video.

Range: 1 to 60

Default: 30

Optional<string>video_write_mode

The write mode of the generated video.

Allowed values: fast, balanced, small

Default: balanced

Optional<string>video_output_type

The output type of the generated video.

Allowed values: X264 (.mp4), VP9 (.webm), PRORES4444 (.mov), GIF (.gif)

Default: X264 (.mp4)

Optional<integer>num_frames

The number of frames to generate.

Range: 17 to 961

Default: 162

Response Schema

The submit endpoint returns an accepted generation task. Poll the result endpoint with the returned id for terminal outputs or errors.

Optional<string>error

Error message if the task failed. Empty on success.

stringidrequired

Unique identifier for the generation task.

Optional<string>model

Model ID used for the prediction.

Optional<array>outputs

Array of generated content. Empty when status is not completed.

stringstatusrequired

Status of the task: pending, running, completed, failed, or timeout.

Allowed values: pending, running, completed, failed, timeout

Model capabilities

array<string>capability_tagsrequired

Capabilities declared by the model registry.

Default: text-to-video

stringexecution_moderequired

Execution mode declared by the model registry.

Default: async