Retrieve videos

Table of contents

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

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

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

    [
        {
            "id": "video_id_#1",
            "desc": "",
            "coverURL": "",
            "videoURL": "",
            "status": 1,
            "message": "<Message from chairman Xi>",
            "canRetry": false,
            "videoId": "user:user_id-minimax:account-video:video_id_#1"
        },
        {
            "id": "video_id_#2",
            "desc": "<prompt>",
            "coverURL": "<cover url>",
            "videoURL": "<generated video url>",
            "status": 2,
            "canRetry": false,
            "videoId": "user:user_id-minimax:account-video:video_id_#2"
        }
    ]
    
  • 400 Bad Request

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

    {
      "error": "Unauthorized",
      "code": 401
    }
    
Model

Known status values:

  • 0 Pending
  • 1 Processing
  • 2 Completed
{   // TypeScript, all fields are optional
    id: string
    desc: string
    coverURL: string
    videoURL: string
    status: number
    message: string,
    canRetry: boolean
    videoId: string
}[]
Examples
  • curl "https://api.useapi.net/v1/minimax/videos/?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/videos/?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/videos/?account={account}"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It