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
Field | Value |
---|---|
API-KEY | <api-key> |
Content-Type | application/json |
Request Parameters
Field Name | Type | Example | Description | Required |
---|---|---|---|---|
type | string | TEXT_TO_VIDEO | Feature identifier | ✔️ |
model | string | Qubico/hunyuan | AI model to use | ✔️ |
conversationId | string | TEXT_TO_VIDEO | Conversation context | ✔️ |
promptObject.prompt | string | a peaceful garden | Video description | ✔️ |
promptObject.aspectRatio | string | 16:9 | Video aspect ratio (16:9, 9:16, 1:1) | ✔️ |
promptObject.taskType | string | txt2video | Generation mode (txt2video or fast-txt2video) | ✔️ |
Generation Modes
txt2video
- Standard quality generationfast-txt2video
- Faster generation with optimized processing
Code Examples
- cURL
- JavaScript
- Python
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"
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
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'
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
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"
}
}
response = requests.post(url, headers=headers, json=data)
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
{}