Skip to content

LongCat Video

POST/v1/run

Longcat Video is meituan's image-to-video AI model. Bring static images to life with fluid animation, consistent character motion, and professional-grade video output.

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/image-to-video.

Default: meituan/longcat-video/image-to-video

stringpromptrequired

The prompt to guide the video generation.

Default: First-person view from the cockpit of a Formula 1 car. The driver's gloved hands firmly grip the intricate, carbon-fiber steering wheel adorned with numerous colorful buttons and a vibrant digital display showing race data. Beyond the windshield, a sun-drenched racetrack stretches ahead, lined with cheering spectators in the grandstands. Several rival cars are visible in the distance, creating a dynamic sense of competition. The sky above is a clear, brilliant blue, reflecting the exhilarating atmosphere of a high-speed race. high resolution 4k

stringimagerequired

The URL of the image to generate a video from.

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>fps

The frame rate of the generated video.

Range: 1 to 60

Default: 30

Optional<integer>num_refine_inference_steps

The number of inference steps to use for refinement.

Range: 8 to 50

Default: 40

Optional<integer>num_frames

The number of frames to generate.

Range: 17 to 961

Default: 162

Optional<string>video_quality

The quality of the generated video.

Allowed values: low, medium, high, maximum

Default: high

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<string>video_write_mode

The write mode of the generated video.

Allowed values: fast, balanced, small

Default: balanced

Optional<integer>seed

The seed for the random number generator.

Response Schema

The submit endpoint returns a run response. If its status is pending or running, poll GET /v1/run/{id} with the returned opaque ID until it reaches a terminal state.

stringidrequired

Opaque SandBase run identifier. Use it exactly as returned; no prefix is guaranteed.

stringstatusrequired

Current public run status.

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

Optional<string>model

Public SandBase model name used for this run.

Optional<array<object>>outputs

Present only for completed runs. Each object is capability-specific; inspect the selected model schema for its fields.

Optional<object>error

Present only for failed or timeout runs. Contains a public error type and sanitized message.

Optional<string>error.type

Stable public error category.

Optional<string>error.message

Sanitized error message safe to show to clients.

Optional<object>usage

Usage details when available.

Model capabilities

array<string>capability_tagsrequired

Capabilities declared by the model registry.

Default: image-to-video

stringexecution_moderequired

Execution mode declared by the model registry.

Default: async