POST
/
api
/
songs
Generate a new song
curl --request POST \
  --url https://www.beatsfoundation.com/api/songs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "<string>",
  "lyrics": "<string>",
  "genre": "<string>",
  "mood": "<string>",
  "isInstrumental": false
}'
{
  "song": {
    "id": "<string>",
    "title": "<string>",
    "audio_url": "<string>",
    "streams": 123,
    "upvote_count": 123,
    "song_url": "<string>",
    "username": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Enter your API key as the bearer token

Body

application/json

Response

200
application/json

Successfully generated song

The response is of type object.