musicGenerate (generations)
curl --request POST \
--url https://api.maxapi.ai/suno/v2/generate \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"mv": "chirp-v3-5-upload"
}
'import requests
url = "https://api.maxapi.ai/suno/v2/generate"
payload = {
"prompt": "[Verse]
Stars they shine above me
Moonlight softly glows
Whispers in the night sky
Dreams that only grow
[Verse 2]
Midnight winds are calling
Carrying a tune
Heartbeats echo softly
Dancing with the moon
[Chorus]
Starry night starry night
Let your light ignite ignite
Bright as day bright as day
Guide my way guide my way
[Verse 3]
Shadows move and twinkle
Nighttime come alive
Mystery in the heavens
Stories that survive
[Bridge]
Magic fills the darkness
Wonder in the air
Every star a secret
In the sky I stare
[Chorus]
Starry night starry night
Let your light ignite ignite
Bright as day bright as day
Guide my way guide my way",
"mv": "chirp-v3-5-upload"
}
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({
prompt: '[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way',
mv: 'chirp-v3-5-upload'
})
};
fetch('https://api.maxapi.ai/suno/v2/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/suno/v2/generate"
payload := strings.NewReader("{\n \"prompt\": \"[Verse]\\nStars they shine above me\\nMoonlight softly glows\\nWhispers in the night sky\\nDreams that only grow\\n\\n[Verse 2]\\nMidnight winds are calling\\nCarrying a tune\\nHeartbeats echo softly\\nDancing with the moon\\n\\n[Chorus]\\nStarry night starry night\\nLet your light ignite ignite\\nBright as day bright as day\\nGuide my way guide my way\\n\\n[Verse 3]\\nShadows move and twinkle\\nNighttime come alive\\nMystery in the heavens\\nStories that survive\\n\\n[Bridge]\\nMagic fills the darkness\\nWonder in the air\\nEvery star a secret\\nIn the sky I stare\\n\\n[Chorus]\\nStarry night starry night\\nLet your light ignite ignite\\nBright as day bright as day\\nGuide my way guide my way\",\n \"mv\": \"chirp-v3-5-upload\"\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.maxapi.ai/suno/v2/generate")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"[Verse]\\nStars they shine above me\\nMoonlight softly glows\\nWhispers in the night sky\\nDreams that only grow\\n\\n[Verse 2]\\nMidnight winds are calling\\nCarrying a tune\\nHeartbeats echo softly\\nDancing with the moon\\n\\n[Chorus]\\nStarry night starry night\\nLet your light ignite ignite\\nBright as day bright as day\\nGuide my way guide my way\\n\\n[Verse 3]\\nShadows move and twinkle\\nNighttime come alive\\nMystery in the heavens\\nStories that survive\\n\\n[Bridge]\\nMagic fills the darkness\\nWonder in the air\\nEvery star a secret\\nIn the sky I stare\\n\\n[Chorus]\\nStarry night starry night\\nLet your light ignite ignite\\nBright as day bright as day\\nGuide my way guide my way\",\n \"mv\": \"chirp-v3-5-upload\"\n}")
.asString();{
"id": "3d5f0ee4-1d7b-410a-bafd-60a3978284d1",
"clips": [
{
"id": "7070ec00-462e-42ac-9b9f-1074977f473f",
"video_url": "",
"audio_url": "",
"image_url": null,
"image_large_url": null,
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": "heavy metal",
"prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"gpt_description_prompt": null,
"audio_prompt_id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"history": [
{
"id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"continue_at": 48.762,
"type": "upload",
"source": "web",
"infill": false
}
],
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": false,
"has_vocal": true,
"is_audio_upload_tos_accepted": true,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "4ed4f182-0b5a-4cde-bffe-44fb5237a3aa",
"display_name": "AmbientLens971",
"handle": "ambientlens971",
"is_handle_updated": false,
"avatar_image_url": "https://cdn1.suno.ai/defaultOrange.jpg",
"is_trashed": false,
"reaction": null,
"created_at": "2024-07-22T07:56:36.710Z",
"status": "submitted",
"title": "Starry ",
"play_count": 0,
"upvote_count": 0,
"is_public": false
},
{
"id": "00e6b9e4-c29c-4cfe-8d7a-5b3f06ff5b90",
"video_url": "",
"audio_url": "",
"image_url": null,
"image_large_url": null,
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": "heavy metal",
"prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"gpt_description_prompt": null,
"audio_prompt_id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"history": [
{
"id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"continue_at": 48.762,
"type": "upload",
"source": "web",
"infill": false
}
],
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": false,
"has_vocal": true,
"is_audio_upload_tos_accepted": true,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "4ed4f182-0b5a-4cde-bffe-44fb5237a3aa",
"display_name": "AmbientLens971",
"handle": "ambientlens971",
"is_handle_updated": false,
"avatar_image_url": "https://cdn1.suno.ai/defaultOrange.jpg",
"is_trashed": false,
"reaction": null,
"created_at": "2024-07-22T07:56:36.711Z",
"status": "submitted",
"title": "Starry ",
"play_count": 0,
"upvote_count": 0,
"is_public": false
}
],
"metadata": {
"tags": "heavy metal",
"prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"gpt_description_prompt": null,
"audio_prompt_id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"history": [
{
"id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"continue_at": 48.762,
"type": "upload",
"source": "web",
"infill": false
}
],
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": false,
"has_vocal": true,
"is_audio_upload_tos_accepted": true,
"error_type": null,
"error_message": null
},
"major_model_version": "v3",
"status": "complete",
"created_at": "2024-07-22T07:56:36.699Z",
"batch_size": 1
}musicGenerate (generations)
Use this endpoint to call the provider-compatible musicgenerate (generations) operation through MaxAPI.
POST
https://api.maxapi.ai
/
suno
/
v2
/
generate
musicGenerate (generations)
curl --request POST \
--url https://api.maxapi.ai/suno/v2/generate \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"mv": "chirp-v3-5-upload"
}
'import requests
url = "https://api.maxapi.ai/suno/v2/generate"
payload = {
"prompt": "[Verse]
Stars they shine above me
Moonlight softly glows
Whispers in the night sky
Dreams that only grow
[Verse 2]
Midnight winds are calling
Carrying a tune
Heartbeats echo softly
Dancing with the moon
[Chorus]
Starry night starry night
Let your light ignite ignite
Bright as day bright as day
Guide my way guide my way
[Verse 3]
Shadows move and twinkle
Nighttime come alive
Mystery in the heavens
Stories that survive
[Bridge]
Magic fills the darkness
Wonder in the air
Every star a secret
In the sky I stare
[Chorus]
Starry night starry night
Let your light ignite ignite
Bright as day bright as day
Guide my way guide my way",
"mv": "chirp-v3-5-upload"
}
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({
prompt: '[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way',
mv: 'chirp-v3-5-upload'
})
};
fetch('https://api.maxapi.ai/suno/v2/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/suno/v2/generate"
payload := strings.NewReader("{\n \"prompt\": \"[Verse]\\nStars they shine above me\\nMoonlight softly glows\\nWhispers in the night sky\\nDreams that only grow\\n\\n[Verse 2]\\nMidnight winds are calling\\nCarrying a tune\\nHeartbeats echo softly\\nDancing with the moon\\n\\n[Chorus]\\nStarry night starry night\\nLet your light ignite ignite\\nBright as day bright as day\\nGuide my way guide my way\\n\\n[Verse 3]\\nShadows move and twinkle\\nNighttime come alive\\nMystery in the heavens\\nStories that survive\\n\\n[Bridge]\\nMagic fills the darkness\\nWonder in the air\\nEvery star a secret\\nIn the sky I stare\\n\\n[Chorus]\\nStarry night starry night\\nLet your light ignite ignite\\nBright as day bright as day\\nGuide my way guide my way\",\n \"mv\": \"chirp-v3-5-upload\"\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.maxapi.ai/suno/v2/generate")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"[Verse]\\nStars they shine above me\\nMoonlight softly glows\\nWhispers in the night sky\\nDreams that only grow\\n\\n[Verse 2]\\nMidnight winds are calling\\nCarrying a tune\\nHeartbeats echo softly\\nDancing with the moon\\n\\n[Chorus]\\nStarry night starry night\\nLet your light ignite ignite\\nBright as day bright as day\\nGuide my way guide my way\\n\\n[Verse 3]\\nShadows move and twinkle\\nNighttime come alive\\nMystery in the heavens\\nStories that survive\\n\\n[Bridge]\\nMagic fills the darkness\\nWonder in the air\\nEvery star a secret\\nIn the sky I stare\\n\\n[Chorus]\\nStarry night starry night\\nLet your light ignite ignite\\nBright as day bright as day\\nGuide my way guide my way\",\n \"mv\": \"chirp-v3-5-upload\"\n}")
.asString();{
"id": "3d5f0ee4-1d7b-410a-bafd-60a3978284d1",
"clips": [
{
"id": "7070ec00-462e-42ac-9b9f-1074977f473f",
"video_url": "",
"audio_url": "",
"image_url": null,
"image_large_url": null,
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": "heavy metal",
"prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"gpt_description_prompt": null,
"audio_prompt_id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"history": [
{
"id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"continue_at": 48.762,
"type": "upload",
"source": "web",
"infill": false
}
],
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": false,
"has_vocal": true,
"is_audio_upload_tos_accepted": true,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "4ed4f182-0b5a-4cde-bffe-44fb5237a3aa",
"display_name": "AmbientLens971",
"handle": "ambientlens971",
"is_handle_updated": false,
"avatar_image_url": "https://cdn1.suno.ai/defaultOrange.jpg",
"is_trashed": false,
"reaction": null,
"created_at": "2024-07-22T07:56:36.710Z",
"status": "submitted",
"title": "Starry ",
"play_count": 0,
"upvote_count": 0,
"is_public": false
},
{
"id": "00e6b9e4-c29c-4cfe-8d7a-5b3f06ff5b90",
"video_url": "",
"audio_url": "",
"image_url": null,
"image_large_url": null,
"is_video_pending": false,
"major_model_version": "v3",
"model_name": "chirp-v3",
"metadata": {
"tags": "heavy metal",
"prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"gpt_description_prompt": null,
"audio_prompt_id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"history": [
{
"id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"continue_at": 48.762,
"type": "upload",
"source": "web",
"infill": false
}
],
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": false,
"has_vocal": true,
"is_audio_upload_tos_accepted": true,
"error_type": null,
"error_message": null
},
"is_liked": false,
"user_id": "4ed4f182-0b5a-4cde-bffe-44fb5237a3aa",
"display_name": "AmbientLens971",
"handle": "ambientlens971",
"is_handle_updated": false,
"avatar_image_url": "https://cdn1.suno.ai/defaultOrange.jpg",
"is_trashed": false,
"reaction": null,
"created_at": "2024-07-22T07:56:36.711Z",
"status": "submitted",
"title": "Starry ",
"play_count": 0,
"upvote_count": 0,
"is_public": false
}
],
"metadata": {
"tags": "heavy metal",
"prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
"gpt_description_prompt": null,
"audio_prompt_id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"history": [
{
"id": "m_2e584f32-7ae3-4b2d-93f6-391f65a01f15",
"continue_at": 48.762,
"type": "upload",
"source": "web",
"infill": false
}
],
"concat_history": null,
"type": "gen",
"duration": null,
"refund_credits": null,
"stream": true,
"infill": false,
"has_vocal": true,
"is_audio_upload_tos_accepted": true,
"error_type": null,
"error_message": null
},
"major_model_version": "v3",
"status": "complete",
"created_at": "2024-07-22T07:56:36.699Z",
"batch_size": 1
}Body
application/json
Response
200 - application/json
Request succeeded.
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes