cURL
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" }
Send a text input to generate an audio output
Set Authorization header to BYTEZ_KEY 'Authorization: YOUR_BYTEZ_KEY_HERE'
Authorization
BYTEZ_KEY
'Authorization: YOUR_BYTEZ_KEY_HERE'
Schema for text-to-audio models
The input text
"Moody jazz music with saxophones"
Successful text-to-audio response.
Null on success; otherwise an error message.
Successful response with the generated audio link
"https://api.bytez.com/audio/1234567890"