MiniMax Lyrics
curl --request POST \
--url https://api.ppio.com/v3/minimax-music-lyrics \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"mode": "<string>",
"title": "<string>",
"lyrics": "<string>",
"prompt": "<string>"
}
'import requests
url = "https://api.ppio.com/v3/minimax-music-lyrics"
payload = {
"mode": "<string>",
"title": "<string>",
"lyrics": "<string>",
"prompt": "<string>"
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({mode: '<string>', title: '<string>', lyrics: '<string>', prompt: '<string>'})
};
fetch('https://api.ppio.com/v3/minimax-music-lyrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ppio.com/v3/minimax-music-lyrics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mode' => '<string>',
'title' => '<string>',
'lyrics' => '<string>',
'prompt' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ppio.com/v3/minimax-music-lyrics"
payload := strings.NewReader("{\n \"mode\": \"<string>\",\n \"title\": \"<string>\",\n \"lyrics\": \"<string>\",\n \"prompt\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ppio.com/v3/minimax-music-lyrics")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"mode\": \"<string>\",\n \"title\": \"<string>\",\n \"lyrics\": \"<string>\",\n \"prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ppio.com/v3/minimax-music-lyrics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"mode\": \"<string>\",\n \"title\": \"<string>\",\n \"lyrics\": \"<string>\",\n \"prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"lyrics": "<string>",
"song_title": "<string>",
"style_tags": "<string>"
}音频
MiniMax Lyrics
POST
/
v3
/
minimax-music-lyrics
MiniMax Lyrics
curl --request POST \
--url https://api.ppio.com/v3/minimax-music-lyrics \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"mode": "<string>",
"title": "<string>",
"lyrics": "<string>",
"prompt": "<string>"
}
'import requests
url = "https://api.ppio.com/v3/minimax-music-lyrics"
payload = {
"mode": "<string>",
"title": "<string>",
"lyrics": "<string>",
"prompt": "<string>"
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({mode: '<string>', title: '<string>', lyrics: '<string>', prompt: '<string>'})
};
fetch('https://api.ppio.com/v3/minimax-music-lyrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ppio.com/v3/minimax-music-lyrics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mode' => '<string>',
'title' => '<string>',
'lyrics' => '<string>',
'prompt' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ppio.com/v3/minimax-music-lyrics"
payload := strings.NewReader("{\n \"mode\": \"<string>\",\n \"title\": \"<string>\",\n \"lyrics\": \"<string>\",\n \"prompt\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ppio.com/v3/minimax-music-lyrics")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"mode\": \"<string>\",\n \"title\": \"<string>\",\n \"lyrics\": \"<string>\",\n \"prompt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ppio.com/v3/minimax-music-lyrics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"mode\": \"<string>\",\n \"title\": \"<string>\",\n \"lyrics\": \"<string>\",\n \"prompt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"lyrics": "<string>",
"song_title": "<string>",
"style_tags": "<string>"
}MiniMax AI歌词生成模型,支持根据提示词生成完整歌词或编辑续写已有歌词,生成的歌词含结构标签可直接用于音乐生成
请求头
枚举值:
application/jsonBearer 身份验证格式,例如:Bearer {{API 密钥}}。
请求体
生成模式。write_full_song:写完整歌曲;edit:编辑/续写歌词可选值:
write_full_song, edit歌曲标题。传入后输出将保持该标题不变
现有歌词内容,仅在edit模式下有效。可用于续写或修改已有歌词长度限制:0 - 3500
提示词/指令,用于描述歌曲主题、风格或编辑方向。为空时随机生成长度限制:0 - 2000
响应
生成的歌词,包含结构标签,可直接用于音乐生成API
生成的歌名
风格标签,逗号分隔
最后修改于 2026年4月1日
⌘I