Bytedance HuMo: Human-Centric Video Generation
HuMo generates high-quality, human-centric videos from text, images, and audio with unparalleled control and precision.
1import requests
2import json
3
4url = "https://api.segmind.com/v1/bytedance-humo"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "frames": 30,
12 "scale_a": 5,
13 "scale_t": 5,
14 "mode": "TA",
15 "height": 720,
16 "width": 1280,
17 "steps": 30
18}
19
20response = requests.post(url, headers=headers, json=data)
21
22if response.status_code == 200:
23 result = response.json()
24 print(json.dumps(result, indent=2))
25else:
26 print(f"Error: {response.status_code}")
27 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/bytedance-humo"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "frames": 30,
12 "scale_a": 5,
13 "scale_t": 5,
14 "mode": "TA",
15 "height": 720,
16 "width": 1280,
17 "steps": 30
18}
19
20response = requests.post(url, headers=headers, json=data)
21
22if response.status_code == 200:
23 result = response.json()
24 print(json.dumps(result, indent=2))
25else:
26 print(f"Error: {response.status_code}")
27 print(response.text)API Endpoint
https://api.segmind.com/v1/bytedance-humoParameters
framesoptionalintegerNumber of frames for the generated video
30Range: 10 - 100heightoptionalintegerVideo height (e.g., 720 or 480).
720720480modeoptionalstringInput mode: TA for text+audio; TIA for text+image+audio.
"TA""TA""TIA"scale_aoptionalnumberStrength of audio guidance. Higher = better audio-motion sync
5Range: 1 - 10scale_toptionalnumberStrength of text guidance. Higher = better adherence to text prompts
5Range: 1 - 10stepsoptionalinteger30Range: 1 - 100widthoptionalintegerVideo width (e.g., 1280 or 832).
12801280832Response Type
Returns: Video
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
Bad Request
Invalid parameters or request format
Unauthorized
Missing or invalid API key
Forbidden
Insufficient permissions
Not Found
Model or endpoint not found
Insufficient Credits
Not enough credits to process request
Rate Limited
Too many requests
Server Error
Internal server error
Bad Gateway
Service temporarily unavailable
Timeout
Request timed out