Retrieve the list of text-to-speech audio clips you have generated
December 23, 2024 (March 17, 2025)
Table of contents
Please configure at least one www.minimax.io/audio account for this endpoint, see Setup MiniMax for details.
This endpoint will return audio clips generated by
https://api.useapi.net/v1/minimax/audio/?…
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. -
page
andpage_size
are optional. Use them to retrieve the next page of data when the returnedhas_more
field istrue
.
Defaultpage_size
is 100.
Responses
-
{ "audio_list": [ { "audio_id": "user:user_id-minimax:account_id-audio:audio_id", "audio_review": 0, "user_id": 987654321, "audio_title": "<Audio title>", "audio_url": "https://cdn.hailuoai.video/...mp3", "update_time": 1122334455778 }, { "audio_id": "user:user_id-minimax:account_id-audio:audio_id", "audio_review": 0, "user_id": 987654321, "audio_title": "Audio title", "audio_url": "https://cdn.hailuoai.video/...mp3", "update_time": 1122334455779 } ], "total": 2025, "has_more": true }
-
{ "error": "<Error message>", "code": 400 }
-
{ "error": "Unauthorized", "code": 401 }
Model
{ // TypeScript, all fields are optional
audio_list: {
audio_id: string
audio_review: number
user_id: number
audio_title: string
audio_url: string
update_time: number
}[]
total: number
has_more: boolean
}
Examples
-
curl "https://api.useapi.net/v1/minimax/audio/?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/audio/?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/audio/?account={account}" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.get(apiUrl, headers=headers) print(response, response.json())