Skip to main content

Hunyuan AI - Text to Video

Generate high-quality videos from text descriptions using Tencent's Hunyuan AI model. Offers both standard and fast generation modes with multiple aspect ratio options.

Endpoint

Request Headers

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Request Parameters

Field NameTypeExampleDescriptionRequired
typestringTEXT_TO_VIDEOFeature identifier✔️
modelstringQubico/hunyuanAI model to use✔️
conversationIdstringTEXT_TO_VIDEOConversation context✔️
promptObject.promptstringa peaceful gardenVideo description✔️
promptObject.aspectRatiostring16:9Video aspect ratio (16:9, 9:16, 1:1)✔️
promptObject.taskTypestringtxt2videoGeneration mode (txt2video or fast-txt2video)✔️

Generation Modes

  • txt2video - Standard quality generation
  • fast-txt2video - Faster generation with optimized processing

Code Examples

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "TEXT_TO_VIDEO",
"model": "Qubico/hunyuan",
"conversationId": "TEXT_TO_VIDEO",
"promptObject": {
"prompt": "a peaceful zen garden with falling cherry blossoms",
"aspectRatio": "16:9",
"taskType": "txt2video"
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "TEXT_TO_VIDEO",
"model": "Qubico/hunyuan",
"conversationId": "TEXT_TO_VIDEO",
"promptObject": {
"prompt": "a peaceful zen garden with falling cherry blossoms",
"aspectRatio": "16:9",
"taskType": "txt2video"
}
}'

Response

{}