Skip to main content
POST
/
suno
/
music
/
generate
cURL
curl --request POST \
  --url https://api.waytoapi.com/apidoc/collect/ai/suno/music/generate \
  --header 'Content-Type: application/json' \
  --header 'aiKey: <aikey>' \
  --data '
{
  "task": "<string>",
  "model": "<string>",
  "make_instrumental": true,
  "prompt": "<string>",
  "continued_aligned_prompt": "<string>",
  "infill_lyrics": "<string>",
  "gpt_description_prompt": "<string>",
  "tags": [
    "<string>"
  ],
  "negative_tags": [
    "<string>"
  ],
  "title": "<string>",
  "clip_id": "<string>",
  "continue_at": 123,
  "range": {
    "start_s": 123,
    "end_s": 123
  },
  "infill_context_range": {
    "start_s": 123,
    "end_s": 123
  },
  "persona": {
    "artist_clip_id": "<string>",
    "persona_id": "<string>"
  },
  "controls": {
    "style_weight": 123,
    "audio_weight": 123,
    "weirdness_constraint": 123
  },
  "vocal_gender": "<string>"
}
'
{
  "code": 123,
  "info": "<string>",
  "result": {
    "taskCode": "<string>"
  },
  "success": true,
  "failure": true
}

Headers

aiKey
string
required

Body

application/json
task
string
model
string
make_instrumental
boolean
prompt
string
continued_aligned_prompt
string
infill_lyrics
string
gpt_description_prompt
string
tags
string[]
negative_tags
string[]
title
string
clip_id
string
continue_at
integer<int32>
range
object
infill_context_range
object
persona
object
controls
object
vocal_gender
string

Response

200 - */*

OK

code
integer<int32>
info
string
result
object
success
boolean
failure
boolean