Retrieve your hailuoai.video and minimax.io/audio accounts information

October 14, 2024 (May 31, 2025)

Table of contents

  1. Request Headers
  2. Query Parameters
  3. Responses
  4. Model
  5. Examples
  6. Try It

Retrieve your hailuoai.video and www.minimax.io/audio accounts information, see Setup MiniMax for details.

This endpoint provides detailed information about available credits and features supported by your account, such as the list of models, credits required for different models, maximum size of jobs query, and so on.

https://api.useapi.net/v1/minimax/features/?…

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
Query Parameters
  • account is optional when only one account configured. However, if you have multiple accounts configured, this parameter becomes required.
Responses
  • 200 OK

    {
        "privilegeType": 0,
        "totalCredits": 100,
        "expireText": "100 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": 100,
                "endTime": 1748735999999
            }
        ],
        "modelControl": [
            {
                "modelId": "image-01",
                "videoCost": 1,
                "isMember": false,
                "freeCount": 0,
                "durations": [],
                "resolutions": [],
                "modes": [],
                "videoCosts": []
            },
            {
                "modelId": "23000",
                "videoCost": 30,
                "isMember": false,
                "freeCount": 0,
                "durations": [],
                "resolutions": [],
                "modes": [],
                "videoCosts": []
            },
            {
                "modelId": "23010",
                "videoCost": 30,
                "isMember": false,
                "freeCount": 0,
                "durations": [],
                "resolutions": [],
                "modes": [],
                "videoCosts": []
            },
            {
                "modelId": "23001",
                "videoCost": 30,
                "isMember": false,
                "freeCount": 0,
                "durations": [],
                "resolutions": [],
                "modes": [],
                "videoCosts": []
            },
            {
                "modelId": "23011",
                "videoCost": 30,
                "isMember": false,
                "freeCount": 0,
                "durations": [],
                "resolutions": [],
                "modes": [],
                "videoCosts": []
            },
            {
                "modelId": "23102",
                "videoCost": 30,
                "isMember": false,
                "freeCount": 0,
                "durations": [],
                "resolutions": [],
                "modes": [],
                "videoCosts": []
            },
            {
                "modelId": "23021",
                "videoCost": 45,
                "isMember": false,
                "freeCount": 0,
                "durations": [],
                "resolutions": [],
                "modes": [],
                "videoCosts": []
            }
        ],
        "supportModes": [],
        "imageQueueLength": 5,
        "totalCreditsStr": "100",
        "isPaidSubscription": false,
        "canManagePlan": true,
        "audio": {
            "total_credit": 100,
            "sub_credits": [
                {
                    "credit_type": 3,
                    "end_time": 1748735999999,
                    "credit": 100,
                    "text": "",
                    "record": [
                        {
                            "credit": 100,
                            "endTime": 1748735999999
                        }
                    ],
                    "coin_type": 0
                }
            ],
            "base_resp": {}
        }
    }
    
  • 400 Bad Request

    {
        "error": "<Error message>",
        "code": 400
    }
    
  • 401 Unauthorized

    {
      "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
    totalCreditsStr: string
    isPaidSubscription: boolean
    canManagePlan: boolean
    audio: {
        total_credit: number
        sub_credits: {
            credit_type: number
            end_time: number
            credit: number
            text: string
            record: {
                credit: number
                endTime: number
            }[]
            coin_type: 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())
    
Try It