Skip to main content
POST
/
v3
/
async
/
hunyuan-video-fast
Hunyuan Text-to-Video
curl --request POST \
  --url https://api.myrouter.ai/v3/async/hunyuan-video-fast \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "model_name": "<string>",
  "width": 123,
  "height": 123,
  "seed": 123,
  "steps": 123,
  "prompt": "<string>"
}
'
{
  "task_id": "<string>"
}
HunyuanVideo is an industry-leading text-to-video generation model that can generate high-quality videos with realistic motion based on text descriptions.
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 to retrieve the generated results.

Request Headers

Content-Type
string
required
Enum value: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

model_name
string
required
Model name.Supported: hunyuan-video-fast.
width
integer
required
Width of the output video.Supported: 720, 1280.
height
integer
required
Height of the output video.Supported:
  • When width is 1280, height is 720
  • When width is 720, height is 1280
seed
integer
required
Random seed used for noise generation, making the output reproducible. The same seed and parameters will produce the same content.Range: -1 <= x <= 9999999999.
steps
integer
required
Number of denoising steps. More steps generally produce better results but take longer.Range: 2 <= x <= 30.
prompt
string
required
Prompt to guide the generation.Range: 1 <= x <= 2000.

Response

task_id
string
required
The task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.