Retrieve your hailuoai.video account information
October 14, 2024 (March 17, 2025)
Table of contents
Retrieve your hailuoai.video account information, see Setup MiniMax for details.
https://api.useapi.net/v1/minimax/features/?…
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
API token
is required, see Setup useapi.net for details.
Query Parameters
account
is optional when only one account configured. However, if you have multiple accounts configured, this parameter becomes required.
Responses
-
{ "privilegeType": 1, "totalCredits": 2278, "expireText": "80 points will expire within 24 hours", "videoCost": 30, "queueLength": 3, "memberText": "Subscribe", "memberHoverText": "", "expireTime": 0, "isNewUser": false, "questionText": "", "trialExpireTime": 0, "trialText": 0, "memberName": "Free", "newUserVersion": 0, "creditExpireText": [ { "credit": 2, "endTime": 1742255999999 } ], "modelControl": [ { "modelId": "23021", "videoCost": 45, "isMember": false, "freeCount": 0, "durations": [], "resolutions": [], "modes": [], "videoCosts": [] }, { "modelId": "image-01", "videoCost": 1, "isMember": false, "freeCount": 0, "durations": [], "resolutions": [], "modes": [], "videoCosts": [] } ], "supportModes": [], "imageQueueLength": 5 }
-
{ "error": "<Error message>", "code": 400 }
-
{ "error": "Unauthorized", "code": 401 }
Model
{ // TypeScript, all fields are optional
privilegeType: number
totalCredits: number
expireText: string
videoCost: number
queueLength: number
memberText: string
memberHoverText: string
expireTime: number
isNewUser: boolean
questionText: string
trialExpireTime: number
trialText: number
memberName: string
newUserVersion: number
creditExpireText: {
credit: number
endTime: number
}[]
modelControl: {
modelId: string
videoCost: number
isMember: boolean
freeCount: number
durations: any[]
resolutions: any[]
modes: any[]
videoCosts: any[]
}[]
supportModes: any[]
imageQueueLength: number
}
Examples
-
curl "https://api.useapi.net/v1/minimax/features/?account=account" \ -H "Accept: application/json" \ -H "Authorization: Bearer …"
-
const token = "API token"; const account = "Previously configured account"; const apiUrl = `https://api.useapi.net/v1/minimax/features/?account=${account}`; const response = await fetch(apiUrl, { headers: { "Authorization": `Bearer ${token}`, }, }); const result = await response.json(); console.log("response", {response, result});
-
import requests token = "API token" account = "Previously configured account" apiUrl = f"https://api.useapi.net/v1/minimax/features/?account={account}" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.get(apiUrl, headers=headers) print(response, response.json())