Retrieve the list of music styles
September 25, 2024 (August 17, 2026)
This endpoint has been decommissioned. Describe the style you want in the prompt of POST music/create
Table of contents
This endpoint has been decommissioned. MiniMax no longer publishes a style catalog — describe the style you want in the prompt parameter of POST music/create instead.
You can preview all styles at music/create
Use hailuoai.com/music account to generate music, see Setup MiniMax for details.
https://api.useapi.net/v1/minimax/music/styles/?…
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
API tokenis required, see Setup useapi.net for details.
Query Parameters
accountis optional when only one account configured. However, if you have multiple accounts configured, this parameter becomes required.
Responses
-
[ { "name": "Classical", "styles": [ { "url": "https://cdn.hailuoai.com/samle_1.mp3", "styleId": "<sample style id>", "name": "<sample ong name>" } ] }, { "name": "World", "styles": [ { "url": "https://cdn.hailuoai.com/samle_2.mp3", "styleId": "<sample style id>", "name": "<sample ong name>" }, { "url": "https://cdn.hailuoai.com/samle_3.mp3", "styleId": "<sample style id>", "name": "<sample ong name>" } ] } ] -
{ "error": "<Error message>", "code": 400 } -
{ "error": "Unauthorized", "code": 401 }
Model
{ // TypeScript, all fields are optional
name: string
styles: {
url: string
styleId: string
name: string
}[]
}[]
Examples
-
curl "https://api.useapi.net/v1/minimax/music/styles/?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/music/styles/?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/music/styles/?account={account}" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.get(apiUrl, headers=headers) print(response, response.json())