curl --request POST \
--url https://api.mountsea.ai/producer/audios \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"action": "create_music",
"soundPrompt": "driving energetic beat, rapid rhythm, high BPM",
"lyrics": "[Verse 1]\nI've been running in circles...\n\n[Chorus]\nI keep coming back to you...",
"title": "Back to You",
"model": "Lyria 3 Pro",
"seed": 877369,
"makeInstrumental": false,
"imageUrl": "https://example.com/cover.jpg"
}
EOFimport requests
url = "https://api.mountsea.ai/producer/audios"
payload = {
"action": "create_music",
"soundPrompt": "driving energetic beat, rapid rhythm, high BPM",
"lyrics": "[Verse 1]
I've been running in circles...
[Chorus]
I keep coming back to you...",
"title": "Back to You",
"model": "Lyria 3 Pro",
"seed": 877369,
"makeInstrumental": False,
"imageUrl": "https://example.com/cover.jpg"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
action: 'create_music',
soundPrompt: 'driving energetic beat, rapid rhythm, high BPM',
lyrics: '[Verse 1]\nI\'ve been running in circles...\n\n[Chorus]\nI keep coming back to you...',
title: 'Back to You',
model: 'Lyria 3 Pro',
seed: 877369,
makeInstrumental: false,
imageUrl: 'https://example.com/cover.jpg'
})
};
fetch('https://api.mountsea.ai/producer/audios', 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.mountsea.ai/producer/audios",
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([
'action' => 'create_music',
'soundPrompt' => 'driving energetic beat, rapid rhythm, high BPM',
'lyrics' => '[Verse 1]
I\'ve been running in circles...
[Chorus]
I keep coming back to you...',
'title' => 'Back to You',
'model' => 'Lyria 3 Pro',
'seed' => 877369,
'makeInstrumental' => false,
'imageUrl' => 'https://example.com/cover.jpg'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.mountsea.ai/producer/audios"
payload := strings.NewReader("{\n \"action\": \"create_music\",\n \"soundPrompt\": \"driving energetic beat, rapid rhythm, high BPM\",\n \"lyrics\": \"[Verse 1]\\nI've been running in circles...\\n\\n[Chorus]\\nI keep coming back to you...\",\n \"title\": \"Back to You\",\n \"model\": \"Lyria 3 Pro\",\n \"seed\": 877369,\n \"makeInstrumental\": false,\n \"imageUrl\": \"https://example.com/cover.jpg\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.mountsea.ai/producer/audios")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"create_music\",\n \"soundPrompt\": \"driving energetic beat, rapid rhythm, high BPM\",\n \"lyrics\": \"[Verse 1]\\nI've been running in circles...\\n\\n[Chorus]\\nI keep coming back to you...\",\n \"title\": \"Back to You\",\n \"model\": \"Lyria 3 Pro\",\n \"seed\": 877369,\n \"makeInstrumental\": false,\n \"imageUrl\": \"https://example.com/cover.jpg\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountsea.ai/producer/audios")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"action\": \"create_music\",\n \"soundPrompt\": \"driving energetic beat, rapid rhythm, high BPM\",\n \"lyrics\": \"[Verse 1]\\nI've been running in circles...\\n\\n[Chorus]\\nI keep coming back to you...\",\n \"title\": \"Back to You\",\n \"model\": \"Lyria 3 Pro\",\n \"seed\": 877369,\n \"makeInstrumental\": false,\n \"imageUrl\": \"https://example.com/cover.jpg\"\n}"
response = http.request(request)
puts response.read_body{
"taskId": "<string>"
}{
"taskId": "<string>"
}创作音乐
使用 Lyria 3 Pro 生成音乐
curl --request POST \
--url https://api.mountsea.ai/producer/audios \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"action": "create_music",
"soundPrompt": "driving energetic beat, rapid rhythm, high BPM",
"lyrics": "[Verse 1]\nI've been running in circles...\n\n[Chorus]\nI keep coming back to you...",
"title": "Back to You",
"model": "Lyria 3 Pro",
"seed": 877369,
"makeInstrumental": false,
"imageUrl": "https://example.com/cover.jpg"
}
EOFimport requests
url = "https://api.mountsea.ai/producer/audios"
payload = {
"action": "create_music",
"soundPrompt": "driving energetic beat, rapid rhythm, high BPM",
"lyrics": "[Verse 1]
I've been running in circles...
[Chorus]
I keep coming back to you...",
"title": "Back to You",
"model": "Lyria 3 Pro",
"seed": 877369,
"makeInstrumental": False,
"imageUrl": "https://example.com/cover.jpg"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
action: 'create_music',
soundPrompt: 'driving energetic beat, rapid rhythm, high BPM',
lyrics: '[Verse 1]\nI\'ve been running in circles...\n\n[Chorus]\nI keep coming back to you...',
title: 'Back to You',
model: 'Lyria 3 Pro',
seed: 877369,
makeInstrumental: false,
imageUrl: 'https://example.com/cover.jpg'
})
};
fetch('https://api.mountsea.ai/producer/audios', 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.mountsea.ai/producer/audios",
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([
'action' => 'create_music',
'soundPrompt' => 'driving energetic beat, rapid rhythm, high BPM',
'lyrics' => '[Verse 1]
I\'ve been running in circles...
[Chorus]
I keep coming back to you...',
'title' => 'Back to You',
'model' => 'Lyria 3 Pro',
'seed' => 877369,
'makeInstrumental' => false,
'imageUrl' => 'https://example.com/cover.jpg'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.mountsea.ai/producer/audios"
payload := strings.NewReader("{\n \"action\": \"create_music\",\n \"soundPrompt\": \"driving energetic beat, rapid rhythm, high BPM\",\n \"lyrics\": \"[Verse 1]\\nI've been running in circles...\\n\\n[Chorus]\\nI keep coming back to you...\",\n \"title\": \"Back to You\",\n \"model\": \"Lyria 3 Pro\",\n \"seed\": 877369,\n \"makeInstrumental\": false,\n \"imageUrl\": \"https://example.com/cover.jpg\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.mountsea.ai/producer/audios")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"action\": \"create_music\",\n \"soundPrompt\": \"driving energetic beat, rapid rhythm, high BPM\",\n \"lyrics\": \"[Verse 1]\\nI've been running in circles...\\n\\n[Chorus]\\nI keep coming back to you...\",\n \"title\": \"Back to You\",\n \"model\": \"Lyria 3 Pro\",\n \"seed\": 877369,\n \"makeInstrumental\": false,\n \"imageUrl\": \"https://example.com/cover.jpg\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountsea.ai/producer/audios")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"action\": \"create_music\",\n \"soundPrompt\": \"driving energetic beat, rapid rhythm, high BPM\",\n \"lyrics\": \"[Verse 1]\\nI've been running in circles...\\n\\n[Chorus]\\nI keep coming back to you...\",\n \"title\": \"Back to You\",\n \"model\": \"Lyria 3 Pro\",\n \"seed\": 877369,\n \"makeInstrumental\": false,\n \"imageUrl\": \"https://example.com/cover.jpg\"\n}"
response = http.request(request)
puts response.read_body{
"taskId": "<string>"
}{
"taskId": "<string>"
}taskId — 使用获取任务状态来轮询生成的音频。提示
- 音效提示:描述音乐风格、氛围、乐器和节奏(例如
"emotional pop with gentle piano, warm synths, and a catchy beat") - 歌词:使用段落标签如
[Verse]、[Chorus]、[Bridge]来获得结构化输出 - 图片引导:提供
imageUrl让模型从图片中推断氛围和风格 - 纯器乐:设置
makeInstrumental: true生成无人声曲目 - 可重复性:使用
seed进行确定性生成 — 相同的 seed + 相同的参数 = 相同的输出
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
Action type to perform
create_music "create_music"
Sound/style prompt describing the desired music style
"driving energetic beat, rapid rhythm, high BPM"
Lyrics content with section tags like [Verse], [Chorus], etc. For create_music: either soundPrompt or lyrics should be provided. Set makeInstrumental=true to ignore lyrics.
"[Verse 1]\nI've been running in circles...\n\n[Chorus]\nI keep coming back to you..."
Song title (max 80 characters)
80"Back to You"
Music generation model (currently only Lyria 3 Pro)
Lyria 3 Pro "Lyria 3 Pro"
Random seed for reproducible generation
877369
Generate instrumental only (ignores lyrics). Default: false
false
Image URL for image-guided generation (will be uploaded automatically)
"https://example.com/cover.jpg"
响应
任务创建成功
任务 ID,用于后续查询结果