Setup MiniMax
Table of contents
- Generating videos using hailuoai.video
- Generating music using hailuoai.com/music
- Configure MiniMax API account
- Verify
account
,url
andtoken
values
Approximately 5 minutes to complete setup steps.
MiniMax AI, a Chinese AI startup backed by Alibaba and Tencent. MiniMax unveiled its latest text-to-video AI model at Hailuo AI in early September 2024. This model is notable for generating ultra-realistic video clips with precise prompt following.
Generating videos using hailuoai.video
You need a hailuoai.video account to generate videos using MiniMax API. Sign-in with your Google account at hailuoai.video. You can create as many accounts as you need. Our API uses automated load balancing and will select an account with available capacity.
Expand hailuoai.video
Step 1 • Navigate to hailuoai.video
Open Chromium-compatible browser (e.g. Google Chrome, Microsoft Edge or Opera) and navigate to https://hailuoai.video.
Once the page is fully loaded, ensure that you’re logged in with your Google account 1
.
Open Developer Tools by right-clicking on the page and selecting “Inspect Element” 2
.
Finally refresh page 3
.
Step 2 • Open Developer Tools » Application
Select Developer Tools » Application 1
.
Step 3 • Locate account
value
Once Application 1
selected find:
- Local storage » https://hailuoai.video
2
- Locate ANONYMOUS_REAL_USER_ID key and copy ANONYMOUS_REAL_USER_ID value
3
. This is youraccount
number.
As an example below the account
number is 301348409581838336
.
Step 4 • Locate url
value
Select Developer Tools » Network 1
:
- Type
/register
in the filter box2
and hit Enter. - Make sure that
All
orFetch/XHR
is selected3
. - You should see a single http call entry as shown below
4
, click on that entry. - Select “Headers” tab
5
. - Locate General » Request URL
6
as shown below and copy it’s value. This is yoururl
.
As an example below the url
is
https://hailuoai.video/v1/api/user/device/register?device_platform=web&app_id=3001&version_code=22201&uuid=8a2d8b5d-ac0d-4bb5-8028-3177fa64f861&device_id=301350748241866752&os_name=Windows&browser_name=opera&device_memory=8&cpu_core_num=12&browser_language=en-US&browser_platform=Win32&screen_width=1920&screen_height=1080&unix=1728704107000
Step 5 • Locate token
value
Locate Request Headers » Token 1
as shown below and copy it’s value. This is your token
.
As an example below the token
is
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MzIxNTk4MjksInVzZXIiOnsiaWQiOiIzMDEzNDg0MDk1ODE4MzgzMzYiLCJuYW1lIjoidXNlIGFwaSIsImF2YXRhciI6Imh0dHBzOi8vbGgzLmdvb2dsZXVzZXJjb250ZW50LmNvbS9hL0FDZzhvY0lLNEJaMmpfSlIxcTh3TkFKU2RlZzlwVHZlTDJTSVhFRjg4TkU4MV85VlowbFBRQT1zOTYtYyIsImRldmljZUlEIjoiIn19.1-zGnbUfENnVdjDGDBuaZ4Sf7rTelfqUKk5XNj7liE4
If you are curious, you can use jwt.io to decode the token and see its content.
Generating music using hailuoai.com/music
You need a hailuoai.com/music account to generate music using MiniMax API. You can create as many accounts as you need. Our API uses automated load balancing and will select an account with available capacity.
Expand hailuoai.com/music
Step 1 • Navigate to hailuoai.com/music
Open Chromium-compatible browser (e.g. Google Chrome, Microsoft Edge or Opera) and navigate to https://hailuoai.com/music.
Once the page is fully loaded, open Developer Tools by right-clicking on the page and selecting “Inspect Element” 1
.
Step 2 • Open Developer Tools » Application
Select Developer Tools » Application 1
.
Step 3 • Clear Application Storage
Once Application 1
selected find and clear (right-click to see popup menu Clear) following Storage 2
items:
- All Local storage entries
3
- All Session storage entries
4
- All Cookies
5
Reload page 6
by pasting https://hailuoai.com/music again and hitting enter.
Step 4 • Locate account
value
Once the page is fully reloaded verify that you are on the 1
https://hailuoai.com/music, if not paste it into the browser url again and let the page fully load:
- Select Local storage » https://hailuoai.com
2
- Locate ANONYMOUS_REAL_USER_ID key
3
- Copy ANONYMOUS_REAL_USER_ID value
4
. This is youraccount
number.
As an example below the account
number is 298732619965022215
.
Step 5 • Locate url
value
Select Developer Tools » Network 1
:
- Type
/register
in the filter box2
and hit Enter. - Make sure that
All
is selected3
. - You should see a single http call entry as shown below
4
, click on that entry. - Select “Headers” tab
5
. - Locate General » Request URL
6
as shown below and copy it’s value. This is yoururl
.
As an example below the url
is
https://hailuoai.com/v1/api/user/device/register?device_platform=web&app_id=3001&version_code=22201&uuid=5c8e7861-58db-4235-a526-80afbc279c88&device_id=298732618450878466&os_name=Windows&browser_name=opera&device_memory=8&cpu_core_num=12&browser_language=en-US&browser_platform=Win32&screen_width=1920&screen_height=1080&unix=1728079775000
Step 6 • Locate token
value
Locate Request Headers » Token 1
as shown below and copy it’s value. This is your token
.
As an example below the token
is
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MzE1MzU1NzYsInVzZXIiOnsiaWQiOiIyOTg3MzI2MTk5NjUwMjIyMTUiLCJuYW1lIjoi5bCP6J665bi9MjIxNSIsImF2YXRhciI6Imh0dHBzOi8vY2RuLnlpbmdzaGktYWkuY29tL3Byb2QvdXNlcl9hdmF0YXIvMTcwNjI2NzM2NDE2NDQwNDA3Ny0xNzMxOTQ1NzA2Njg5NjU4OTZvdmVyc2l6ZS5wbmciLCJkZXZpY2VJRCI6IjI5ODczMjYxODQ1MDg3ODQ2NiIsImlzQW5vbnltb3VzIjp0cnVlfX0.lOzbwFnC4Xv2YReBRgNozjsN66YXajoxTV_VEG-t3Gk
If you are curious, you can use jwt.io to decode the token and see its content.
Configure MiniMax API account
Please use the Verify feature below to ensure all the retrieved values above are correct.
Proceed to POST /accounts/account
and configure the MiniMax API account to using account
, url
and token
values retrieved above.