가사 / 영감 / 효과음 / 태그
curl --request POST \
--url https://toapis.com/v1/music/generations/lyrics \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"prompt": "<string>",
"lyrics_model": "<string>",
"audio_urls": [
{}
],
"max_mode": true,
"type": "<string>",
"bpm": 123,
"key": "<string>",
"tags": "<string>"
}
'import requests
url = "https://toapis.com/v1/music/generations/lyrics"
payload = {
"model": "<string>",
"prompt": "<string>",
"lyrics_model": "<string>",
"audio_urls": [{}],
"max_mode": True,
"type": "<string>",
"bpm": 123,
"key": "<string>",
"tags": "<string>"
}
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: '<string>',
prompt: '<string>',
lyrics_model: '<string>',
audio_urls: [{}],
max_mode: true,
type: '<string>',
bpm: 123,
key: '<string>',
tags: '<string>'
})
};
fetch('https://toapis.com/v1/music/generations/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://toapis.com/v1/music/generations/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([
'model' => '<string>',
'prompt' => '<string>',
'lyrics_model' => '<string>',
'audio_urls' => [
[
]
],
'max_mode' => true,
'type' => '<string>',
'bpm' => 123,
'key' => '<string>',
'tags' => '<string>'
]),
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://toapis.com/v1/music/generations/lyrics"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"lyrics_model\": \"<string>\",\n \"audio_urls\": [\n {}\n ],\n \"max_mode\": true,\n \"type\": \"<string>\",\n \"bpm\": 123,\n \"key\": \"<string>\",\n \"tags\": \"<string>\"\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://toapis.com/v1/music/generations/lyrics")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"lyrics_model\": \"<string>\",\n \"audio_urls\": [\n {}\n ],\n \"max_mode\": true,\n \"type\": \"<string>\",\n \"bpm\": 123,\n \"key\": \"<string>\",\n \"tags\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://toapis.com/v1/music/generations/lyrics")
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\": \"<string>\",\n \"prompt\": \"<string>\",\n \"lyrics_model\": \"<string>\",\n \"audio_urls\": [\n {}\n ],\n \"max_mode\": true,\n \"type\": \"<string>\",\n \"bpm\": 123,\n \"key\": \"<string>\",\n \"tags\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>",
"status": "<string>"
}Suno 음악
가사 / 영감 / 효과음 / 태그
lyrics 가사 생성, inspo 레퍼런스 생성, sounds 효과음, upsampleTags 태그 확장
POST
/
v1
/
music
/
generations
/
lyrics
가사 / 영감 / 효과음 / 태그
curl --request POST \
--url https://toapis.com/v1/music/generations/lyrics \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"prompt": "<string>",
"lyrics_model": "<string>",
"audio_urls": [
{}
],
"max_mode": true,
"type": "<string>",
"bpm": 123,
"key": "<string>",
"tags": "<string>"
}
'import requests
url = "https://toapis.com/v1/music/generations/lyrics"
payload = {
"model": "<string>",
"prompt": "<string>",
"lyrics_model": "<string>",
"audio_urls": [{}],
"max_mode": True,
"type": "<string>",
"bpm": 123,
"key": "<string>",
"tags": "<string>"
}
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: '<string>',
prompt: '<string>',
lyrics_model: '<string>',
audio_urls: [{}],
max_mode: true,
type: '<string>',
bpm: 123,
key: '<string>',
tags: '<string>'
})
};
fetch('https://toapis.com/v1/music/generations/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://toapis.com/v1/music/generations/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([
'model' => '<string>',
'prompt' => '<string>',
'lyrics_model' => '<string>',
'audio_urls' => [
[
]
],
'max_mode' => true,
'type' => '<string>',
'bpm' => 123,
'key' => '<string>',
'tags' => '<string>'
]),
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://toapis.com/v1/music/generations/lyrics"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"lyrics_model\": \"<string>\",\n \"audio_urls\": [\n {}\n ],\n \"max_mode\": true,\n \"type\": \"<string>\",\n \"bpm\": 123,\n \"key\": \"<string>\",\n \"tags\": \"<string>\"\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://toapis.com/v1/music/generations/lyrics")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"prompt\": \"<string>\",\n \"lyrics_model\": \"<string>\",\n \"audio_urls\": [\n {}\n ],\n \"max_mode\": true,\n \"type\": \"<string>\",\n \"bpm\": 123,\n \"key\": \"<string>\",\n \"tags\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://toapis.com/v1/music/generations/lyrics")
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\": \"<string>\",\n \"prompt\": \"<string>\",\n \"lyrics_model\": \"<string>\",\n \"audio_urls\": [\n {}\n ],\n \"max_mode\": true,\n \"type\": \"<string>\",\n \"bpm\": 123,\n \"key\": \"<string>\",\n \"tags\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>",
"status": "<string>"
}POST https://toapis.com/v1/music/generations/{operation}
string
필수
고정
"suno"lyrics — 가사 생성($0.008)
string
필수
가사 주제 설명
string
가사 모델:
classic / remi(선택)curl --request POST \
--url https://toapis.com/v1/music/generations/lyrics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"model":"suno","prompt":"여름 바닷가에 대한 노래"}'
inspo — 레퍼런스 영감 생성(0.068,Max0.136)
1-4개의 레퍼런스 오디오를 바탕으로 새 곡 생성.array
필수
공개 오디오 URL 1-4개
boolean
Max 티어(본 작업에
custom 없음. 바로 적용)custom은 보내지 마세요. 업스트림에서 거부됩니다.sounds — 효과음 생성($0.0096)
string
필수
효과음 설명
string
효과음 유형
number
템포(범위 1-300)
string
조성
upsampleTags — 태그 확장($0.004)
짧은 스타일 태그를 상세 스타일 설명으로 확장.string
필수
스타일 태그. 예:
"lo-fi chill beats"Response
string
태스크 ID
string
submitted