This is an asynchronous API; only the task_id will be returned. You should use the task_id to request the Task Result API to retrieve the video generation results.
Request Headers
Supports:
application/json
Bearer authentication format, for example: Bearer {{API Key}}.
Request Body
Name of the model checkpoint.Supports:
hunyuan-video-fast
.Width of the output video.Supports:
720
, 1280
.Height of the output video.Supports:
720
forwidth
of1280
1280
forwidth
of720
A seed is a number generates noise, which, makes generation deterministic. Using the same seed and set of parameters will produce identical content each time.Range:
-1 <= x <= 9999999999
.The number of denoising steps. More steps usually produce higher quality content but take more time to generate.Range:
2 <= x <= 30
.Prompt text required to guide the generation.Range:
1 <= x <= 2000
.Response
Use the task_id to request the Task Result API to retrieve the generated outputs.
Example
Here is an example of how to use the Hunyuan Video Fast API.- Generate a task_id by sending a POST request to the Hunyuan Video Fast API.
Request:
Response:
- Use
task_id
to get output videos.
videos
of response.
Request:
Response:
Video files: