> ## Documentation Index
> Fetch the complete documentation index at: https://docs.myrouter.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Hunyuan Text-to-Video

HunyuanVideo is an industry-leading text-to-video generation model that can generate high-quality videos with realistic motion based on text descriptions.

<Tip>
  This is an **asynchronous** API that only returns the task\_id of the async task. You should use this task\_id to call the [Query Task Result API](/docs/models/reference-get-async-task-result) to retrieve the generated results.
</Tip>

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum value: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Key}}.
</ParamField>

## Request Body

<ParamField body="model_name" type="string" required={true}>
  Model name.

  Supported: `hunyuan-video-fast`.
</ParamField>

<ParamField body="width" type="integer" required={true}>
  Width of the output video.

  Supported: `720`, `1280`.
</ParamField>

<ParamField body="height" type="integer" required={true}>
  Height of the output video.

  Supported:

  * When `width` is `1280`, `height` is `720`
  * When `width` is `720`, `height` is `1280`
</ParamField>

<ParamField body="seed" type="integer" required={true}>
  Random seed used for noise generation, making the output reproducible. The same seed and parameters will produce the same content.

  Range: `-1 <= x <= 9999999999`.
</ParamField>

<ParamField body="steps" type="integer" required={true}>
  Number of denoising steps. More steps generally produce better results but take longer.

  Range: `2 <= x <= 30`.
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  Prompt to guide the generation.

  Range: `1 <= x <= 2000`.
</ParamField>

## Response

<ResponseField name="task_id" type="string" required={true}>
  The task\_id of the async task. Use the task\_id to call the [Get Async Task Result API](/docs/models/reference-get-async-task-result) to retrieve the generated result.
</ResponseField>
