curl --request POST \
--url https://api.goenhance.ai/api/v1/audio/generations \
--header 'Content-Type: application/json' \
--data '
{
"model": "minimax-music-3-0",
"prompt": "Indie folk, warm and nostalgic",
"lyrics": "[Verse]\nWe folded paper boats in May\n[Chorus]\nPaper boats, carry me home"
}
'import requests
url = "https://api.goenhance.ai/api/v1/audio/generations"
payload = {
"model": "minimax-music-3-0",
"prompt": "Indie folk, warm and nostalgic",
"lyrics": "[Verse]
We folded paper boats in May
[Chorus]
Paper boats, carry me home"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'minimax-music-3-0',
prompt: 'Indie folk, warm and nostalgic',
lyrics: '[Verse]\nWe folded paper boats in May\n[Chorus]\nPaper boats, carry me home'
})
};
fetch('https://api.goenhance.ai/api/v1/audio/generations', 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.goenhance.ai/api/v1/audio/generations",
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([
'model' => 'minimax-music-3-0',
'prompt' => 'Indie folk, warm and nostalgic',
'lyrics' => '[Verse]
We folded paper boats in May
[Chorus]
Paper boats, carry me home'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.goenhance.ai/api/v1/audio/generations"
payload := strings.NewReader("{\n \"model\": \"minimax-music-3-0\",\n \"prompt\": \"Indie folk, warm and nostalgic\",\n \"lyrics\": \"[Verse]\\nWe folded paper boats in May\\n[Chorus]\\nPaper boats, carry me home\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
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.goenhance.ai/api/v1/audio/generations")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"minimax-music-3-0\",\n \"prompt\": \"Indie folk, warm and nostalgic\",\n \"lyrics\": \"[Verse]\\nWe folded paper boats in May\\n[Chorus]\\nPaper boats, carry me home\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goenhance.ai/api/v1/audio/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"minimax-music-3-0\",\n \"prompt\": \"Indie folk, warm and nostalgic\",\n \"lyrics\": \"[Verse]\\nWe folded paper boats in May\\n[Chorus]\\nPaper boats, carry me home\"\n}"
response = http.request(request)
puts response.read_bodyMiniMax Music 3.0
Generate one full song (up to about 5 minutes) with MiniMax Music 3.0.
- With your lyrics: send
lyrics(and optionally apromptfor the style). - Lyrics written for you: send only a
prompt. - Instrumental:
instrumental: trueplus aprompt.
Pricing (per song):
| Option | Tokens | USD |
|---|---|---|
| Per song (up to 5 min) | 9.75 | $0.195 |
Result: one json item { "type": "audio", "value": "https://...mp3", "audio_duration": 125.36, "lyrics": "..." } (lyrics only when you sent them). Result links expire (see link_expired_at).
curl --request POST \
--url https://api.goenhance.ai/api/v1/audio/generations \
--header 'Content-Type: application/json' \
--data '
{
"model": "minimax-music-3-0",
"prompt": "Indie folk, warm and nostalgic",
"lyrics": "[Verse]\nWe folded paper boats in May\n[Chorus]\nPaper boats, carry me home"
}
'import requests
url = "https://api.goenhance.ai/api/v1/audio/generations"
payload = {
"model": "minimax-music-3-0",
"prompt": "Indie folk, warm and nostalgic",
"lyrics": "[Verse]
We folded paper boats in May
[Chorus]
Paper boats, carry me home"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'minimax-music-3-0',
prompt: 'Indie folk, warm and nostalgic',
lyrics: '[Verse]\nWe folded paper boats in May\n[Chorus]\nPaper boats, carry me home'
})
};
fetch('https://api.goenhance.ai/api/v1/audio/generations', 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.goenhance.ai/api/v1/audio/generations",
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([
'model' => 'minimax-music-3-0',
'prompt' => 'Indie folk, warm and nostalgic',
'lyrics' => '[Verse]
We folded paper boats in May
[Chorus]
Paper boats, carry me home'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.goenhance.ai/api/v1/audio/generations"
payload := strings.NewReader("{\n \"model\": \"minimax-music-3-0\",\n \"prompt\": \"Indie folk, warm and nostalgic\",\n \"lyrics\": \"[Verse]\\nWe folded paper boats in May\\n[Chorus]\\nPaper boats, carry me home\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
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.goenhance.ai/api/v1/audio/generations")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"minimax-music-3-0\",\n \"prompt\": \"Indie folk, warm and nostalgic\",\n \"lyrics\": \"[Verse]\\nWe folded paper boats in May\\n[Chorus]\\nPaper boats, carry me home\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goenhance.ai/api/v1/audio/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"minimax-music-3-0\",\n \"prompt\": \"Indie folk, warm and nostalgic\",\n \"lyrics\": \"[Verse]\\nWe folded paper boats in May\\n[Chorus]\\nPaper boats, carry me home\"\n}"
response = http.request(request)
puts response.read_bodyHeaders
Body
Model name. Must be minimax-music-3-0.
minimax-music-3-0 Lyrics to sing, with \n between lines. Supports section tags such as [Intro], [Verse], [Pre Chorus], [Chorus], [Bridge], [Outro], [Inst], [Solo]. Max 3500 characters. Omit it and give a prompt to have the lyrics written for you. Not allowed when instrumental is true.
3500Style, mood and scenario of the music, e.g. Pop, melancholic, perfect for a rainy night. Max 2000 characters. Required when instrumental is true or when lyrics is omitted.
2000true = no vocals. Requires prompt and does not accept lyrics.
Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.
"https://your-server.com/goenhance/callback"
