Retrieve the list of images and videos currently being executed by the API

September 25, 2024 (March 17, 2025)

Table of contents

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

This endpoint retrieves the list of images and videos currently being executed by the API.

If you want to get all videos currently being executed including you manually initiated from hailuoai.com website use GET /videos.

If you want to get all images currently being executed including you manually initiated from hailuoai.com website use GET /images.

https://api.useapi.net/v1/minimax/scheduler/

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
Responses
  • 200 OK

    [
        {
            "videoId": "user:user_id-minimax:account-video:id1",
            "started": "2024-09-25T01:55:16.128Z",
            "elapsed": "03:57",
            "replyUrl": "<optional callback URL>",
            "replyRef": "<optional reference>"
        },
        {
            "videoId": "user:user_id-minimax:account-image:inN",
            "started": "2024-09-25T01:58:18.555Z",
            "elapsed": "00:35",
            "replyUrl": "<optional callback URL>",
            "replyRef": "<optional reference>"
        }
    ]
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
Model
{ // TypeScript, all fields are optional
    videoId: string
    imageId: string
    started: number
    elapsed: string
    replyUrl: string
    replyRef: string
}[]
Examples
  • curl "https://api.useapi.net/v1/minimax/scheduler/" \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const apiUrl = `https://api.useapi.net/v1/minimax/scheduler/`; 
    const response = await fetch(apiUrl, {
      headers: {
        "Authorization": `Bearer ${token}`,
      },
    });
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    token = "API token"
    apiUrl = f"https://api.useapi.net/v1/minimax/scheduler/"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It