Retrieve your ailuoai.video account information
October 14, 2024
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": 1100, "expireText": "100 points will expire within 24 hours", "videoCost": 30, "queueLength": 5, "memberText": "Standard", "memberHoverText": "Membership expires time: 2024-11-09", "expireTime": 123456789, "isNewUser": true, "questionText": "" }
-
{ "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
error: string
code: 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())