Retrieve your ailuoai.video account information

October 14, 2024

Table of contents

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

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
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": 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": ""
    }
    
  • 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
  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())
    
Try It