curl --request POST \
--url https://api.aihubmax.com/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "veo-3.1-text-to-video",
"prompt": "A golden retriever running on the beach at sunset",
"aspect_ratio": "16:9",
"duration": 8,
"resolution": "1080p",
"generate_audio": true
}
'{
"created": 1757165031,
"id": "task-unified-1757165031-uyujaw3d",
"model": "<string>",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 45
},
"type": "video"
}{
"error": {
"message": "Invalid request format",
"type": "invalid_request_error"
}
}{
"error": {
"message": "Invalid API key",
"type": "authentication_error"
}
}{
"error": {
"message": "Insufficient account balance",
"type": "insufficient_quota"
}
}{
"error": {
"message": "Parameter validation failed",
"type": "validation_error"
}
}{
"error": {
"message": "Rate limit exceeded",
"type": "rate_limit_error"
}
}{
"error": {
"message": "Internal server error",
"type": "server_error"
}
}{
"error": {
"message": "Service temporarily unavailable, please try again later",
"type": "service_unavailable"
}
}Veo3.1 Text-to-Video
- VEO 3.1 text-to-video model (split entry by mode)
promptonly, no image input- Standard and Fast support
720p/1080p/4k; Lite only supports720p/1080p - Async processing mode, use the returned task ID to query task status
- Generated video links are valid for 24 hours, please save them promptly
curl --request POST \
--url https://api.aihubmax.com/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "veo-3.1-text-to-video",
"prompt": "A golden retriever running on the beach at sunset",
"aspect_ratio": "16:9",
"duration": 8,
"resolution": "1080p",
"generate_audio": true
}
'{
"created": 1757165031,
"id": "task-unified-1757165031-uyujaw3d",
"model": "<string>",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 45
},
"type": "video"
}{
"error": {
"message": "Invalid request format",
"type": "invalid_request_error"
}
}{
"error": {
"message": "Invalid API key",
"type": "authentication_error"
}
}{
"error": {
"message": "Insufficient account balance",
"type": "insufficient_quota"
}
}{
"error": {
"message": "Parameter validation failed",
"type": "validation_error"
}
}{
"error": {
"message": "Rate limit exceeded",
"type": "rate_limit_error"
}
}{
"error": {
"message": "Internal server error",
"type": "server_error"
}
}{
"error": {
"message": "Service temporarily unavailable, please try again later",
"type": "service_unavailable"
}
}Authorizations
All APIs require Bearer Token authentication
Add to request header:
Authorization: Bearer YOUR_API_KEY
Body
veo-3.1-text-to-video: Standard text-to-video
veo-3.1-fast-text-to-video: Fast version
veo-3.1-lite-text-to-video: Lite version, only supports 720p / 1080p; 1080p only supports 8 seconds
"veo-3.1-text-to-video"
"veo-3.1-fast-text-to-video"
"veo-3.1-lite-text-to-video"
Text prompt describing the desired video content
Notes:
- Supports both Chinese and English
- Detailed descriptions yield better generation results
"A golden retriever running on the beach at sunset"
Output video aspect ratio
Options:
16:9— Landscape (default)9:16— Portrait
"16:9"
Output video duration (seconds)
Options: 4, 6, 8
Model differences:
veo-3.1-lite-text-to-videoatresolution=1080ponly supports8seconds
4
Output video resolution
Options:
720p— Standard definition1080p— High definition (default)4k— 4K Ultra HD
Model differences:
veo-3.1-text-to-video/veo-3.1-fast-text-to-videosupport720p/1080p/4kveo-3.1-lite-text-to-videoonly supports720p/1080p
"720p"
"1080p"
"4k"
Whether to generate accompanying audio
Notes:
- Disabled by default
- All three model variants support
trueorfalse
true
Auto-fix prompt
Notes:
- Used to automatically rewrite prompts that violate safety policies or validation requirements
- All three model variants support this field; if omitted, the default behavior of the corresponding model is used
Do not pass this parameter unless necessary.
true
Content safety level, 1 is the strictest, 6 is the most permissive
Model differences:
- Available for
veo-3.1-text-to-video/veo-3.1-fast-text-to-video - Not applicable for
veo-3.1-lite-text-to-video
Do not pass this parameter unless necessary.
1 <= x <= 63
Automatically enhance the prompt
Model differences:
- Only available for
veo-3.1-text-to-video - Not applicable for
veo-3.1-fast-text-to-video/veo-3.1-lite-text-to-video
Do not pass this parameter unless necessary.
true
Person generation control
Options: dont_allow / allow_adult
Model differences:
- Only available for
veo-3.1-text-to-video - Not applicable for
veo-3.1-fast-text-to-video/veo-3.1-lite-text-to-video
Do not pass this parameter unless necessary.
"allow_adult"
Negative prompt, describing elements you do not want to appear
Notes:
- Separate multiple keywords with commas
Do not pass this parameter unless necessary.
"blurry, low quality, watermark"
Random seed
Notes:
- Set a fixed value to reproduce generation results
- Omit for random
Do not pass this parameter unless necessary.
42
Response
Task created successfully
Task creation timestamp
1757165031
Task ID
"task-unified-1757165031-uyujaw3d"
Actual model name used
Specific task type
video.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Asynchronous task info
Show child attributes
Show child attributes
Task output type
video "video"