Skip to main content
POST
/
models
/
v2
/
facebook
/
musicgen-stereo-small
text-to-audio
curl --request POST \
  --url https://api.bytez.com/models/v2/facebook/musicgen-stereo-small \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": "Moody jazz music with saxophones"
}
'
{
  "error": "<string>",
  "output": "https://api.bytez.com/audio/1234567890"
}

Authorizations

Authorization
string
header
required

Set Authorization header to BYTEZ_KEY 'Authorization: YOUR_BYTEZ_KEY_HERE'

Body

application/json

Schema for text-to-audio models

text
string
required

The input text

Example:

"Moody jazz music with saxophones"

Response

Successful text-to-audio response.

error
string | null
required

Null on success; otherwise an error message.

output
string
required

Successful response with the generated audio link

Example:

"https://api.bytez.com/audio/1234567890"