narrationToMuzaic
Analyzes narration text and returns predicted tags and parameters for music generation
Authorizations
MuzaicAPI-Secret-KeystringRequired
Body
textstringRequiredExample:
Narration text to analyze
A happy, upbeat scene with children playing in the parkResponses
200
Narration analyzed successfully
application/json
apiVersionstringOptionalExample:
1.0.0input_textstringOptionalExample:
Original input text
A happy, upbeat scene with children playing in the parktagsinteger[]OptionalExample:
Array of tag IDs matching predicted tags
[1,2,3]400
Invalid input data
application/json
401
Unauthorized
500
Model server error
application/json
post/narrationToMuzaic
POST /narrationToMuzaic HTTP/1.1
Host: m10.muzaic.ai
MuzaicAPI-Secret-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"text": "A happy, upbeat scene with children playing in the park"
}{
"apiVersion": "1.0.0",
"input_text": "A happy, upbeat scene with children playing in the park",
"tags_prediction": [
[
"happy",
0.85
],
[
"upbeat",
0.78
],
[
"children",
0.72
]
],
"tags": [
1,
2,
3
],
"params_prediction": {
"intensity": [
"intensity_7",
0.91
],
"tempo": [
"tempo_8",
0.87
]
},
"params": {
"intensity": 7,
"tempo": 8,
"tone": 5,
"variance": 5,
"rhythm": 5
}
}Last updated