Skip to main content
The video generation service provides several capabilities:
  1. Text-to-Video: Generate a video directly from a text description.
  2. Image-to-Video: Generate a video based on an initial image combined with a text description.
  3. First-and-Last-Frame Video: Generate a video by providing both the starting and ending frames.
  4. Subject-Reference Video: Generate a video using a subject’s face photo and a text description, ensuring consistency of facial features throughout the video.

Workflow

Video generation is an asynchronous process consisting of three steps:
  1. Create a generation task: Submit a video generation request and receive a task ID (task_id).
  2. Check task status: Poll the task status using the task_id. Once successful, you will receive a file ID (file_id).
  3. Retrieve video file: Use the file_id to obtain a download link and save the video file.

Features and Code Examples

For simplicity, we encapsulate polling and downloading logic into reusable functions. The following examples demonstrate how to create tasks in two different modes.

Video Generation Results

Text-to-Video

Provide a text description through the prompt parameter to generate a video. For finer control, some models support adding camera motion instructions (e.g., [pan], [zoom], [static]) directly after key descriptions in the prompt. Example output:

Image-to-Video

This mode uses the image specified in the first_frame_image parameter as the video’s opening frame. The prompt then describes how the scene evolves from this static image into motion. This feature is ideal for animating static images. Example output:

First-Last-Frame-to-Video

This mode uses the image specified in the first_frame_image parameter and last_frame_image parameter as the video’s opening and end frame. The prompt then describes how the scene evolves from this static image into motion. Example output:

Subject Reference

This mode uses the subject_reference parameter, taking the provided face photo as input and combining it with the prompt description to generate a video, while ensuring consistency of the subject’s facial features throughout. Example output:

Text to Video

Use this API to create a video generation task from text input.

Image to Video

Use this API to create a video generation task from image, with optional text input.

Pricing

Detailed information on model pricing and API packages.

Rate Limits

Rate limits are restrictions that our API imposes on the number of times a user or client can access our services within a specified period of time.