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-reference-to-video",
"prompt": "A woman walking through a garden",
"reference_image_urls": [
"https://example.com/ref1.jpg"
],
"duration": 8,
"resolution": "1080p",
"reference_type": "STYLE"
}
'{
"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 Reference-to-Video
- VEO 3.1 reference-to-video model (split entry by mode)
- Provide 1-3 reference images via
reference_image_urls, fixed at8seconds - Only Standard and Fast are available; Lite does not support reference images
- 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-reference-to-video",
"prompt": "A woman walking through a garden",
"reference_image_urls": [
"https://example.com/ref1.jpg"
],
"duration": 8,
"resolution": "1080p",
"reference_type": "STYLE"
}
'{
"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-reference-to-video: Standard reference-to-video
veo-3.1-fast-reference-to-video: Fast version
"veo-3.1-reference-to-video"
"veo-3.1-fast-reference-to-video"
Text prompt describing the desired video content
Notes:
- Supports both Chinese and English
"A woman walking through a garden"
List of reference image URLs
Notes:
- Quantity:
1-3images - Multiple reference images are used for character / style consistency
1 - 3 elements["https://example.com/ref1.jpg"]
Output video aspect ratio
Options:
16:9— Landscape (default)9:16— Portrait
"16:9"
Output video duration (seconds)
Notes:
- Reference-to-video is fixed at
8seconds
8
Output video resolution
Options:
720p— Standard definition1080p— High definition (default)4k— 4K Ultra HD
"720p"
Whether to generate accompanying audio
Notes:
- Disabled by default
true
Auto-fix prompt; both model variants support this field.
Do not pass this parameter unless necessary.
true
Content safety level, 1 is the strictest, 6 is the most permissive.
Do not pass this parameter unless necessary.
1 <= x <= 63
Automatically enhance the prompt
Model differences:
- Only available for
veo-3.1-reference-to-video - Not applicable for
veo-3.1-fast-reference-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-reference-to-video - Not applicable for
veo-3.1-fast-reference-to-video
Do not pass this parameter unless necessary.
"allow_adult"
Reference image type
Options: ASSET / STYLE
Model differences:
- Only available for
veo-3.1-reference-to-video - Not applicable for
veo-3.1-fast-reference-to-video
Do not pass this parameter unless necessary.
"STYLE"
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"